liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 07a6eb73cd716037ec79e29eec343b7da5504bc1
parent 159bfa30575bc61d4d03e6d26ec60f15241d13c6
Author: Daniel Barlow <dan@telent.net>
Date:   Mon,  8 Jul 2024 20:27:22 +0100

set lcp-echo timeout in l2tp

Diffstat:
Mmodules/ppp/l2tp.nix | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/ppp/l2tp.nix b/modules/ppp/l2tp.nix @@ -8,6 +8,8 @@ { lns, ppp-options }: let inherit (liminix.services) longrun; + lcp-echo-interval = 4; + lcp-echo-failure = 3; name = "${lns}.l2tp"; ip-up = writeAshScript "ip-up" {} '' . ${serviceFns} @@ -36,6 +38,8 @@ let "ipparam" name "nodetach" "usepeerdns" + "lcp-echo-interval" (builtins.toString lcp-echo-interval) + "lcp-echo-failure" (builtins.toString lcp-echo-failure) "logfd" "2" ]; conf = writeText "xl2tpd.conf" ''