I have an openvpn client and it's configuration is stored in a .ovpn file. All my network traffic is going through the VPN tunnel when I connect to it.

I want to add an exception for some of the IPs to not go through the VPN tunnel. I have tried adding route www.google.com at the end of the ovpn file to test it. ( is router IP address)

But, this is making the configuration file invalid. I am just beginning to learn openvpn and I am confused about where to add this line exactly.

  • I'm not sure but I think route can only be used with IPs not with DNS names...
    – derHugo
    Oct 13, 2017 at 7:04
  • this question does it by push route in the server config but it should be the same syntax for the client config using only route
    – derHugo
    Oct 13, 2017 at 7:06


Your Answer

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

Browse other questions tagged or ask your own question.