summaryrefslogtreecommitdiff
path: root/pppd/pppd.8
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-01-02 04:25:48 +0100
committerGitHub <noreply@github.com>2021-01-02 14:25:48 +1100
commitd0ccb87156c295da4f679f35936a976cea46d38c (patch)
tree79317d3a0c4faf01f353e8560f7be9e9dfa29769 /pppd/pppd.8
parent965e7fd1c49547535097d3ee98b60f73b7152d38 (diff)
downloadppp-d0ccb87156c295da4f679f35936a976cea46d38c.tar.gz
pppd: Add replacedefaultroute option (#200)
Adds an option to pppd to control whether to replace existing default routes when using the 'defaultroute' option. If defaultroute and replacedefaultroute are both set, pppd replaces an existing default route with the new default route. The old default route is restored when the connection is taken down. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Co-authored-by: Chris Boot <bootc@debian.org>
Diffstat (limited to 'pppd/pppd.8')
-rw-r--r--pppd/pppd.811
1 files changed, 10 insertions, 1 deletions
diff --git a/pppd/pppd.8 b/pppd/pppd.8
index 3b7c288..bb7e2ff 100644
--- a/pppd/pppd.8
+++ b/pppd/pppd.8
@@ -133,6 +133,11 @@ 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
+with the new default route. This option is privileged.
+.TP
.B disconnect \fIscript
Execute the command specified by \fIscript\fR, by passing it to a
shell, after
@@ -792,9 +797,13 @@ disable both forms of hardware flow control.
.TP
.B nodefaultroute
Disable the \fIdefaultroute\fR option. The system administrator who
-wishes to prevent users from creating default routes with pppd
+wishes to prevent users from adding a default route with pppd
can do so by placing this option in the /etc/ppp/options file.
.TP
+.B noreplacedefaultroute
+Disable the \fIreplacedefaultroute\fR option. This allows to disable a
+\fIreplacedefaultroute\fR option set previously in the configuration.
+.TP
.B nodefaultroute6
Disable the \fIdefaultroute6\fR option. The system administrator who
wishes to prevent users from adding a default route with pppd