I am running RH Linux 7.1 with PHP. I wrote a little script to manipulate IPTABLES, however there is one catch. I want it to run a file in the /etc/rc.d/init.d directory that I created called iptables.
The script runs iptables, if I use passthru() it displays it, although a port that I add (webmin port) does not open. If I run the iptables script manally, works fine. nobody.nobody own iptables, and permissions are 777. I tried '/bin/bash /etc/rc.d/init.d/iptables' and still no luck. I am wondering if I need to run this as root for it to take effect, but not sure. ANY help on this is appreciated.