On Sat, May 25, 2013 at 05:10:04PM +0200, Mattieu Baptiste wrote: > $ sudo ifconfig tun2 create rdomain 1 > $ sudo route -T1 exec openvpn --config... > > In this routing domain, I have other interfaces, with a default gateway. > > Stefan, how do you configure your tun interface?
I have tun0 in rdomain 0. I put the interface which openvpn uses to connect to the other vpn endpoint into rdomain 1. The only application that runs in rdomain 1 is openvpn. Traffic from all other applications gets routed through the tun interface.
