diff options
author | Gert Doering <gert@greenie.muc.de> | 2015-09-11 17:33:44 +0200 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2015-09-20 14:19:53 +0200 |
commit | d227929b5db049ca6efbef9fb7d84be5e545b41d (patch) | |
tree | 935bddbe382129c95bbdd95999d7240c43342b54 /doc | |
parent | 1ff39cff4e644103607f0266cd4666dab18716c5 (diff) | |
download | openvpn-d227929b5db049ca6efbef9fb7d84be5e545b41d.tar.gz openvpn-d227929b5db049ca6efbef9fb7d84be5e545b41d.tar.xz openvpn-d227929b5db049ca6efbef9fb7d84be5e545b41d.zip |
Implement '--redirect-gateway ipv6'
Add "ipv6" and "!ipv4" sub-options to "--redirect-gateway" option.
This is done in the same way as in the OpenVPN 3 code base, so
"--redirect-gateway ipv6" will redirect both IPv4 and IPv6 - if you
want v6-only, use "--redirect-gateway ipv6 !ipv4".
The actual implementation is much simpler than for IPv4 - we just
add a few extra routes to the route_ipv6_option_list and leave it to
init_route_ipv6_list() to figure out whether there is an overlap with
IPv6 transport, and if yes, insert a host route to the VPN server
via the current IPv6 default gateway.
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1441985627-14822-8-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10086
Diffstat (limited to 'doc')
-rw-r--r-- | doc/openvpn.8 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/openvpn.8 b/doc/openvpn.8 index 3a0d4e0..e213f5a 100644 --- a/doc/openvpn.8 +++ b/doc/openvpn.8 @@ -1240,6 +1240,17 @@ on non-Windows clients). Block access to local LAN when the tunnel is active, except for the LAN gateway itself. This is accomplished by routing the local LAN (except for the LAN gateway address) into the tunnel. + +.B ipv6 -- +Redirect IPv6 routing into the tunnel. This works similar to the +.B def1 +flag, that is, more specific IPv6 routes are added (2000::/4, 3000::/4), +covering the whole IPv6 unicast space. + +.B !ipv4 -- +Do not redirect IPv4 traffic - typically used in the flag pair +.B "ipv6 !ipv4" +to redirect IPv6-only. .\"********************************************************* .TP .B \-\-link\-mtu n |