I have a successful OpenVPN connection. But when it is connected all internet traffic flows through the OpenVPN tunnel which is very slow.
I can manually fix this on Windows with CMD prompt>
C:/> route change 0.0.0.0 192.168.0.1 mask 0.0.0.0
Once that is done all connections behave the way I want.
Is there a way to avoid the OpenVPN client from changing the default gateway, or to automate putting the default gateway back immediately after the connection is complete?
Is there a way to automate the original default gateway?
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Thu Dec 22, 2011 7:39 pm
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Is there a way to automate the original default gateway?
the default gateway is redirected because either the server uses
to the client config file - this will skip ALL routes pushed by the VPN server.
or because the client config containspush "redirect-gateway def1"
If you don't control the server then you can overrule the server behaviour by addingredirect-gateway def1
Code: Select all
route-nopull