r/networking, help me puzzle out my OpenVPN bridging errors..

I have an OpenVPN server set up in an attempt to access the network inside my apartment (off-campus) from on campus without bugging the person who owns our router to open ports all the time. It seems to work fine in routed mode, but router owner would like me to bridge it instead so he doesn't have to futz around with routes (sigh).

The server machine is an OpenBSD 4.9 box (Sun Netra X1) which recently dropped into my lap, running OpenBSD 2.1.4 from the Ports tree. I adapted this tutorial to set up bridging, but it's not exactly working. The VPN initializes correctly, and clients can connect, but as soon as I attempt to send any traffic over the VPN I get a pile of repeating errors host-side and no return traffic client-side.

  • I am currently VPNing over TCP, since the UDP port isn't open - I'll prod my roommate into opening that port and try UDP later.
  • The OpenBSD tunnel is set up as explained in the above-linked blog post, which happens to match the bridging instructions on the official OpenBSD site.
  • The client receives an address on tap0 inside the range defined in the server config.
  • I can ping the client's VPN address from the client, but I cannot ping the server or any other machines in the apartment from the client.
  • I cannot ping the client from the server or from other machines on the apartment net.
  • This issue is not isolated to one client, leading me to suspect a server config error.

With increased verbosity on the OVPN logging, every packet sent from the client looks like this: Fri Jul 22 11:36:53 2011 us=872375 TUN READ [42] Fri Jul 22 11:36:53 2011 us=872441 TCPv4_CLIENT WRITE [77] to yyy.yyy.yyy.yyy:1194: P_DATA_V1 kid=0 DATA len=76 Fri Jul 22 11:36:54 2011 us=875711 TUN READ [42] Fri Jul 22 11:36:54 2011 us=875811 TCPv4_CLIENT WRITE [77] to yyy.yyy.yyy.yyy:1194: P_DATA_V1 kid=0 DATA len=76 Fri Jul 22 11:36:56 2011 us=879065 TUN READ [42] Fri Jul 22 11:36:56 2011 us=879166 TCPv4_CLIENT WRITE [77] to yyy.yyy.yyy.yyy:1194: P_DATA_V1 kid=0 DATA len=76

accompanied by this from the server for nearly every packet from the client (yes, times are different, but it's a representative sample). Fri Jul 22 11:30:22 2011 us=700632 deuterium/xxx.xxx.xxx.xxx:37831 TUN WRITE [42] Fri Jul 22 11:30:22 2011 us=701848 deuterium/xxx.xxx.xxx.xxx:37831 write to TUN/TAP : Address family not supported by protocol family (code=47) Fri Jul 22 11:30:22 2011 us=702929 deuterium/xxx.xxx.xxx.xxx:37831 TCPv4_SERVER READ [77] from xxx.xxx.xxx.xxx:37831: P_DATA_V1 kid=0 DATA len=76 Fri Jul 22 11:30:22 2011 us=705253 deuterium/xxx.xxx.xxx.xxx:37831 write to TUN/TAP : Address family not supported by protocol family (code=47)

My config files (with comments stripped) are located here, with comments stripped: server config | client config

Any thoughts? I'm slightly out of my league here.

Posted Jul 22, 2011, 4:13 PM UTC · edited

66
Loading comments…