From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: iptables wiki
Date: Wed, 5 Jul 2006 12:55:20 -0700 [thread overview]
Message-ID: <7573e9640607051255u5499448eyfb133d4e08b44fd0@mail.gmail.com> (raw)
In-Reply-To: <loom.20060705T185054-358@post.gmane.org>
On 7/5/06, James <wireless@tampabay.rr.com> wrote:
> or I've seen this:
> #!/sbin/runscript
This is only for init scripts in /etc/init.d/. So no, don't use
this...use #!/bin/bash instead.
> /usr/local/bin/ might be appropriate too?
Yeah, that would work also...
>
> So my (edited) scipt issues new iptables commands
> and the gentoo script converts these commands
> into rulesets and stores them in /var/lib/iptables/rules-save?
Yep.
> 4. run "/etc/init.d/iptables save" convert (new) script based
> commands into rulesets and load .
> 5. Test the (new) scipt {rulesets}.
> 6. Go to step 3 and repeat until a wonderful firewall results.
>
> Note, step 4 can be added to the end of my-firewall.sh to
> combine steps 3 and 4?
If you like. But in fact step 4 can be moved to step 7 (er, step 6
once you renumber stuff), since you don't really need to save anything
until you are happy with the results.
-Richard
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-07-05 20:12 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-05 3:07 [gentoo-user] iptables wiki james
2006-07-05 10:03 ` Daniel
2006-07-05 15:28 ` [gentoo-user] " James
2006-07-05 16:22 ` Richard Fish
2006-07-05 18:30 ` James
2006-07-05 19:55 ` Richard Fish [this message]
2006-07-05 16:32 ` Dale
2006-07-05 16:45 ` James
2006-07-05 17:27 ` Dale
2006-07-05 18:36 ` Steve Wilson
2006-07-06 1:59 ` Dale
2006-07-06 7:37 ` Neil Bothwick
2006-07-06 8:22 ` [gentoo-user] march in /etc/make.conf Pawel K
2006-07-06 8:35 ` Dirk Heinrichs
2006-07-06 9:27 ` Alexander Skwar
2006-07-06 9:46 ` Dirk Heinrichs
2006-07-06 9:50 ` Uwe Thiem
2006-07-06 10:13 ` Alexander Skwar
2006-07-21 11:51 ` Enrico Weigelt
2006-07-06 8:36 ` Janusz Bossy
2006-07-21 11:56 ` Enrico Weigelt
2006-07-06 9:26 ` Alexander Skwar
2006-07-06 10:29 ` Neil Bothwick
2006-07-11 1:03 ` [gentoo-user] Re: iptables wiki Dale
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=7573e9640607051255u5499448eyfb133d4e08b44fd0@mail.gmail.com \
--to=bigfish@asmallpond.org \
--cc=gentoo-user@lists.gentoo.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