Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Site to Site OpenVPN on PFsense 22.05

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 468 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nerigal
      last edited by

      Hi,

      im trying to setup a site to site VPN ( peer to peer SSL/TLS)
      the VPN Tunel seams to work fine but there is not traffic going through

      and ive noticed some weird behavior that i don't understand

      The subnet of the tunnel is 192.168.70.0/24

      Client LAN network: 192.168.10.0/24 ( this need to access Server LAN )
      Server LAN Network 192.168.0.0/24

      This is a picture of the route on the server side of the VPN
      The 192.168.70.1 ping here but not the 192.168.70.2
      The ip 192.168.70.2 is the client side tunnel gateway
      like you can see the route of the networks point to 192.168.70.2 which doesnt ping
      shouldnt they be pointing to 192.168.70.1 ? would make more sens if the gateway of these subnet is actually the gateway of the server side VPN tunnel but i could be wrong
      270f198f-ad09-4bf1-a9f4-038ddc2df424-image.png

      And this is the client side vpn routing table
      192.168.42.92 being my WAN internet IP and 192.168.42.129 is the gateway
      this can be ignored so far.
      What i don't understand is that no subnet route is generated here like it should by the openvpn configuration like we see on server side so how it could be possible to 192.168.10.0/24 to actually be routed into the tunnel .
      And again 192.168.70.2 ping well here since its the local gateway on the client side but impossible to ping 192.168.70.1 from 192.168.70.2
      0552c1ce-5d6b-48b3-ad47-957d31d8809e-image.png

      In this picture we can see the wanna be route for the tunnel subnet 192.168.70.0/24
      but instead OpenVPN create a broken route
      f8c08035-6402-4d8e-9281-f89c6604b0cd-image.png

      So any idea how to fix this cos the route are auto generated by the UI configuration of OpenVPN and i cant find how to rewrite or fix the routes

      J 1 Reply Last reply Reply Quote 0
      • J
        Jarhead @Nerigal
        last edited by

        @nerigal First off, if it's a site to site you should be using a /30, or /31, for the tunnel. Change the tunnel address to 192.168.70.0/30.

        Then , post screenshots of your OpenVPN config.
        You probably have the local and remote networks sections populated incorrectly.

        N 1 Reply Last reply Reply Quote 0
        • N
          Nerigal @Jarhead
          last edited by

          @jarhead

          interesting, in every demo i saw or procedure i read, it was all about /24 for the tunnel but ok lets try /30

          here is my server side Tunnel config
          2c3a40fd-7d4f-402c-92dc-928ad5252ec1-image.png

          This is the client side Tunnel config
          4289c6ec-11a7-4f59-9030-f566bf6357b0-image.png

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.