Hallo,
Having installed iptables on RH7.3 (2.4.x kernel) I decided to give it a try. The default sample script I can start by doing a
/etc/rc.d/init.d/iptables start
and I can see that it calls another script in /etc/sysconfig/iptables
I copied a sample script from the internet just to try it out. I replaced the old /etc/rc.d/init.d/iptables with the new one, but when I try to
/etc/rc.d/init.d/iptables start
I get the error message: Bash: wrong interpreter : no such file or filename. (they do both have the #!/bin/sh line..)
I then tried to use the original /etc/rc.d/init.d/iptables script, and replace the /etc/sysconfig/iptables script with the new one. When I do this the script will not accept variables. Can anybody point me in the right direction here?
Having installed iptables on RH7.3 (2.4.x kernel) I decided to give it a try. The default sample script I can start by doing a
/etc/rc.d/init.d/iptables start
and I can see that it calls another script in /etc/sysconfig/iptables
I copied a sample script from the internet just to try it out. I replaced the old /etc/rc.d/init.d/iptables with the new one, but when I try to
/etc/rc.d/init.d/iptables start
I get the error message: Bash: wrong interpreter : no such file or filename. (they do both have the #!/bin/sh line..)
I then tried to use the original /etc/rc.d/init.d/iptables script, and replace the /etc/sysconfig/iptables script with the new one. When I do this the script will not accept variables. Can anybody point me in the right direction here?