All traffic routed through VPN - Rule ignored
ou_snaaksie last edited by
Please see the diagram:
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:
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.