Red Hat 7.3 and your script
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
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
Quoted 24 lines · Gustavo Marrero
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