Peter,
You need to modify the masq rules.
If you view the file /etc/rc.d/init.d/masq, you will see some lines like this:
adjust_tcp_in 113 ACCEPT $NEW_InboundTCP
adjust_tcp_in 21 denylog $NEW_InboundTCP
adjust_tcp_in 80 ACCEPT $NEW_InboundTCP
adjust_tcp_in 443 ACCEPT $NEW_InboundTCP
adjust_tcp_in 143 denylog $NEW_InboundTCP
adjust_tcp_in 389 denylog $NEW_InboundTCP
adjust_tcp_in 110 denylog $NEW_InboundTCP
adjust_tcp_in 1723 denylog $NEW_InboundTCP
adjust_tcp_in 25 ACCEPT $NEW_InboundTCP
adjust_tcp_in 22 ACCEPT $NEW_InboundTCP
adjust_tcp_in 23 denylog $NEW_InboundTCP
Any line that has ACCEPT in it is a open port. We need to change this to denylog like the others. Here are the steps:
Create the appropriate directories using the command:
mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq
Copy the masq fragments you want to modify, SMTP and HTTP:
cp /etc/e-smith/templates/etc/rc.d/init.d/masq/45AllowSMTP /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
cp /etc/e-smith/templates/etc/rc.d/init.d/masq/45AllowHTTP /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
Edit the line in each fragment from:
BEFORE
$OUT = allow_tcp_in(80,
($status eq "enabled") && ($access eq "public"));
TO:
AFTER
$OUT = allow_tcp_in(80,
($status eq "disabled") && ($access eq "private"));
Expand the template:
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq
View the file /etc/rc.d/init.d/masq and make sure that the changes are reflected in the file.
If not, check your files.
Restart the IP masquerading daemon:
service masq restart
Test again...a good site is
www.grc.comThat should be it.
HTH