A nice and elegant solution:
- Configure your ipchains properly, and when everything is working fine
execute 'ipchains-save > /etc/sysconfig/ipchains'.
ipchains-save alone will show you the rules on your system, if you
redirect that to a file it will create a kind of script that is read by
'ipchains-restore'
- If you want those chains to be restored eveytime you reboot then from
linuxconf or whatever configuration program where you can configure the
services at startup, enble and start 'ipchains' service. This places the file
'/etc/rc.d/init.d/ipchains' at startup, so it will automaticaly lauch
ipchains-restore and read /etc/sysconfig/ipchain. Next time you reboot you'll
see some like this:
[from /var/log/boot.log]
Sep 13 08:37:11 athlon ipchains: Flushing all current rules and user defined
chains: succeeded
Sep 13 08:37:11 athlon ipchains: Clearing all current rules and user defined
chains: succeeded
Sep 13 08:37:11 athlon ipchains: Applying ipchains firewall rules succeeded
It's as simple as this. What I did was to use a program like gfcc, configure
and test my chains and then apply them to the system. Then save the chains as
I wrote before and that's all everything running fine.
Good Luck. Berni.
J�rgen Heinrichs wrote:
> Hi,
>
> I got a question concerning ipchains. When I reboot my system, all firewall
> rules get reset to the standard "ALLOW all".
> How can I save my previously configured rules and reload them at boot?
>
> Perhaps ipchains-save to a file? But where is the right place to reload
> them? And how?
>
> Thanks for your help,
>
> J. Heinrichs
>
> ------------------------------------------------------------------------
> Keep in touch with http://mandrakeforum.com:
> Subscribe the "[EMAIL PROTECTED]" mailing list.
--
La frase c�lebre para hoy es ....
Los viejos informaticos nunca mueren, simplemente pierden su memoria.
Keep in touch with http://mandrakeforum.com:
Subscribe the "[EMAIL PROTECTED]" mailing list.