From: Michael <mutk@iprimus.com.au>
To: IPtables Users <netfilter@lists.samba.org>
Subject: Re: Red Hat 7.3 and your script
Date: Thu, 05 Sep 2002 21:19:18 +1000 [thread overview]
Message-ID: <3D773DB6.6060008@iprimus.com.au> (raw)
In-Reply-To: F35Xeg7tj2WAPZ50n1J0002e13c@hotmail.com
You don't save the iptables script in /etc/sysconfig...
Redhat has a feature to save iptables current settings. It saves those
setting in /etc/sysconfig . It is a particular format, and is not a
shell script of any description.
Here is what to do (With your script saved in a file called
"firewallscript":
As root,
chmod +x firewallscript
./firewallscript
service iptables save
Cheers,
Michael
Gustavo Marrero wrote:
> Dear iptables guru:
>
> My name is Gus. I am currently attempting to switch from ipchains
> (came with red hat) to iptables. I copied your script
> http://www.sentry.net/~obsid/IPTables/rc.scripts.dir/current/ (dual-home)
> and saved it in:
> /etc/sysconfig
> modified it to my ip addresses and locations.
> For some reason or another I just cannot hit (after 10's of hours of
> research) why it is not working.
> (ps. I am running the dual-homed firewall).
> This is what I get when booting. I did disable ipchains etc. I get the
> error for what ever I place in the first line of the script.Your help
> will greatly be appreciated.
>
> Bad argument `IPTABLES="/sbin/iptables'
> Try `iptables-restore -h' or 'iptables-restore --help' for more
> information.
> [FAILED]
>
> Please let me know if there is anything else I can do. Thanks a million.
>
> Gus
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>
prev parent reply other threads:[~2002-09-05 11:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-04 14:49 Red Hat 7.3 and your script Gustavo Marrero
2002-09-05 11:19 ` Michael [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=3D773DB6.6060008@iprimus.com.au \
--to=mutk@iprimus.com.au \
--cc=netfilter@lists.samba.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.