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

    All traffic routed through VPN - Rule ignored

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 350 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.
    • O
      ou_snaaksie
      last edited by

      Please see the diagram:
      0_1538469680435_diag.jpg

      On router B I am running an OpenVPN client, which is working.
      The idea is that all traffic from the 192.168.32.0/24 network is routed through the VPN, EXCEPT
      for one host residing on a network from router A. So router B has a static route to the 172.20.0.0/16 network. and on the LAN interface (192 net), there is a rule (policy based routing) sending all traffic over the static route.

      The client can now only communicate over the VPN and can no longer reach the host in the 172.20.0.0/16 network.
      When I ping from the client, I get a response from the VPN gateway, and not for the LAN gateway.

      Please see the relevant config:
      3_1538470356611_1.png 2_1538470356610_2.png 1_1538470356610_3.png 0_1538470356610_4.png

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

        Consider that there is also a static route for 192.168.32.0/24 needed on router A.
        However, the interface on B facing to router A a is a DHCP configured. It should have a static IP.

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