OpenVPN in existing enviroment: could only ping clients but not reach other ports, firewall completely opened.

  • Hello, i've installed a pfsense 2.4.4 as VM in my enviroment, with only a WAN port with static ip.
    Then i've configured an OpenVPN Server to let some clients (are CentOS machine i need to supervise) send data to me. I need that machine to be OpenVPN Server only, i have a default gateway (a Zyxel UTM).

    So the basic information are:

    My network:
    OpenVPN Client Nework:
    Pfsense VM WAN Address:
    Static route on GW to pfsense vm : via

    For debugging pourpose i had enabled all traffic on WAN (and disabled block bogus and private network ) an on the OpenVPN firewall interfaces.
    Nat is set to automatic mode.

    A Nat on the Zyxel allow the server to be reached from the outside.

    The problem:
    From my vpn clients i can ping all my network address ( But i need to connect to my client via ssh or http and this doesn't work. I could only ping them. If i try to connect to some exposed services (es. http or ssh) i could not connect. It goes timeout.

    I cannot understand why this happend.

    In theory this should work. The logic route should be this:
    ->i would like to ping for example.

    my pc [] --> my GW [] --> Pfsense VM [] --> OpenVPN interface [] --> tun vpn --> client [] --> OpenVPN interface [] --> Pfsense VM [] --> my pc []
    then backwards client [] --> OpenVPN interface []--> pfsense VM [] --> my pc []

    OpenVPN configuration: Tun / Client Access
    IPv4 Local network:

    Any idea? Myabe i should trunking on another network the GW<->Pfsense VM link to better manage routing? I've always masqueraded the traffic but this time i cannot (i need to reach vpn clients and not viceversa)

    Thank you

  • You're on the right way. As you described the route, you see that the packets from local network to the vpn client take another route than packets in the other direction. So you get an asymmetric routing.

    Best way to resolve it is to put the pfSense VM into a VLAN and set a static route for the tunnel network on the gateway.

    If masquerading is no option, the only other solution is to add a static route to all the local devices you want to reach from vpn clients.

  • LAYER 8 Global Moderator

    @execcr said in OpenVPN in existing enviroment: could only ping clients but not reach other ports, firewall completely opened.:

    a Zyxel UTM

    Why do you not just run your vpn server there just replace it with pfsense? Running an vpn server that is inside your network is always going to be a asymmetrical mess...

Log in to reply