Koozali.org: home of the SME Server

Ports

Scott

Ports
« on: October 25, 2001, 04:33:06 PM »
Where do I ACCEPT, DROP, DENY ports?
Which file/files do I change?
Templates?

Thanks

Kelvin

Re: Ports
« Reply #1 on: October 25, 2001, 04:53:36 PM »
This has come up before. Search for masq

In any case, here is the location of all the files you need to change.

/etc/e-smith/templates/etc/rc.d/init.d/masq

if you edit the 45AllowXXXX  files you can change the policy from ACCEPT to DENY ..... etc.

Mind you, this is not the "e-smith friendly" way to do this as you are modifying the source templates of e-smith. But it works for me !

Kelvin

Luke Drumm

Re: Ports
« Reply #2 on: October 26, 2001, 03:41:29 AM »
To be a little more 'e-smith' friendly, I'd suggest doing the following:

mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq

Then copy whatever files you want to modify from the 'original' templates folder to this new one.

Make your changes and then do the normal template expansion jig.

The template engine will take any files found in the custom template folders over the standard ones, so you changes *will* make it into the built files.

That way, if you stuff something up, you can just delete/move the custom files and the template engine will go back to the originals.

Luke.