diff options
Diffstat (limited to 'hosts/vidhar/network')
| -rw-r--r-- | hosts/vidhar/network/gpon.nix | 10 |
1 files changed, 8 insertions, 2 deletions
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 { | |||
| 45 | serviceConfig = { | 45 | serviceConfig = { |
| 46 | PIDFile = "/run/pppd/${pppInterface}.pid"; | 46 | PIDFile = "/run/pppd/${pppInterface}.pid"; |
| 47 | }; | 47 | }; |
| 48 | restartTriggers = with config; [ | ||
| 49 | environment.etc."ppp/ip-pre-up".source | ||
| 50 | environment.etc."ppp/ip-up".source | ||
| 51 | environment.etc."ppp/ip-down".source | ||
| 52 | sops.secrets."pap-secrets".sopsFile | ||
| 53 | ]; | ||
| 48 | }; | 54 | }; |
| 49 | sops.secrets."pap-secrets" = { | 55 | sops.secrets."pap-secrets" = { |
| 50 | format = "binary"; | 56 | format = "binary"; |
| @@ -70,8 +76,8 @@ in { | |||
| 70 | 76 | ||
| 71 | tc qdisc add dev "${pppInterface}" handle ffff: ingress | 77 | tc qdisc add dev "${pppInterface}" handle ffff: ingress |
| 72 | tc filter add dev "${pppInterface}" parent ffff: basic action ctinfo dscp 0x0000003f 0x00000040 action mirred egress redirect dev "ifb4${pppInterface}" | 78 | tc filter add dev "${pppInterface}" parent ffff: basic action ctinfo dscp 0x0000003f 0x00000040 action mirred egress redirect dev "ifb4${pppInterface}" |
| 73 | tc qdisc replace dev "ifb4${pppInterface}" root cake memlimit 128Mb pppoe-ptm diffserv4 bandwidth 285mbit | 79 | tc qdisc replace dev "ifb4${pppInterface}" root cake memlimit 128Mb overhead 35 mpu 74 regional diffserv4 bandwidth 285mbit autorate-ingress |
| 74 | tc qdisc replace dev "${pppInterface}" root cake memlimit 128Mb pppoe-ptm nat diffserv4 wash bandwidth 143mbit | 80 | tc qdisc replace dev "${pppInterface}" root cake memlimit 128Mb overhead 35 mpu 74 regional nat diffserv4 wash bandwidth 143mbit |
| 75 | ''; | 81 | ''; |
| 76 | }; | 82 | }; |
| 77 | in "${app}/bin/${app.meta.mainProgram}"; | 83 | in "${app}/bin/${app.meta.mainProgram}"; |
