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

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)

OpenVPN client.conf
some excerpts

dev tun10
proto udp

YaST network settings -> routing

default gateway:
device: eth0

routes: (just one example)

  • destination: (whatismyip.com)
  • gateway:
  • genmask:
  • device: tun10

route -n output
the marked lines only show up when I start the VPN tunnel without route-nopull

Destination Gateway         Genmask         Flags Iface       UG    tun10 //without route-nopull         UG    eth0   U     eth1       UG    tun10 //without route-nopull UH    tun10 //without route-nopull UHG   tun10 //without route-nopull

As far as I know, YaST will not create those rules for you. If you really want to use YaST, I can not help - but if you only want to make your routes work, try this:

Add a route option to your OpenVPN client configuration (see the OpenVPN man page at --route for details). That way the routes will be added after a successfull connection is made with OpenVPN.

For example:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.