Compare commits
3 Commits
405de0b8d9
...
43267d5353
Author | SHA1 | Date | |
---|---|---|---|
|
43267d5353 | ||
|
a0cbf7c6f0 | ||
|
82ed9e524d |
21
bots.txt
21
bots.txt
@ -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
|
||||
|
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