Compare commits

...

3 Commits

Author SHA1 Message Date
Your Name
43267d5353 fix 2024-09-22 23:12:43 -06:00
Your Name
a0cbf7c6f0 fix 2024-09-22 23:10:26 -06:00
Your Name
82ed9e524d fix 2024-09-22 23:03:05 -06:00
3 changed files with 2411 additions and 65 deletions

View File

@ -2272,7 +2272,6 @@
74.235.135.245
44.214.187.82
172.190.111.150
47.5.115.173
40.67.142.64
167.94.146.60
2a01:4f8:242:3ce9::2
@ -3117,3 +3116,23 @@
85.208.96.209
85.208.96.211
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
2a01:4f9:c010:241b::1

View File

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

2443
nft.rules

File diff suppressed because it is too large Load Diff