OPNsense Forum

English Forums => Virtual private networks => Topic started by: peters on August 10, 2022, 05:20:01 AM

Title: OpenVPN site-to-site not routing traffic correctly. Need help
Post by: peters on August 10, 2022, 05:20:01 AM
Declared in the System: Routes: Status

ipv4   192.168.100.0/24   10.10.11.2   UGS   NaN   1500   ovpns3           
ipv4   192.168.101.0/24   10.10.11.2   UGS   NaN   1500   ovpns3   

However, when doing a traceroute  to these two network, routing behaves differently

sysadm@:~$ traceroute -n 192.168.100.249
traceroute to 192.168.100.249 (192.168.100.249), 30 hops max, 60 byte packets
1  192.168.200.254  0.361 ms  0.313 ms  0.348 ms
2  161.49.96.241  9.750 ms  10.812 ms  10.721 ms
3  172.20.40.73  3.846 ms  3.776 ms  3.774 ms
4  161.49.2.197  2.449 ms  2.493 ms  2.389 ms
5  161.49.1.233  2.319 ms * 161.49.1.145  2.503 ms^C
sysadm@:~$ traceroute -n 192.168.101.249
traceroute to 192.168.101.249 (192.168.101.249), 30 hops max, 60 byte packets
1  192.168.200.254  0.241 ms  0.189 ms  0.334 ms
2  10.10.11.2  4.090 ms  4.227 ms  4.273 ms
3  192.168.101.249  5.087 ms  4.913 ms  5.128 ms

Any help here?
Title: Re: OpenVPN site-to-site not routing traffic correctly. Need help
Post by: peters on August 11, 2022, 09:48:38 PM
I think I figured it out.

there was a default rule for LAN using a gateway group.  I have to add an additional rule above it to route properly

FIXED