On Friday 05 July 2002 3:44 pm, david wrote: > When I write these rules in the command line all is OK and the rules works > fine. > But if I put the same rules in a script : > > #!/bin/bash > # Standard default policies > iptables -P INPUT DROP > iptables -P FORWARD DROP > iptables -P OUTPUT DROP > > I got these errors > > iptables :Bad police name > iptables :Bad police name > iptables :Bad police name
What name did you call the script ? Where did you put the script ? How did you run the script ? Does the same thing happen if you change all occurences of 'iptables' inside the script for '/sbin/iptables' instead ? Antony.
