summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-07-09 19:11:29 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-07-09 19:11:29 +0200
commitd2a60dec0e131ab24c56965a7c8fa84d3899d8ab (patch)
tree18de6beca72ddb97e08530411e1343d04dab0e51 /hosts
parentc6af884353a633989ee4561a4fc9f641aef7506f (diff)
downloadnixos-d2a60dec0e131ab24c56965a7c8fa84d3899d8ab.tar
nixos-d2a60dec0e131ab24c56965a7c8fa84d3899d8ab.tar.gz
nixos-d2a60dec0e131ab24c56965a7c8fa84d3899d8ab.tar.bz2
nixos-d2a60dec0e131ab24c56965a7c8fa84d3899d8ab.tar.xz
nixos-d2a60dec0e131ab24c56965a7c8fa84d3899d8ab.zip
bump gpon speed
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/network/gpon.nix4
-rw-r--r--hosts/vidhar/network/ruleset.nft4
2 files changed, 4 insertions, 4 deletions
diff --git a/hosts/vidhar/network/gpon.nix b/hosts/vidhar/network/gpon.nix
index c15a6e8d..6751978f 100644
--- a/hosts/vidhar/network/gpon.nix
+++ b/hosts/vidhar/network/gpon.nix
@@ -70,8 +70,8 @@ in {
70 70
71 tc qdisc add dev "${pppInterface}" handle ffff: ingress 71 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}" 72 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 238mbit 73 tc qdisc replace dev "ifb4${pppInterface}" root cake memlimit 128Mb pppoe-ptm diffserv4 bandwidth 285mbit
74 tc qdisc replace dev "${pppInterface}" root cake memlimit 128Mb pppoe-ptm nat diffserv4 wash bandwidth 48mbit 74 tc qdisc replace dev "${pppInterface}" root cake memlimit 128Mb pppoe-ptm nat diffserv4 wash bandwidth 143mbit
75 ''; 75 '';
76 }; 76 };
77 in "${app}/bin/${app.meta.mainProgram}"; 77 in "${app}/bin/${app.meta.mainProgram}";
diff --git a/hosts/vidhar/network/ruleset.nft b/hosts/vidhar/network/ruleset.nft
index 9843b71a..9f519302 100644
--- a/hosts/vidhar/network/ruleset.nft
+++ b/hosts/vidhar/network/ruleset.nft
@@ -5,7 +5,7 @@ table arp filter {
5 rate over 50 mbytes/second burst 50 mbytes 5 rate over 50 mbytes/second burst 50 mbytes
6 } 6 }
7 limit lim_arp_gpon { 7 limit lim_arp_gpon {
8 rate over 1750 kbytes/second burst 1750 kbytes 8 rate over 7500 kbytes/second burst 7500 kbytes
9 } 9 }
10 10
11 counter arp-rx {} 11 counter arp-rx {}
@@ -47,7 +47,7 @@ table inet filter {
47 rate over 50 mbytes/second burst 50 mbytes 47 rate over 50 mbytes/second burst 50 mbytes
48 } 48 }
49 limit lim_icmp_gpon { 49 limit lim_icmp_gpon {
50 rate over 1750 kbytes/second burst 1750 kbytes 50 rate over 7500 kbytes/second burst 7500 kbytes
51 } 51 }
52 52
53 counter icmp-ratelimit-gpon-fw {} 53 counter icmp-ratelimit-gpon-fw {}