From c3120199a30977a4da12fd031c1df4a95dec417a Mon Sep 17 00:00:00 2001 From: pali <7141871+pali@users.noreply.github.com> Date: Fri, 26 Feb 2021 05:44:19 +0100 Subject: [PATCH] pppd: defaultroute6 is not frequent option and should not be used (#257) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In pppd.8 manpage, move defaultroute6 option from FREQUENTLY USED OPTIONS into OPTIONS, and add a warning that this option should not be needed or used on IPv6 networks. Option defaultroute6 is needed only for broken IPv6 networks. Also add nodefaultroute6 into sample options file. Signed-off-by: Pali Rohár --- pppd/pppd.8 | 17 +++++++++++------ sample/options | 6 ++++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/pppd/pppd.8 b/pppd/pppd.8 index 781f4db..95051bf 100644 --- a/pppd/pppd.8 +++ b/pppd/pppd.8 @@ -127,12 +127,6 @@ is no other default route with the same metric. With the default value of -1, the route is only added if there is no default route at all. .TP -.B defaultroute6 -Add a default IPv6 route to the system routing tables, using the peer as -the gateway, when IPv6CP negotiation is successfully completed. -This entry is removed when the PPP connection is broken. This option -is privileged if the \fInodefaultroute6\fR option has been specified. -.TP .B replacedefaultroute This option is a flag to the defaultroute option. If defaultroute is set and this flag is also set, pppd replaces an existing default route @@ -354,6 +348,17 @@ Disable MRU [Maximum Receive Unit] negotiation. With this option, pppd will use the default MRU value of 1500 bytes for both the transmit and receive direction. .TP +.B defaultroute6 +Add a default IPv6 route to the system routing tables, using the peer as +the gateway, when IPv6CP negotiation is successfully completed. +This entry is removed when the PPP connection is broken. This option +is privileged if the \fInodefaultroute6\fR option has been specified. +\fBWARNING: Do not enable this option by default\fR. IPv6 routing tables +are managed by kernel (as apposite to IPv4) and IPv6 default route is +configured by kernel automatically too based on ICMPv6 Router Advertisement +packets. This option may conflict with kernel IPv6 route setup and should +be used only for broken IPv6 networks. +.TP .B deflate \fInr,nt Request that the peer compress packets that it sends, using the Deflate scheme, with a maximum window size of \fI2**nr\fR bytes, and diff --git a/sample/options b/sample/options index 8d0a3f9..35852c5 100644 --- a/sample/options +++ b/sample/options @@ -32,6 +32,12 @@ noipdefault # enable this on a server that already has a permanent default route #nodefaultroute +# Default IPv6 route is automatically configured by kernel based on +# received ICMPv6 Router Advertisement packets. +# pppd should not touch default IPv6 route to prevent breaking IPv6 setup. +# Enabling defaultroute6 is needed only for broken IPv6 setup. +nodefaultroute6 + # Run the executable or shell command specified after pppd has terminated # the link. This script could, for example, issue commands to the modem # to cause it to hang up if hardware modem control signals were not -- 2.39.2