You might have better luck using the full path. I have mine in /etc/sysconfig so the path statement in /etc/rc.d/rc.local looks like this...
/etc/sysconfig/firewall
Also, it's important to set the permissions for root to read, write and exec. Also, read and exec for group and others.
Something like
chmod 755 /etc/sysconfig/firewall aught to do it.
Well, dag nab it,
here are the complete set of notes...
Do this while logged in as Root
Save the firewall script as /etc/sysconfig/firewall.
Important: Set the permissions for root to read, write and exec. Also, read and exec for group and others.
Something like chmod 755 /etc/sysconfig/firewall aught to do it.
Edit the /etc/rc.d/rc.local file with a path to the script. /etc/sysconfig/firewall
Run the command: service iptables stop
Type: source /etc/sysconfig/firewall
Type: iptables-save > /etc/sysconfig/iptables
Run the command: service iptables restart
The following seems to work ok for Debian based systems like Knoppix or Feather:
Save the firewall script as /etc/init.d/firewall.
Important: Set the permissions for root to read, write and exec. Also, read and exec for group and others.
Something like chmod 755 /etc/init.d/firewall aught to do it.
Type:
update-rc.d firewall defaults 99