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

    Fail to route internet traffic from OpenVPN server side to CLIENT side

    Scheduled Pinned Locked Moved OpenVPN
    11 Posts 2 Posters 788 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.
    • U
      Upper Deck
      last edited by

      Hi there,

      I have two pfSense boxes with site-to-site OpenVPN configured. Now server and clinet can ping each other and both side DNS works locally or remotely. However, I can't route internet traffic from server side to client side.
      I've already set:
      Server side lan rules "pass all traffic via OpenVPN gateway";
      Server side lan ip addresses to client's Firewall/NAT/Outbound;
      "Allow All" rules under firewall/OpenVPN and firewall/OpenVPN interface both side;

      No luck, server side lan devices still can not get internet acess via OpenVPN client side.

      Any help would be appreciated.

      U.D.

      1 Reply Last reply Reply Quote 0
      • U
        Upper Deck
        last edited by Upper Deck

        Update: if OpenVPN server's "IPv4 Tunnel Network" set to /30, it worked. I have to use /24, the remote internet access is down.

        V 1 Reply Last reply Reply Quote 0
        • V
          viragomann @Upper Deck
          last edited by

          @upper-deck
          That is an expected behavior.
          If you have a bigger tunnel subnet than a /30 the client is not unique, because there are multiple client connections possible and hence the server cannot route packets to him without a adding client specific override.

          U 1 Reply Last reply Reply Quote 0
          • U
            Upper Deck @viragomann
            last edited by

            @viragomann said in Fail to route internet traffic from OpenVPN server side to CLIENT side:

            client specific override

            client specific override is configured

            Untitled-1.jpg

            V 1 Reply Last reply Reply Quote 0
            • V
              viragomann @Upper Deck
              last edited by

              @upper-deck
              Is the common name this one you've stated in the clients certificate?
              ...CA doesn't sound like a client at all.

              Also consider that you have to enter the client side networks into the server configs "Remote networks" box as well.

              U 1 Reply Last reply Reply Quote 0
              • U
                Upper Deck @viragomann
                last edited by

                @viragomann

                the common name is "Site2Site_Client_CA"

                / Existing Certificate / Subject ST=, O=, L=Macau, CN=Site2Site_Client_CA, C=**

                client side networks is set into the server config

                V 1 Reply Last reply Reply Quote 0
                • V
                  viragomann @Upper Deck
                  last edited by

                  @upper-deck
                  Seems to match.

                  So check the OpenVPN log on the server. There should be an entry, when the client gets determined and the CSO is applied.

                  1 Reply Last reply Reply Quote 0
                  • U
                    Upper Deck
                    last edited by

                    local works normal. internet still can not be access

                    V 1 Reply Last reply Reply Quote 0
                    • V
                      viragomann @Upper Deck
                      last edited by

                      @upper-deck
                      So the CSO is working now, I guess.

                      If you didn't set "redirect gateway" on either side and only stated the networks as seen in the screenshot, this should not affect internet traffic at all.

                      U 1 Reply Last reply Reply Quote 0
                      • U
                        Upper Deck @viragomann
                        last edited by

                        @viragomann

                        There is no "Redirect IPv4 Gateway" option on the client side. Would you please tell me how to do that at the client side? Any suggestion would be appreciated.

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          viragomann @Upper Deck
                          last edited by

                          @upper-deck
                          As I got you, internet access on the client works well without the VPN, but doesn't if it is connected. So obviously the client set the default route to the server.

                          The server can push this route to the client if you have "redirect gateway checked. But the option exists on the server only in recent pfSense versions.
                          On the client you can check "don't pull routes" to avoid that the default route is set.

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