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

    OpenVPN Shared Key Routing Issues

    Scheduled Pinned Locked Moved OpenVPN
    8 Posts 2 Posters 1.4k 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.
    • M
      Mat1987
      last edited by

      Hi

      I recenlty created a connection for OpenVPN

      I used 1 SSL/TLS for client access and i also setup a site to site tunnel.

      I am having routing issues with the site to site tunned and was wondering if there was anything i needed to add to get this working.  All i have done is used the OpenVPN wizzard and i thought that was meant to do the routing or am i wrong?

      I can ping from my pfsense router to both networks but from the clients them self on the tunnel i cant get a response.

      Any help would be great.

      Thanks

      Mat

      1 Reply Last reply Reply Quote 0
      • D
        divsys
        last edited by

        Have you checked to see if there's a firewall rule under OpenVPN allowing all traffic?

        Can the client's ping their tunnel address gateways?

        Can the client's ping LAN address of the pfSense router?

        If using Windows clients, have you set (or turned off) the Win Firewall so that it doesn't block the remote LAN subnets?

        -jfp

        1 Reply Last reply Reply Quote 0
        • M
          Mat1987
          last edited by

          I have a firewall rule and open vpn rule to allow traffic.

          from the client i can ping the gateway and vice versa.

          basically my network is 192.168.50.0/24 going to 192.168.1.0/24 but i cant ping say 192.168.1.1 but i can ping 10.0.8.1 that's given as a virtual tunnel.

          I have attached some photos hopefully help a little.

          firewall.PNG
          firewall.PNG_thumb
          OpenVPN.PNG
          OpenVPN.PNG_thumb
          ![OpenVPN Setup2.PNG](/public/imported_attachments/1/OpenVPN Setup2.PNG)
          ![OpenVPN Setup2.PNG_thumb](/public/imported_attachments/1/OpenVPN Setup2.PNG_thumb)
          OpenVPN.PNG
          OpenVPN.PNG_thumb

          1 Reply Last reply Reply Quote 0
          • D
            divsys
            last edited by

            Why do you have 192.168.50.0/24 in both your Local and your Remote OpenVPN subnet definitions?

            If your OpenVPN Server's Local Subnet is 192.168.50.0/24 then thats all you need in the IPv4 Local Network/s field.

            The IPv4 Remote Network/s field is for the subnets of the clients.

            Is the site-site using SSL/TLS?

            You also need an entry in the "OpenVPN->Client Specific Configuration" tab to match the client's exact CN allow the server to properly route the client's subnet.

            -jfp

            1 Reply Last reply Reply Quote 0
            • M
              Mat1987
              last edited by

              I must admit i added my subnet after it wasnt working.  i have added a rule in the open vpn firewall.  I have got an idea to what it is so i will try that tonight.

              1 Reply Last reply Reply Quote 0
              • D
                divsys
                last edited by

                If you just remove the unneeded extra subnet in the remote field, you should be very close to a proper setup.

                If this site-site is using SSL/TLS then the CSC entries (very simple) are all that are left.

                -jfp

                1 Reply Last reply Reply Quote 0
                • M
                  Mat1987
                  last edited by

                  @divsys:

                  If you just remove the unneeded extra subnet in the remote field, you should be very close to a proper setup.

                  If this site-site is using SSL/TLS then the CSC entries (very simple) are all that are left.

                  CSC = client specific overrides?

                  How would these be setup?

                  1 Reply Last reply Reply Quote 0
                  • D
                    divsys
                    last edited by

                    You need a Client Specific Overide entry in the OpenVPN serve that specifies which external subnets are routed for each client.
                    In your case there's (currently) only one.

                    In CSC make a new entry and specify:

                    Common name                - Enter the EXACT CN name used for the Client's certificate
                    Description                      - Free form description for you
                    Tunnel network              - OpenVPN Tunnel subnet specified in the Server (10.0.8.0/24 in your case ?)
                    IPv4 Remote Network/s  - Client's subnet that you want routed through this connection (192.168.1.0/24 in your case ?)

                    Save and restart both the Server and the Client, you should be good to go.

                    -jfp

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