Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have problem with OpenVPN on Linux, because it overrides my gateways, so all network traffic goes through VPN tunnel. I want to push through tunnel only traffic from specific subnet. My routes without OpenVPN running:

default         UG    0      0        0 wlan0     *        U     0      0        0 wlan0

After enabling VPN:

default       UG    0      0        0 tun0
default         UG    0      0        0 wlan0
static-78-8-9-5 UGH   0      0        0 wlan0   *      U     0      0        0 tun0     *        U     0      0        0 wlan0

I tried to delete first route with command sudo route del default gw, but it always fails with SIOCDELRT: No such process.

Can I achieve that by changing OpenVPN

share|improve this question
Do post your OVPN client config file –  HackToHell Feb 6 '13 at 11:50
Shouldn't that be route del -net default gw –  Paul Feb 6 '13 at 12:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.