Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Pat Erler on February 06, 2003, 10:13:13 PM

Title: correct place to put iptables rule into
Post by: Pat Erler on February 06, 2003, 10:13:13 PM
hi!

i need to open up some additional ports on my SME 5.6 box, what is the correct place in the /etc/e-smith/templates/etc tree to place these modifications into, so that they become permanent?

regards,

PAT
Title: Re: correct place to put iptables rule into
Post by: rene on February 06, 2003, 11:27:13 PM
Hi Pat,

on SME5.5 its /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/

Regards..René
Title: Re: correct place to put iptables rule into
Post by: Pat Erler on February 06, 2003, 11:40:42 PM
rene wrote:
> on SME5.5 its
> /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/
thanks, in 5.6 appearently to..

could you help me a bit more by telling me how i should handle
the $variables (like $oidentd in 45AllowAUTH for instance).
should i just rename them to variable names i find appropriate
(say $daytime for port 13?)

would a 45AllowDaytime then look like this?

{
    my $status = $daytime{status} || "disabled";
    my $access = $daytime{access} || "public";

    $OUT = allow_tcp_in(13,
        ($status eq "enabled") && ($access eq "public"));
}

btw, what is the command to expand these scripts and apply them to the current configuration without reboot?

thanks in advance...

regards,

PAT
Title: Re: correct place to put iptables rule into
Post by: Toutoune25 on February 09, 2003, 01:49:50 PM
You have just to type :
/sbin/e-smith/expand-template /etc/rc.d/init.d/masq

@+
..::TT25::..