Hi, I have been trying to create a static route to bypass openvpn for specific destination addresses (e.g. 8.8.8.8). My laptop is on 192.168.2.255 and outside global (though not actually global) is 192.168.1.1.
First I tried adding this entry in /etc/config/network :
config route 'test'
option interface 'wan'
option target '8.8.8.8'
Which produces this output from ip route show
:
8.8.8.8 dev eth0.2 scope link
That just doesn't seem to work. Traceroute stops at the inside global interface (192.168.1.208). Eventually I got to this:
8.8.8.8 via 192.168.1.1 dev eth0.2 src 192.168.2.1
This seems to do what I want, but only based on traceroute from the OpenWRT router. Traceroute passing through the router (from 192.168.2.255) behaves the same as before, landing on outside local (192.168.2.1) twice then terminating.
I'm not sure what to try next. Specifying scope global explicitly doesn't help. I will continue trying to figure this out, but any insight would be appreciated.