Changes between Version 5 and Version 6 of IgnoreRedirectGateway
- Timestamp:
- 06/09/18 19:17:43 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IgnoreRedirectGateway
v5 v6 3 3 If you are running OpenVPN as a client, and the server you use is using push "redirect-gateway" then your client redirects all internet traffic over the VPN. Sometimes clients do not want this, but they can not change the server's configuration. This page explains how to override redirect-gateway so the client does not need to redirect internet even though the server says to. 4 4 5 = Method 1: ignore = 5 = Method 1: filter the pushed option = 6 Add the following option to the client 7 {{{ 8 --pull-filter ignore redirect-gateway 9 }}} 10 This requires version 2.4 or higher and is the preferred method. For older versions use one of the methods described below. 11 12 = Method 2: ignore = 6 13 7 14 There are 2 options that can be used to ignore routes pushed by the server: … … 17 24 }}} 18 25 19 = Method 2: override =26 = Method 3: override = 20 27 21 28 Here we will simply add routes that override --redirect-gateway. This will work much like the def1 flag to --redirect-gateway works. This can be different if the server uses the def1 flag to the --redirect-gateway option or not (by checking the log while connecting). Note that net_gateway is an internal variable to openvpn and does not need to be changed to anything.