Updates to the server and first rate limiting attempts
This commit is contained in:
parent
c8a103ea43
commit
dbe550f9fe
5 changed files with 40 additions and 17 deletions
|
|
@ -50,4 +50,22 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Imposing a bandwidth limit to avoid Aurore/Crans disruptions
|
||||
networking.nftables = {
|
||||
tables.rate_limit = {
|
||||
name = "rate_limit";
|
||||
family = "inet";
|
||||
enable = true;
|
||||
content = ''
|
||||
limit lim { rate over 20 mbytes/second burst 40 mbytes ; comment "use to limit taffic" ; }
|
||||
|
||||
chain IN {
|
||||
type filter hook input priority filter; policy drop;
|
||||
tcp dport 80 limit name "lim" accept
|
||||
tcp dport 443 limit name "lim" accept
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue