From: Robert Vangel <vangelr@rfgt.net>
To: netfilter@lists.netfilter.org
Subject: Re: Starting a fw
Date: Mon, 11 Jul 2005 15:35:15 +0800 [thread overview]
Message-ID: <42D22133.3020909@rfgt.net> (raw)
In-Reply-To: <9927912d05071022336896dbb@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]
Please try to keep the discussion on-list. Thanks.
Visham Ramsurrun wrote:
> Hi Robert,
>
> First of, many thx for the reply..
>
>
>>What distro? I am going to take a stab at it and choose RH/Fedora. I am also going to take a stab at it (I don't use Fedora) and say that default runlevel is 4?
>
>
> Yes, i'm using Red Hat 9 with an upgraded kernel of 2.6.11.7
>
>
>>If my memory serves me well (I hope it does), the file we need to look at is /etc/sysconfig/iptables. The contents of this file match the output of a `iptables-save'. Basically what the init script does is `iptables-restore < /etc/sysconfig/iptables'.
>
>
>>All you need to do is edit the /etc/sysconfig/iptables file to match your needs and then restart the iptables service.
>
>
> Do I delete the lines that are written inthe file and then paste the
> contents of my fiewall script?
You don't just paste the contents line for line. It needs to be changed a little.
Take a look at
http://zilla.id.au/netfilter/iptables & http://zilla.id.au/netfilter/shell
The first file is what I call `iptables syntax'. It is the file outputted by running `iptables-save' and can be read by using `iptables-restore < file'
The second is simply a shell script, executing iptables each time and appending each rule.
Hopefully the two files above will help you in converting your shell script into the iptables syntax one to put in /etc/sysconfig/iptables.
>
> Hope to hear from you soon..
>
> Warm regards,
> Visham
>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3166 bytes --]
prev parent reply other threads:[~2005-07-11 7:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-08 5:34 Starting a fw Visham Ramsurrun
2005-07-08 5:47 ` Robert Vangel
2005-07-08 6:00 ` Venkata Narayana
2005-07-08 13:12 ` /dev/rob0
[not found] ` <9927912d05071022336896dbb@mail.gmail.com>
2005-07-11 7:35 ` Robert Vangel [this message]
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=42D22133.3020909@rfgt.net \
--to=vangelr@rfgt.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.