Tony: 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 Then what? david ----- Original Message ----- From: "Antony Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 05, 2002 10:11 PM Subject: Re: I need help , please > On Friday 05 July 2002 2:54 pm, david wrote: > > > Yes Antony ,but I do not know what to do with these rules > > Simple. Put them in a script, on their own, and run it. See if it does > what you want. > > > .I put these in the > > /etc/rc.d/init.d/iptables script , in the start section of the script and > > then what i do is : > > > > service iptables save > > /etc/rc.d/init.d/iptables restart > > I cannot comment on this because I don't do that on my system. Why do you > do that on yours ? > > > and I got all those errors message. > > > > Maybe I am doing something wrong with putting these rules in the script. > > Is there something else in the script which could be causing the problems ? > > > > Antony.
