From d2a60dec0e131ab24c56965a7c8fa84d3899d8ab Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 9 Jul 2024 19:11:29 +0200 Subject: bump gpon speed --- hosts/vidhar/network/gpon.nix | 4 ++-- hosts/vidhar/network/ruleset.nft | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'hosts') 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 { 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 238mbit - tc qdisc replace dev "${pppInterface}" root cake memlimit 128Mb pppoe-ptm nat diffserv4 wash bandwidth 48mbit + 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 ''; }; 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 { rate over 50 mbytes/second burst 50 mbytes } limit lim_arp_gpon { - rate over 1750 kbytes/second burst 1750 kbytes + rate over 7500 kbytes/second burst 7500 kbytes } counter arp-rx {} @@ -47,7 +47,7 @@ table inet filter { rate over 50 mbytes/second burst 50 mbytes } limit lim_icmp_gpon { - rate over 1750 kbytes/second burst 1750 kbytes + rate over 7500 kbytes/second burst 7500 kbytes } counter icmp-ratelimit-gpon-fw {} -- cgit v1.2.3