fix
This commit is contained in:
parent
bac070d296
commit
34117796c6
@ -293,3 +293,4 @@
|
||||
134.209.105.53
|
||||
134.209.105.53
|
||||
134.209.105.53
|
||||
134.209.105.53
|
||||
|
15
firewall2.sh
15
firewall2.sh
@ -40,13 +40,11 @@ wireguard-networking() {
|
||||
$NFT add rule nat postrouting masquerade
|
||||
}
|
||||
|
||||
ddos-protection() {
|
||||
attacker-search
|
||||
attacker-protection() {
|
||||
pedo-search
|
||||
bot-search
|
||||
attacker-search
|
||||
}
|
||||
|
||||
|
||||
saved-bots(){
|
||||
BOT_LOG=($(cat $SAVED_BOTS | sort -u))
|
||||
echo
|
||||
@ -218,7 +216,8 @@ start() {
|
||||
$NFT -f /usr/share/doc/nftables/examples/ipv4-filter.nft
|
||||
|
||||
if [[ $HOSTNAME == *"nas"* ]]; then
|
||||
ddos-protection
|
||||
attacker-protection
|
||||
bot-search
|
||||
saved-bots
|
||||
wireguard
|
||||
web
|
||||
@ -268,8 +267,10 @@ stop() {
|
||||
|
||||
if [ "$1" = "start" ]; then
|
||||
start
|
||||
elif [ "$1" = "ddos" ]; then
|
||||
ddos-protection
|
||||
elif [ "$1" = "bot-search" ]; then
|
||||
bot-search
|
||||
elif [ "$1" = "attacker-protection" ]; then
|
||||
attacker-protection
|
||||
elif [ "$1" = "status" ]; then
|
||||
status
|
||||
elif [ "$1" = "stop" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user