ifix
This commit is contained in:
parent
8a0217d311
commit
848bf9774d
@ -8,8 +8,6 @@ done
|
||||
|
||||
echo "Setting Rate Limit to : $1"
|
||||
echo
|
||||
$NFT add rule ip nat prerouting tcp dport 443 dnat to 192.168.0.55
|
||||
$NFT add rule ip nat prerouting tcp dport 80 dnat to 192.168.0.55
|
||||
$NFT add rule ip6 filter input ct state new tcp dport 443 update @http_ratelimit { ip6 saddr limit rate $1/second } accept
|
||||
|
||||
$NFT add rule ip6 filter input ct state new tcp dport 80 update @http_ratelimit { ip6 saddr limit rate $1/second } accept
|
||||
@ -17,3 +15,7 @@ $NFT add rule ip6 filter input ct state new tcp dport 80 update @http_ratelimit
|
||||
$NFT add rule ip filter input ct state new tcp dport 443 update @http_ratelimit { ip saddr limit rate $1/second } accept
|
||||
|
||||
$NFT add rule ip filter input ct state new tcp dport 80 update @http_ratelimit { ip saddr limit rate $1/second } accept
|
||||
|
||||
$NFT add rule ip forward prerouting tcp dport 80 dnat to 192.168.0.55
|
||||
$NFT add rule ip forward prerouting tcp dport 443 dnat to 192.168.0.55
|
||||
$NFT add rule ip forward postrouting ip daddr 192.168.0.55 masquerade
|
||||
|
Loading…
Reference in New Issue
Block a user