Ban Ip in vps

azoorash

New member
just ban the geeza mate like this :
Code:
iptables -A INPUT -s 192.168.01 -j DROP

then type
Code:
iptables-save

then type for save
Code:
iptables-save >/var/etc/iptables.conf

after that whenever you do a full reboot your server just type below command and all ips are blocked by single command
Code:
iptables-restore </var/etc/iptables.conf

and if you want to unblock some ip then remove that ip from /var/etc.iptabels.conf and put ublock user ip in below command
Code:
iptables -I INPUT -s 192.168.0.1 -j ACCEPT
 
Back
Top