Changes

From SME Server
Jump to navigationJump to search
194 bytes added ,  22:55, 9 January 2013
m
Line 39: Line 39:  
  mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
 
  mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
 
  nano -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
 
  nano -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
 +
 +
Now add the IP's you wish to block to the newly create file (40DenyRiffRaff) in the following format.
 +
 +
Of course you may call the file what ever you want as long as you add it in this format.
 +
 
  /sbin/iptables -A INPUT -s 69.212.12.76/32 -j DROP
 
  /sbin/iptables -A INPUT -s 69.212.12.76/32 -j DROP
 
  /sbin/iptables -A INPUT -s 88.28.215.11/32 -j DROP
 
  /sbin/iptables -A INPUT -s 88.28.215.11/32 -j DROP
50

edits

Navigation menu