This commit is contained in:
Your Name 2024-07-20 14:51:36 -06:00
parent bac070d296
commit 34117796c6
2 changed files with 9 additions and 7 deletions

View File

@ -293,3 +293,4 @@
134.209.105.53
134.209.105.53
134.209.105.53
134.209.105.53

View File

@ -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