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

    Unable to get Selective routing to OpenVPN(PIA) to work for single IP

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 528 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.
    • C
      cs1212
      last edited by

      Setup:
      WAN dhcp
      piaVPN dhcp
      LAN 192.168.0.1/24
      WLAN 192.168.1.1/24
      DMZ 10.10.10.1/24

      openVPN(PIA) up and connected
      WAN connected

      NAT rules configured on all interfaces for PIAVPN and NAT set to Manual Outbound (AON)

      FW rules:
      Screenshots attached below for LAN, WLAN, DMZ, PIAVPN, OpenVPN

      Problem I have is that when I connect to the WLAN and go to 'whats my ip' I still get the PIA (VPN) IP, not the IP from my ISP.

      it looks like all outgoing requests are going out through the VPN and ignoring the WAN.

      What I am trying to get to is to route 192.168.0.121 and DMZ to PIAvpn and to route everything else to WAN

      appreciate your help !

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

        Presumably you get the default route pushed from the openVPN server.

        To prohibit this, go to the client settings an check "Don't pull routes".

        1 Reply Last reply Reply Quote 0
        • C
          cs1212
          last edited by

          amazing..such a simple fix! thank you so much!

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