In the Op's script IPT=$(which iptables) ...or even the command at bash prompt doesn't work? ..I use ALienBoB's firewall generator, but was curious why it doesn't work?
Using whereis iptables does?
Forget that...it does, don't know what I was doing wrong.
I now know, I wasn't root.
A question though, why does whereis work and not which work as user?
Last edited by basil_brush; 10-26-2012 at 11:19 AM.