This commit is contained in:
Your Name 2024-09-22 23:03:05 -06:00
parent 405de0b8d9
commit 82ed9e524d
3 changed files with 2415 additions and 64 deletions

View File

@ -3117,3 +3117,22 @@
85.208.96.209 85.208.96.209
85.208.96.211 85.208.96.211
85.208.96.212 85.208.96.212
167.172.244.121
66.249.66.84
66.249.73.20
167.172.244.121
85.208.96.197
85.208.96.198
85.208.96.199
85.208.96.201
85.208.96.202
85.208.96.207
167.172.244.121
4.231.99.75
66.249.73.1
85.208.96.212
167.172.244.121
217.113.194.185
217.113.194.188
85.208.96.199
85.208.96.212

View File

@ -53,24 +53,22 @@ nft list table filter >$NFT_CACHE
ipBlockParser(){ ipBlockParser(){
if [[ "$1" == *":"* ]]; then if [[ "$1" == *":"* ]]; then
echo "Skipping IPv6" $NFT add rule ip6 filter input position 0 ip6 saddr $1 $NFT_DROP
#$NFT add rule ip6 filter input position 4 ip6 saddr $1 $NFT_DROP
else else
$NFT add rule ip filter input position 4 ip saddr "$1" $NFT_DROP $NFT add rule ip filter input position 0 ip saddr "$1" $NFT_DROP
fi fi
} }
portOpenParser(){ portOpenParser(){
$NFT_TCP $i $NFT_ACCEPT $NFT_TCP $i $NFT_ACCEPT
$NFT_UDP $i $NFT_ACCEPT $NFT_UDP $i $NFT_ACCEPT
#$NFT6_TCP $i $NFT_ACCEPT $NFT6_TCP $i $NFT_ACCEPT
#$NFT6_UDP $i $NFT_ACCEPT $NFT6_UDP $i $NFT_ACCEPT
} }
ipDeleteParser(){ ipDeleteParser(){
if [[ "$1" == *":"* ]]; then if [[ "$1" == *":"* ]]; then
echo "Skipping ipv6" $NFT delete rule ip6 filter input handle $HANDLE
#$NFT delete rule ip6 filter input handle $HANDLE
else else
$NFT delete rule ip filter input handle $HANDLE $NFT delete rule ip filter input handle $HANDLE
fi fi

2448
nft.rules

File diff suppressed because it is too large Load Diff