firewall: show how to ratelimit icmp6 to 5% of available bandwidth

it's a little klunky as yet, requires setting properties.bandwidth on
the interface service
This commit is contained in:
Daniel Barlow
2025-03-25 23:53:02 +00:00
parent b1bf13bb01
commit 1a6160bcab
3 changed files with 33 additions and 2 deletions

View File

@@ -115,6 +115,7 @@ let
${command}
'';
notification-fd = 10;
# properties.bandwidth = 3 * 1000 * 1000;
timeout-up =
if lcpEcho.failure != null then (10 + lcpEcho.failure * lcpEcho.interval) * 1000 else 60 * 1000;
inherit dependencies;