Changes

Jump to navigation Jump to search
m
added mkdir & masq restart commands
Line 177: Line 177:  
*I want to block All traffic from some ip-addresses to my server.
 
*I want to block All traffic from some ip-addresses to my server.
 
Create a custom template and list the IP's
 
Create a custom template and list the IP's
 +
mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
 
  pico -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
 
  pico -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
 
  /sbin/iptables -A INPUT -s 69.212.12.76/32 -j DROP
 
  /sbin/iptables -A INPUT -s 69.212.12.76/32 -j DROP
Line 183: Line 184:  
expand and restart
 
expand and restart
 
  /sbin/e-smith/expand-template /etc/rc.d/init.d/masq
 
  /sbin/e-smith/expand-template /etc/rc.d/init.d/masq
  sv d masq; sv u masq
+
  /etc/init.d/masq restart
     
624

edits

Navigation menu