Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AliDbg authored Jan 17, 2024
1 parent 1dcfa59 commit 72fd68a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ipban.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ sys_updt(){
install_ipban(){
update_sysctl "fs.file-max" "1000000"
sysctl -p > /dev/null 2>&1; init 1; init 3
systemctl stop firewalld ufw 2>/dev/null
systemctl disable firewalld ufw 2>/dev/null
#iptables-save > backup-rules-ipv4.txt
#ip6tables-save > backup-rules-ipv6.txt
#systemctl stop firewalld ufw 2>/dev/null
#systemctl disable firewalld ufw 2>/dev/null
crontab -l | grep -v "ipban\|iptables" | crontab -
rm -rf /usr/share/xt_geoip/ && mkdir -p /usr/share/xt_geoip/ && chmod a+rwx /usr/share/xt_geoip/
chmod +x -f /usr/lib/xtables-addons/xt_geoip_build
Expand Down

0 comments on commit 72fd68a

Please sign in to comment.