View Single Post
  #6 (permalink)  
Old 05-13-2008, 12:39 AM
apscinsspl's Avatar
apscinsspl apscinsspl is offline
Registered User
 
Join Date: Mar 2008
Posts: 112
apscinsspl is on a distinguished road
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.
Reply With Quote