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

    Does OpenVNP always become default route? Is there a way to avoid that?

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 4 Posters 2.0k 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.
    • A
      antonio7
      last edited by

      When I establish an OpenVPN connection, my routing table becomes like one attached.

      I want my WAN to be the default gateway and OpenVPN to be used for access to a few predefined servers.

      However two very strange routing rules appear after connection is established. The destinations are 0.0.0.0/1 and 128.0.0.0/1 and they go through OpenVPN.

      In the screenshot my WAN gateway is the default gateway, but any connection goes through OpenVPN anyway.

      Is that by design?

      Can I leave the OpenVPN connection up, but drop these routes?
      ![Google Chrome.png](/public/imported_attachments/1/Google Chrome.png)
      ![Google Chrome.png_thumb](/public/imported_attachments/1/Google Chrome.png_thumb)

      https://ananich.pro

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Uhm… stop enabling redirect gateway on the OVPN server? :D The above is caused by --redirect-gateway def1

        1 Reply Last reply Reply Quote 0
        • A
          antonio7
          last edited by

          Solved by adding "route-nopull" to advanced options.

          https://ananich.pro

          1 Reply Last reply Reply Quote 0
          • A
            abadonna
            last edited by

            @antonio7:

            Solved by adding "route-nopull" to advanced options.

            Can you tell me where did you put "route-nopull"? I've got the very same problem. Unfortunately I am pfsense newbie and I am not sure where to put this "route-nopull"…

            1 Reply Last reply Reply Quote 0
            • P
              phil.davis
              last edited by

              The OpenVPN client settings GUI page, Advanced Options box - that can take anything that is valid to add to an OpenVPN conf file - like route-nopull
              Just type it without quotes - it will be appended directly to the client conf file.

              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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