PeertoPeer SSL/TLS wrong route creation

  • Having a problem connecting two PfSense-boxes with OVPN.
    The tunnel comes up, but the routes are set wrong or the IP assigned to the client is wrong.

    In Detail:
    After Tunnel is up the Client recieves the address and a route to pointing to is created.
    On serverside the TUN-IP is and the route ist created but pointing to although the VPN-log shows the client connected with IP
    On clientside i can ping and on Serverside i can ping but the local network behind the tunnel cannnot be reached because of the wrong routes. FW-Rules for OVPN-IF are created.

    Tried a ClientSpecificOverride where i pushed the to the client. After that, routes and addresses were set correct. But with that config I wasn't even able to ping the Tunnel-IP on the other side.
    I think there must be another way because I had the same setup running a few weeks ago without any problem and without CSO, but had to reinstall one machine and build new certs etc.

    Version is 2.0 RC2

    Any ideas what could be wrong here?


  • If you're using SSL/TLS this is the way it works.
    Each connecting client is moved into its own /30 subnet with the first being .5 and .6.
    If you connect another client you would see that the second would be with the ips .9 an .10.

    If you want a simple tunnel then you might consider not using SSL/TLS but a shared key.

  • Thanks. I think a have to learn a little bit more about ovpn. I thought the tunnel network ist just a /24 subnet where Server and Clients can communicate.
    But it works now.
    Had the problem that on Serverside there is a multiwan configuration and a firewallrule which directs traffic from lan to a Gatewaypool.
    This rule caused the traffic with destination to remotenetwork going directly to the gatewaypool and not through the tunnel. So I created a rule with destination without any gatewaysetting and  it works perfect now.
    But is this normal behavior? My IP-Sec-Tunnels weren't affected by this rule.

Log in to reply