From d305ddcea6880c31d67fab87c6dd898c5643e479 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 10 Jul 2024 09:16:27 +0200 Subject: ... --- hosts/vidhar/network/gpon.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'hosts/vidhar/network/gpon.nix') diff --git a/hosts/vidhar/network/gpon.nix b/hosts/vidhar/network/gpon.nix index 6751978f..750f6545 100644 --- a/hosts/vidhar/network/gpon.nix +++ b/hosts/vidhar/network/gpon.nix @@ -45,6 +45,12 @@ in { serviceConfig = { PIDFile = "/run/pppd/${pppInterface}.pid"; }; + restartTriggers = with config; [ + environment.etc."ppp/ip-pre-up".source + environment.etc."ppp/ip-up".source + environment.etc."ppp/ip-down".source + sops.secrets."pap-secrets".sopsFile + ]; }; sops.secrets."pap-secrets" = { format = "binary"; @@ -70,8 +76,8 @@ in { tc qdisc add dev "${pppInterface}" handle ffff: ingress tc filter add dev "${pppInterface}" parent ffff: basic action ctinfo dscp 0x0000003f 0x00000040 action mirred egress redirect dev "ifb4${pppInterface}" - tc qdisc replace dev "ifb4${pppInterface}" root cake memlimit 128Mb pppoe-ptm diffserv4 bandwidth 285mbit - tc qdisc replace dev "${pppInterface}" root cake memlimit 128Mb pppoe-ptm nat diffserv4 wash bandwidth 143mbit + tc qdisc replace dev "ifb4${pppInterface}" root cake memlimit 128Mb overhead 35 mpu 74 regional diffserv4 bandwidth 285mbit autorate-ingress + tc qdisc replace dev "${pppInterface}" root cake memlimit 128Mb overhead 35 mpu 74 regional nat diffserv4 wash bandwidth 143mbit ''; }; in "${app}/bin/${app.meta.mainProgram}"; -- cgit v1.2.3