OpenVPN bridge mode



  • Using this (a little aged) tutorial:

    https://forum.pfsense.org/index.php?topic=46984.0

    I have been trying to get my OpenVPN connection to bridge.  I can get it to work in TUN mode, however this is less than ideal for what I want to do.  I would like to bridge the connection so my road warrior client gets the same IP address when connected to the VPN as it does when connected to the LAN (pf is doing DHCP based on MAC)

    I have tried various configs and played with various settings.  I can get the VPN to connect, but no IP address is ever received.  Most recent try:


    Mon May 11 03:58:12 2015 OpenVPN 2.3.6 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Mar 19 2015
    Mon May 11 03:58:12 2015 library versions: OpenSSL 1.0.1m 19 Mar 2015, LZO 2.08
    Enter Management Password:
    Mon May 11 03:58:16 2015 Control Channel Authentication: using 'pfsense-udp-34447-vpnuser-tls.key' as a OpenVPN static key file
    Mon May 11 03:58:16 2015 UDPv4 link local (bound): [undef]
    Mon May 11 03:58:16 2015 UDPv4 link remote: [AF_INET]...:34447
    Mon May 11 03:58:16 2015 WARNING: this configuration may cache passwords in memory – use the auth-nocache option to prevent this
    Mon May 11 03:58:18 2015 [VPN Server Cert] Peer Connection Initiated with [AF_INET]...:34447
    Mon May 11 03:58:20 2015 open_tun, tt->ipv6=0
    Mon May 11 03:58:20 2015 TAP-WIN32 device [Local Area Connection 6] opened: \.\Global{F293D75D-D853-4390-85AC-BC7630D7CBD8}.tap
    Mon May 11 03:58:20 2015 Successful ARP Flush on interface [65541] {F293D75D-D853-4390-85AC-BC7630D7CBD8}
    SYSTEM ROUTING TABLE
    0.0.0.0 0.0.0.0 192.168.43.1 p=0 i=3 t=4 pr=3 a=44 h=0 m=25/-1/-1/-1/-1
    127.0.0.0 255.0.0.0 127.0.0.1 p=0 i=1 t=3 pr=2 a=3617 h=0 m=1/-1/-1/-1/-1
    192.168.43.0 255.255.255.0 192.168.43.220 p=0 i=3 t=3 pr=2 a=46 h=0 m=25/-1/-1/-1/-1
    192.168.43.220 255.255.255.255 127.0.0.1 p=0 i=1 t=3 pr=2 a=46 h=0 m=25/-1/-1/-1/-1
    192.168.43.255 255.255.255.255 192.168.43.220 p=0 i=3 t=3 pr=2 a=46 h=0 m=25/-1/-1/-1/-1
    224.0.0.0 240.0.0.0 192.168.43.220 p=0 i=3 t=3 pr=2 a=46 h=0 m=25/-1/-1/-1/-1
    255.255.255.255 255.255.255.255 192.168.43.220 p=0 i=2 t=3 pr=2 a=3615 h=0 m=1/-1/-1/-1/-1
    255.255.255.255 255.255.255.255 192.168.43.220 p=0 i=65541 t=3 pr=2 a=3396 h=0 m=1/-1/-1/-1/-1
    255.255.255.255 255.255.255.255 192.168.43.220 p=0 i=3 t=3 pr=2 a=3615 h=0 m=1/-1/-1/-1/-1
    SYSTEM ADAPTER LIST
    TAP-Windows Adapter V9 - Packet Scheduler Miniport
      Index = 65541
      GUID = {F293D75D-D853-4390-85AC-BC7630D7CBD8}
      IP = 0.0.0.0/0.0.0.0
      MAC = 00:ff:f2:::*
      GATEWAY = 
      DHCP SERV = 255.255.255.255
      DHCP LEASE OBTAINED = Mon May 11 03:39:05 2015
      DHCP LEASE EXPIRES  = Mon Jan 18 20:14:07 2038
      DNS SERV = 
    Intel(R) Centrino(R) Advanced-N 6250 AGN - Packet Scheduler Miniport
      Index = 3
      GUID = {9C9DAE85-C7B4-415A-9411-D2653EF08641}
      IP = 192.168.43.220/255.255.255.0
      MAC = 00:23:15:::*
      GATEWAY = 192.168.43.1/0.0.0.0
      DHCP SERV = 192.168.43.1
      DHCP LEASE OBTAINED = Mon May 11 03:58:09 2015
      DHCP LEASE EXPIRES  = Mon May 11 04:58:09 2015
      DNS SERV = 192.168.43.1
    Mon May 11 03:58:55 2015 Initialization Sequence Completed With Errors ( see http://openvpn.net/faq.html#dhcpclientserv )
    Mon May 11 03:59:23 2015 SIGTERM[hard,] received, process exiting

    192.168.43.x is the address range my phone is handing out to my laptop (phone is the access point)

    I've read through some FAQs and am still unable to get this to work.

    Is there a trick to getting an OpenVPN bridge to work?

    Thanks.