Client connects, but no access to LAN. Take a peek at my configs? :)

  • Hey everyone,

    I've spent a good deal of time on this but am a bit new to pFsense and OpenVPN.  Any help is greatly appreciated.

    I can connect a client to the OpenVPN server, and I can ping the default gateway, but cannot ping or access any other LAN resources.  I have ensured that firewall rules are allowing traffic through the VPN.  Here are my configs:

    dev ovpns1
    dev-type tun
    dev-node /dev/tun1
    writepid /var/run/
    #user nobody
    #group nobody
    script-security 3
    keepalive 10 60
    proto udp
    cipher AES-256-CBC
    up /usr/local/sbin/ovpn-linkup
    down /usr/local/sbin/ovpn-linkdown
    client-connect /usr/local/sbin/
    client-disconnect /usr/local/sbin/
    local (our WAN IP is here)
    client-config-dir /var/etc/openvpn-csc
    auth-user-pass-verify /var/etc/openvpn/server1.php via-env
    tls-verify /var/etc/openvpn/server1.tls-verify.php
    lport 1194
    management /var/etc/openvpn/server1.sock unix
    push "route"
    push "dhcp-option DOMAIN ourdomain.local"
    push "dhcp-option DNS"
    push "dhcp-option DNS"
    ca /var/etc/openvpn/
    cert /var/etc/openvpn/server1.cert
    key /var/etc/openvpn/server1.key
    dh /etc/dh-parameters.2048
    tls-auth /var/etc/openvpn/server1.tls-auth 0

    dev tun
    cipher AES-256-CBC
    auth SHA1
    resolv-retry infinite
    remote (our WAN IP) 1194 udp
    lport 0
    verify-x509-name "OurServerCert" name
    pkcs12 firewall-udp-1194-testvpnuser.p12
    tls-auth firewall-udp-1194-testvpnuser-tls.key 1
    ns-cert-type server

    What am I doing wrong here?

  • That all looks OK. I also use a summarised route in the "Local Network/s" field that points to all my internal network space behind the server, so I believe should work OK, even though the tunnel is inside that at
    I would do "route print" on the (Windows?) client and make sure the route is there.
    Then check that the device in the LAN does not have a firewall blocking you (e.g. some Windows firewall settings will allow access by other systems in the same subnet, but not from outside).
    Then start doing packet capture at each point to see where the packets appear and disappear (Diagnostics menu).

  • Thank you Phil,

    Yes, I am testing this with a Windows client.  I have disabled the Windows firewall for testing purposes.

    A screenshot of the IPV4 routes are attached.  It says that there is a route for but points it to the gateway of  Shouldn't this gateway be the pfsense (

    Also, when you say that you use a summarized route, do you mean that you explicitly define each subnet of your internal network in that field?  EG:,, et cetera?

    Finally, when I am looking at packet captures on the pfsense side of things, should I be looking at packets coming over the WAN, or the OpenVPN tunnel itself?

  • The gateway from the client side should be an address at the other end of the tunnel network. You would think, but OpenVPN internally chops up the tunnel into /30 pieces (chunks of 4 addresses). The first client gets ".6" and talks back to ".5" like in your route print output.

    By "summarised route" I mean that covers all the addresses from to in one go. If you have lots of LAN subnets inside that then it saves you bothering to list them all separately.

    I didn't ask at first - what is your actual LAN subnet/s?
    Because you can't use the whole of on LAN then also reuse part of it, again as a tunnel network.

  • I see what you mean about the gateway.  I am currently using 172.16.0-30 for our LAN subnets.  So I picked the next in line available for the OpenVPN range.  It shouldn't be conflicting with anything else on the network.

    After running wireshark on the windows client, and packet capture via pfsense for the OpenVPN tunnel and WAN it appears that traffic is flowing through to the LAN okay.  However, when I look at the ARP table on pfsense, it is unaware of the OpenVPN client's IP or MAC.

    Do I need to do something related to Proxy ARP here?

  • Banned

    If you are confused, why don't you simply disable the /30 nonsense? (I don't even know why that topology 30 BS is the default.)

    And no, you do NOT need any proxy ARP or similar nonsense either.

    P.S. Would strongly suggest to move the whole OVPN subnet out of the 172.16/12 range used on LAN. Use 10/8 or 192.168/16 instead.

  • Well, that was it.  After switching the OVPN subnet to an arbitrary subnet the traffic is flowing properly.  Thank you so much for your help.

Log in to reply