|
Hello,
iptables -I INPUT -s 124.115.0.0/16 -j DROP
will block the incoming connections, to block the outgoing connections for that Ip range will be:
/sbin/iptables -A OUTPUT -d 124.115.0.0/16 -j DROP
I would also suggest you to run the command:
/sbin/iptables-save
which will save the IPtables rules in the file:
/etc/sysconfig/iptables.save
so that when the server gets rebooted next time, the kernel will load the saved Iptables configuration. Other wise after your next server reboot, this Iprange will be open on the server again.
|