On Thursday 03 August 2006 00:41, James wrote:
> Hello,
>
> I've got my own iptables script to launch a customized firewall, located in
> /usr/local/bin.
>
> I'm aware of /etc/init.d/iptables the 'runscipt'. I do not wish to edit
> this scipt as 'gentoo' updates nuke my edits therein. Where is the gentoo
> place of preference to launch my scipt after the gentoo runscipt
> '/etc/init.d/iptables' is finished running?
>
> Is their a way to get 'rc-update add <my_firewall> default' to launch
> my_firewall without putting it in the /etc/init.d/ dir and using the
> runscipt template for my script?
>
>
> thoughts, suggestions and examples are most welcome.
>
>
> James
Just run your script once, then do
/etc/init.d/iptables save
/etc/init.d/iptables start
and
rc-update add iptables default
... and it will load your rules and start firewall automatically.
BR,
dmitri
--
[email protected] mailing list