aboutsummaryrefslogtreecommitdiff
path: root/net/xl2tpd
diff options
context:
space:
mode:
authorLucian Cristian <lucian.cristian@gmail.com>2017-10-18 22:07:49 +0300
committerYousong Zhou <yszhou4tech@gmail.com>2017-10-19 09:48:44 +0800
commit7555971dd792023d912e3b7c6a614618682029d6 (patch)
tree16bef2a9c1267960b27da0144a1d73338547fca6 /net/xl2tpd
parent2e5a59c5b468238c6c2b7ade7717249399a9debe (diff)
xl2tpd: add some default configs needed on most of cases
mtu 1400, mru 1400 - on ppp devices, usually we need lower mtu, the existing link mabye is already under a lower MTU require-mschap-v2 - most of the time l2tp is used in conjunction with windows client who will use this kind of auth lcp-echo-interval 20, lcp-echo-failure 5 - keep alive 20 seconds interval and dead peer detection after 100 seconds connect-delay 5000 - wait for up to 5 seconds after the connect script finishes for a valid PPP packet from the peer nodefaultroute - prevent users from creating default routes with pppd nodefaultip - disables the default behavior when no local IP address is specified proxyarp - this will have the effect of making the peer appear to other systems to be on the local ethernet Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
Diffstat (limited to 'net/xl2tpd')
-rw-r--r--net/xl2tpd/files/options.xl2tpd9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/xl2tpd/files/options.xl2tpd b/net/xl2tpd/files/options.xl2tpd
index 876234ba9..5ef0d9441 100644
--- a/net/xl2tpd/files/options.xl2tpd
+++ b/net/xl2tpd/files/options.xl2tpd
@@ -9,3 +9,12 @@ novj
novjccomp
nopcomp
noaccomp
+mtu 1400
+mru 1400
+require-mschap-v2
+lcp-echo-interval 20
+lcp-echo-failure 5
+connect-delay 5000
+nodefaultroute
+noipdefault
+proxyarp