fix
This commit is contained in:
parent
405de0b8d9
commit
82ed9e524d
19
bots.txt
19
bots.txt
@ -3117,3 +3117,22 @@
|
||||
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
|
||||
|
12
firewall2.sh
12
firewall2.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user