I want to let my network manager to connects to all websites through the VPN except some custom urls.

The problem is that using route setting you can set up urls that you want to connect to not excluding them. I also searched a lot about this and couldn't find anything related. Now my question is that even if this is possible and it yes how can I achieve this? thanks in advanced.

P.S. I'd gladly delete the question if there's any duplicate in all SE forums.


First of all When you route all of your traffic through VPN, You have a route to It means any request with any destination should go through it. Alternatively you can exclude the rule with adding a rule routing your special destination, lets say via your local gateway, lets say you could add this:

ip route add via dev eth0

eth0 in this case is your network interface.

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.