[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Firewall startup script



Thanks Ivancho,

I'm doing lots of experiments....with your advices...
The second solution is easier for me....and infact it works well ;)
Now I want to test the first one you suggest..

thanks again!
Lorenzo

* Ivan Adams <ivancho.b@gmail.com> [060904, 19:24]:
> The easy way is:
> 1. Go in /etc/init.d/ and look for some small script.
> 2. Edit with your needs. I mean change PATH, DAEMON, ARGS to point to
> your script
> 3. Edit some case ... it's easy when you have working. Make sure that
> your script has stop firewalling directive, if not you have to make it
> in stop) case which will be sort of iptables -F iptables -F -t nat ...
> 4. runlevel (see what is your default runlevel), or look in /etc/inittab
> 5. make link from /etc/init.d to /etc/rc(level).d with name
> S30somename (with ln)
> reboot.
> Second way
> 1. start your script and look in iptables is there the rules
> 2. type: /etc/init.d/iptables save active
> 3. ln -s /etc/init.d/iptables /etc/rc(runlevel).d/S30iptables
> reboot.
> or manyaly by type /etc/init.d/iptables load active will load exacty
> the samo rules!
> Third way
> 1. copy your script(s) in /etc/rc.boot/ with random name without "."
> in it's name.
> 
> Regards



Reply to: