Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "James A. Pattie" <james@pcxperience.com>
To: Brian Bunnell <bbunnell@iastate.edu>
Cc: netfilter@lists.netfilter.org
Subject: Re: Start Up Script
Date: Thu, 06 Mar 2003 09:55:30 -0600	[thread overview]
Message-ID: <3E676F72.1060702@pcxperience.com> (raw)
In-Reply-To: <NHBBICNKELBGKGHPCFMPOEMFCAAA.bbunnell@iastate.edu>

-----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.


- --
James A. Pattie
james@pcxperience.com

Linux  --  SysAdmin / Programmer
Xperience, Inc.
http://www.pcxperience.com/
http://www.xperienceinc.com/

GPG Key Available at http://www.pcxperience.com/gpgkeys/james.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+Z29xtUXjwPIRLVERAph1AKCm9hDscA7l/fgnoVf2vg5TvzGVngCfRdGJ
tWrFpueX8wJ4AVpZ7Jw+MC0=
=mimX
-----END PGP SIGNATURE-----


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



  reply	other threads:[~2003-03-06 15:55 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 [this message]
2003-03-06 17:36   ` Arnt Karlsen
  -- 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=3E676F72.1060702@pcxperience.com \
    --to=james@pcxperience.com \
    --cc=bbunnell@iastate.edu \
    --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