Changes

From SME Server
Jump to navigationJump to search
762 bytes added ,  03:28, 30 January 2010
added masq example
Line 68: Line 68:     
Examine /etc/dhcpd.conf to see that your changes have been created.
 
Examine /etc/dhcpd.conf to see that your changes have been created.
 +
 +
====masq====
 +
 +
Examine the template fragments in /etc/e-smith/templates/etc/rc.d/init.d/masq
 +
 +
Let's say you wish to block access to your server from an external IP, and there is no fragment that is suitable. Refer http://forums.contribs.org/index.php/topic,45495.0.html In this case create a new fragment.
 +
 +
Create a new template fragment
 +
nano -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyZombies
 +
Add the following to the fragment
 +
/sbin/iptables -A INPUT -s 24.71.223.10/32 -j DROP # waste of space IP
 +
/sbin/iptables -A INPUT -s 24.64.0.0/13 -j DROP # supporting telco
 +
Then save and exit
 +
Ctrl x
 +
yes
 +
Expand template and restart masq (masquerading)
 +
expand-template /etc/rc.d/init.d/masq
 +
/etc/init.d/masq restart
 +
 +
Check your change is working
    
====php.ini====
 
====php.ini====
624

edits

Navigation menu