• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 494 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 Dec 6, 2023, 5:47 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by Dec 6, 2023, 9:22 PM

      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 Dec 7, 2023, 1:03 AM Reply Quote 0
      • M
        mrwildbob @stephenw10
        last edited by mrwildbob Dec 7, 2023, 1:09 AM Dec 7, 2023, 1:03 AM

        @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
        • S
          stephenw10 Netgate Administrator
          last edited by Dec 7, 2023, 1:59 AM

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

          M 1 Reply Last reply Dec 7, 2023, 4:01 PM Reply Quote 0
          • M
            mrwildbob @stephenw10
            last edited by Dec 7, 2023, 4:01 PM

            @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
            • S
              stephenw10 Netgate Administrator
              last edited by Dec 7, 2023, 5:57 PM

              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
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received