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

    OpenVPN access to remote networks

    OpenVPN
    3
    8
    1.3k
    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.
    • L
      Lou57
      last edited by

      We have three sites that are connected to each other through an MPLS circuit using Cisco routers and Fiber1.

      East - 172.16.0.0/21
      West - 172.16.8.0/21
      South - 172.16.16.0/21

      Each site has it's own pfSense firewall, with access to two WANs, primary (Fiber2) and backup (Comcast).  All of this works well.

      The East site has an OpenVPN connection added to it. Connections can access the entire East network, but cannot access West or South.

      The OpenVPN setup page defines:

      Tunnel: 172.18.1.0/24
        Local Area Network: 172.16.0.0/21
        Advanced: push "route 172.16.8.0 255.255.248.0";push "route 172.16.72.0 255.255.248.0"

      I have verified that our Windows clients do have the route statements in their route table.

      I have a MPLS_Gateway defined for the MPLS in System: Gateways.
      I have Route statements for West and South in System: Static Routes that use MPLS_Gateway.

      TCP, UDP & ICMP all fail to connect to West and South.

      What am I missing?

      1 Reply Last reply Reply Quote 0
      • L
        Lou57
        last edited by

        Verified that there is a rule on the OpenVPN tab that state that passes all traffic. Any source IP, any port to any destination IP, any port.

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

          I have read here in another post that entering the push route command in advanced options is deprecated and shouldn't be used anymore. All accessible networks should be entered at "Local networks" as comma separated list now. In your case: "172.16.0.0/21, 172.16.8.0/21,172.16.16.0/21"

          I don't know if this can solve your problem. I assume the hosts at West and South can be reached from an East host?

          1 Reply Last reply Reply Quote 0
          • L
            Lou57
            last edited by

            Thanks! The problem is that I am not deprecated … I am still running 2.0.1.
            I have new hardware that I will deploy in the next couple of weeks and will deploy that with 2.1.
            I discovered that I am missing any iroute commands, so I am pursuing how to add them.

            Also, I am wondering if my MPLS router needs a static route placed into it that says, "if you want to get back to 172.18.1.0/24, go here."

            1 Reply Last reply Reply Quote 0
            • L
              Lou57
              last edited by

              Still working on this problem …  :o

              I was reading through the 2.1 manual and saw that I should add route statements to the Advanced section of the OpenVPN server setup. I have:

              route 172.16.8.0 255.255.248.0;route 172.16.16.0 255.255.248.0;push "route 172.16.8.0 255.255.248.0";push "route 172.16.16.0 255.255.248.0"

              as well as add a Client Specific Overide statement that looks like this:

              iroute 172.16.8.0 255.255.248.0;iroute 172.16.16.0 255.255.248.0;

              It didn't resolve the problem.

              I can access these other networks from the LAN. I simply cannot access them when connected via VPN.

              1 Reply Last reply Reply Quote 0
              • L
                Lou57
                last edited by

                I can also ping the other sites from the firewall's LAN interface.

                1 Reply Last reply Reply Quote 0
                • S
                  steve_cohen
                  last edited by

                  iroutes cannot go in the global as openvpn will not know which client has which route

                  the clients specifics stuff for West
                  iroute 172.16.8.0 255.255.248.0;

                  for client specific South
                  iroute 172.16.16.0 255.255.248.0;

                  https://community.openvpn.net/openvpn/wiki/RoutedLans

                  1 Reply Last reply Reply Quote 0
                  • L
                    Lou57
                    last edited by

                    I noticed that when I ran with that config, that my Windows PC no longer had any routing information in it for the remote networks. I returned it the two simple push statements.

                    I no longer believe that the problem is in the OpenVPN configuration, but rather, is in the lack of static routes in the gateway and router at each of the sites. Your link https://community.openvpn.net/openvpn/wiki/RoutedLans pretty well documents the problem in the section called, "ROUTES TO ADD OUTSIDE OF OPENVPN".

                    Thanks for the links! They were very helpful in my understanding of what iroutes really do.

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