Changes

From SME Server
Jump to navigationJump to search
m
Line 108: Line 108:  
  signal-event post-upgrade
 
  signal-event post-upgrade
 
  signal-event reboot
 
  signal-event reboot
 +
 +
 +
*I want to block All traffic from some ip-addresses to my server.
 +
Create a custom template and list the IP's
 +
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 88.28.215.11/32 -j DROP
 +
 +
expand and restart
 +
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
 +
sv d masq; sv u masq
     

Navigation menu