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