Skip to content

Commit

Permalink
Update ipban.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AliDbg authored Feb 1, 2024
1 parent b4f1aec commit 319c444
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ipban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,18 +192,18 @@ sys_updt(){
cpanm Net::CIDR::Lite
cpanm Text::CSV_XS
fi
systemctl daemon-reload
systemctl enable iptables.service 2>/dev/null
systemctl enable ip6tables.service 2>/dev/null
systemctl enable netfilter-persistent.service 2>/dev/null
systemctl enable cron.service 2>/dev/null

if ! lsmod | grep -q "x_tables\|xt_geoip" && [[ "${DISTRO}" == *"debian"* ]]; then

if ! lsmod | grep -q "x_tables\|xt_geoip" && [[ "${DISTRO}" == *"debian"* ]]; then
printf 'y\n' | apt -y install module-assistant xtables-addons-source
printf 'y\n' | module-assistant prepare
printf 'y\n' | module-assistant -f auto-install xtables-addons-source
fi

systemctl daemon-reload 2>/dev/null
systemctl enable iptables.service 2>/dev/null
systemctl enable ip6tables.service 2>/dev/null
systemctl enable netfilter-persistent.service 2>/dev/null
systemctl enable cron.service 2>/dev/null
}

install_ipban(){
Expand Down

0 comments on commit 319c444

Please sign in to comment.