This commit is contained in:
Your Name 2024-09-23 22:58:58 -06:00
parent 201e8d72b9
commit 56a9675fb8
2 changed files with 9872 additions and 19510 deletions

View File

@ -68,8 +68,8 @@ ipBlockParser() {
portOpenParser() {
if [[ "$1" == "443" || "$1" == "80" ]]; then
$NFT add rule ip filter input ct state new tcp dport $1 update @http_ratelimit { ip saddr limit rate 10/second } accept
$NFT add rule ip6 filter input ct state new tcp dport $1 update @http_ratelimit { ip6 saddr limit rate 10/second } accept
$NFT add rule ip filter input ct state new tcp dport $1 update @http_ratelimit { ip saddr limit rate 15/second } accept
$NFT add rule ip6 filter input ct state new tcp dport $1 update @http_ratelimit { ip6 saddr limit rate 15/second } accept
else
$NFT add rule ip filter input position 0 tcp dport $1 accept
$NFT add rule ip filter input position 0 udp dport $1 accept

29378
nft.rules

File diff suppressed because it is too large Load Diff