]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
man: extend --persist-tun section
authorAntonio Quartulli <antonio@mandelbit.com>
Wed, 29 Jan 2025 09:41:25 +0000 (10:41 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 29 Jan 2025 16:51:17 +0000 (17:51 +0100)
The current persist-tun section has no mention of
retaining IP/routes and its potential usage in traffic
leaking protection.

Spell this out to allow the user to better understand
when this option can play an important role.

Change-Id: I6816f61b308ca9f6d1f9f687a6dc8e0aa2d044e0
Signed-off-by: Antonio Quartulli <antonio@mandelbit.com>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20250129094125.13420-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30684.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/man-sections/vpn-network-options.rst

index fc76939eab8223740b54f24371f75e21b10b04a3..67f7e1f99dac4f46d5907142d70745c7f1206a1d 100644 (file)
@@ -312,6 +312,15 @@ routing.
   :code:`SIGUSR1` is a restart signal similar to :code:`SIGHUP`, but which
   offers finer-grained control over reset options.
 
+  On Linux, this option can be useful when OpenVPN is not executed as
+  root and the CAP_NET_ADMIN has not been granted, because the process
+  would otherwise not be allowed to bring the interface down and back up.
+
+  Alongside the above, using ``--persist-tun`` allows the tunnel interface
+  to retain all IP/route settings, thus allowing the user to implement
+  any advanced traffic leaking protection (please note that for full
+  protection, extra route/firewall rules must be in place).
+
 --redirect-gateway flags
   Automatically execute routing commands to cause all outgoing IP traffic
   to be redirected over the VPN. This is a client-side option.