Re: [opensuse] iptables config file and reboot
- From: Darryl Gregorash <raven@xxxxxxxxxxxxx>
- Date: Thu, 31 May 2007 08:57:01 -0600
On 2007-05-31 00:32, Stephan Schöffel wrote:
thanks for the hint. i'll think about that approach. yet there has toThat file contains all the variables needed for /sbin/SuSEfirewall2,
be a file somewhere, where the yast firewall settings are stored. i
figured there is a file /etc/sysconfig/Susefirewall2 but it does not
like iptable entries to me. aint there a file where configuration is
saved except in a start script?
which is the startup script, to set up the firewall. Except for a few
scripts, all the files in /etc/sysconfig only contain variables that
various start scripts need to set up the system. It is done this way
because there is no "one size fits all", especially with firewalls.
The proper approach is to do as Verner suggested, write a script in
/etc/init.d/ and link to it in the rc3.d and rc5.d directories.
There is a sample start script in /etc/init.d/skeleton. If you follow
the instructions in that, particularly those at the top pertaining to
services which must be running before the firewall is started and should
still be running when it is stopped, you can write a script that Yast's
system services (runlevel) configuration module will recognize. Then you
wouldn't have to create your own links, rather just write your script in
/etc/init.d/, run Yast and go to the runlevel module (Yast/services -->
System services (runlevel) ). In expert mode, find and highlight your
service name (eg. MyFirewall), enable it (if the script file is written
properly this will select the proper runlevels where it should start,
and also create the proper links in the correct rcN.d directories), and
start it. BTW, this is not SuSE-specific -- it is all part of the LSB.
--
Hypocrisy is the homage vice pays to virtue. - François de La Rochefoucauld
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- References:
- [opensuse] iptables config file and reboot
- From: Stephan Schöffel
- Re: [opensuse] iptables config file and reboot
- From: Verner Kjærsgaard
- Re: [opensuse] iptables config file and reboot
- From: Stephan Schöffel
- [opensuse] iptables config file and reboot
- Prev by Date: Re: [opensuse] Publisher alternatives
- Next by Date: [opensuse] nVidia Video Card Advice Please
- Previous by thread: Re: [opensuse] iptables config file and reboot
- Next by thread: Re: [opensuse] iptables config file and reboot
- Index(es):
Relevant Pages
|
|