allan
06-26-03, 03:13 PM
I am having problem with IPTables choking on my variables, or more specifically, my variable.
I am running IPTables on a Virtuozzo VPS, I created (err...copied) a basic IPTables ruleset. The only variable I left in place is:
IPTABLES="/sbin/iptables"
When I try to restart IPTables I get the following error:
[root@vbind allan]# /etc/rc.d/init.d/iptables restart
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules:
Bad argument `PTABLES="/sbin/iptables'
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
BUT, if I take out the variable and replace it with /sbin/iptables (and I did verify that iptables is located in the /sbin directory I still get an error:
[root@vbind allan]# /etc/rc.d/init.d/iptables restart
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules:
Bad argument `/sbin/iptables'
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
Any thoughts?
I am running IPTables on a Virtuozzo VPS, I created (err...copied) a basic IPTables ruleset. The only variable I left in place is:
IPTABLES="/sbin/iptables"
When I try to restart IPTables I get the following error:
[root@vbind allan]# /etc/rc.d/init.d/iptables restart
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules:
Bad argument `PTABLES="/sbin/iptables'
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
BUT, if I take out the variable and replace it with /sbin/iptables (and I did verify that iptables is located in the /sbin directory I still get an error:
[root@vbind allan]# /etc/rc.d/init.d/iptables restart
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules:
Bad argument `/sbin/iptables'
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
Any thoughts?