Koozali.org: home of the SME Server

how to controle iptables

hanscees

how to controle iptables
« on: May 19, 2003, 03:49:23 AM »
hi,

where can I find the iptables rules that are applied to e-smith 5.6?

I can make a script and run it every 10 minutes by cron but I would like to do it the e-smith way.

greetings

Hans-Cees

hanscees

Re: how to controle iptables
« Reply #1 on: May 20, 2003, 02:40:03 AM »
Just might answer it myself for others that use the search function here:-)

Esmith uses the runlevel 7.

so
/etc/rc7.d has all links to programs it runs.

It runs iptables there and also masq.

These are softlinks to a  general esmith script:

/etc/rc.d/init.d/e-smith-service

this runs things depending on:
/home/e-smith/configuration

You can see what this amounts to by doing

iptables -L
and iptables -t nat -L

I would built my own script and pass it here shortly, because I do not like others' scripts.

greetings

hc

krustykev

Re: how to controle iptables
« Reply #2 on: May 21, 2003, 03:25:10 AM »
Would appreciate a copy of the script after you have written it please and thank you

hanscees

Re: how to controle iptables
« Reply #3 on: May 28, 2003, 12:05:01 AM »
it is here:
www.hanscees.net/iptables5

It was designed to log a lot of things though.

hc