Changes between Version 5 and Version 6 of IgnoreRedirectGateway


Ignore:
Timestamp:
06/09/18 19:17:43 (6 months ago)
Author:
selvanair
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IgnoreRedirectGateway

    v5 v6  
    33If 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.
    44
    5 = Method 1:  ignore =
     5= Method 1: filter the pushed option =
     6Add the following option to the client
     7{{{
     8--pull-filter ignore redirect-gateway
     9}}}
     10This 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 =
    613
    714There are 2 options that can be used to ignore routes pushed by the server:
     
    1724}}}
    1825
    19 = Method 2: override =
     26= Method 3: override =
    2027
    2128Here 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.