Blocking an IP on the server
In case you want to block access to server, first log into the shell as root. Make sure that your server should have ipchains or iptables to execute this.
Lets take 192.168.56.210 as an exampleIf using ipchains:
type “ipchains-A input-j DENY -p all -l -s 192.168.56.210/32”
If using iptables:
type “iptables -A INPUT -s 192.168.56.210/32 -j DROP”
If user wants to block access to only one port from an IP :
iptables-A INPUT -s 192.168.56.210/32 -p tcp —destination-port 23 -j DROP
Above script would remove all the packets from 192.168.56.210/32 to port 23 (telnet) on the server.





