From: Arnt Karlsen <arnt@c2i.net>
To: netfilter@lists.netfilter.org
Subject: Re: Start Up Script
Date: Thu, 6 Mar 2003 18:36:33 +0100 [thread overview]
Message-ID: <20030306183633.18c428a9.arnt@c2i.net> (raw)
In-Reply-To: <3E676F72.1060702@pcxperience.com>
On Thu, 06 Mar 2003 09:55:30 -0600,
"James A. Pattie" <james@pcxperience.com> wrote in message
<3E676F72.1060702@pcxperience.com>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Brian Bunnell wrote:
> > Hello
> >
> > Thank you very much for helping me. I have a perfectly good
> > netfilter script that I run from the command line and everything
> > works fine. I
> would
> > like this script to run when I boot up the computer. I am having a
> > lot of trouble finding quality resources on the net about this.
> >
> > There are great resources for learning how to use netfilter.
> > However,
> when
> > it comes to startup scripts, all the examples seem to be 25 pages
> > long and incomprehensible or wnat me to completely rewrite the
> > script I already
> have.
> >
> > Why can't I just tell the computer to run my script instead of the
> "Let the
> > world in" script it runs at boot?
> >
> > Does anyone have any recommendations, resources or better yet, a
> > good concise example for run level 3?
>
> If you are on a chkconfig/sysv system just add the necessary chkconfig
> entries to the top of your script, drop it in /etc/init.d and
> chkconfig{script name} on. Make sure you disable the iptables scripts
> if on a redhat box.
>
> The PCX Firewall project will generate a redhat init script.
> http://pcxfirewall.sf.net/ Use that for examples on how to modify
> your script.
..the classic bsd approach is move your script to /etc/rc.d/rc.firewall
and call it from /etc/rc.d/rc.local, just before rc.local runs you
online at boot time.
--
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.
next prev parent reply other threads:[~2003-03-06 17:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-02 18:43 Start Up Script Brian Bunnell
2003-03-06 15:55 ` James A. Pattie
2003-03-06 17:36 ` Arnt Karlsen [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-03-06 15:28 Carol Anne Ogdin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030306183633.18c428a9.arnt@c2i.net \
--to=arnt@c2i.net \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox