I'm using opensSuSE as a router. eth0 is the WAN nic, eth1 is the LAN nic. I also have a tun10 device, which I'm using with an OpenVPN client connection.
I want yast routes to specify what traffic has to go out over the OpenVPN tunnel. All other traffic should continue to go out over eth0 (the default route). That's why I'm using
route-nopull, since the OpenVPN server pushes a default route for 0.0.0.0/32.
However, I don't see the routes defined in yast show up in
route -n. How can I make them work?
The IP addressed below are made up. (except one for whatismyip.com)
client route-nopull dev tun10 proto udp
YaST network settings -> routing
default gateway: 22.214.171.124
routes: (just one example)
- destination: 126.96.36.199 (whatismyip.com)
- gateway: 10.20.30.40
- genmask: 255.255.255.255
- device: tun10
route -n output
the marked lines only show up when I start the VPN tunnel without
Destination Gateway Genmask Flags Iface 0.0.0.0 10.20.30.40 188.8.131.52 UG tun10 //without route-nopull 0.0.0.0 184.108.40.206 0.0.0.0 UG eth0 10.0.0.0 0.0.0.0 255.255.255.0 U eth1 220.127.116.11 10.20.30.40 18.104.22.168 UG tun10 //without route-nopull 10.20.30.40 0.0.0.0 255.255.255.255 UH tun10 //without route-nopull 10.20.30.41 10.20.30.40 255.255.255.255 UHG tun10 //without route-nopull