* Red Hat 7.3 and your script
@ 2002-09-04 14:49 Gustavo Marrero
2002-09-05 11:19 ` Michael
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Marrero @ 2002-09-04 14:49 UTC (permalink / raw)
To: Obsid
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Red Hat 7.3 and your script
2002-09-04 14:49 Red Hat 7.3 and your script Gustavo Marrero
@ 2002-09-05 11:19 ` Michael
0 siblings, 0 replies; 2+ messages in thread
From: Michael @ 2002-09-05 11:19 UTC (permalink / raw)
To: IPtables Users
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
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-05 11:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-04 14:49 Red Hat 7.3 and your script Gustavo Marrero
2002-09-05 11:19 ` Michael
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.