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

    Routing certain network through vpn

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 497 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
      mrwildbob
      last edited by

      I need some help. I have an OpenVPN connection to a remote network. My subnet is 10.51.50.0/24 and Im trying to access 192.168.100.0/24. The system used to work without a problem. All the sudden a couple of days ago I was not able to access the remote network. It just so happens that the remote network is the same subnet as the management gui for the cable modem (192.168.100.1).

      How do I force traffic destin for 192.168.100.0/24 network to go through the VPN and not out the WAN interface.

      Thanks

      bob

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Do you have a VIP on WAN for that modem mgmt subnet?

        Check the system routing table in Diag > Routes. Do you see the subnet routed via OpenVPN?

        Steve

        M 1 Reply Last reply Reply Quote 0
        • M
          mrwildbob @stephenw10
          last edited by mrwildbob

          @stephenw10 I looked at all the routes and noticed something. II have two different VPNs but they are pointing to the same interface.

          192.168.14.0/24 255.255.255.0 UGS 14 1500 ovpnc1
          192.168.100.0/24 255.255.255.0 UGS 14 1500 ovpnc1
          255.255.255.0 link#19 UH 12 1500 ovpnc1

          192.168.14.0 is ovpnc1 and 192.168.100.0 should be ovpnc2

          Ive been looking around but I can not find the option to change the interface.

          edit:

          192.168.100.0 network does say
          Unique VPN ID Client 2 (ovpnc2)

          192.168.14.0 network says
          Unique VPN ID Client 1 (ovpnc1)

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Are those the tunnel subnets or remote subnets at the sites those clients connect to?

            M 1 Reply Last reply Reply Quote 0
            • M
              mrwildbob @stephenw10
              last edited by

              @stephenw10 These are the subnets of the remote networks. The tunnel subnets are 10.10.10.0 and 10.10.11.0.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Are the clients assigned interfaces? I would certainly expect to see those via the correct clients.

                Do you see the gateways on the correct clients?

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