Here is a crazy idea: Try running some of the commands on the script at the command line.
If you keep getting the no file or directory found error everytime you type /sbin/iptables it may be because the iptables binary is not at /sbin/iptables.
which iptables
or
find / -name "iptables" -print
may tell you where it is.
Again, running some of the commands on the script by hand is a sure fire way to figure out where things go wrong.
If the script gives an error to tell you you're missing a kernel module, then use a command to list all the loaded modules and see if the one you're missing is being loaded. If not, then you will have to re-compile the kernel to include it...

Alexandr Molochnikov wrote:
-----Original Message-----
From: Scott Zuk [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 05, 2003 4:56 PM
To: [EMAIL PROTECTED]
Subject: Re: (clug-talk) Stuck with RH9 iptables install

  
Dumb question, but do you have a bang line at the top of your script?
    
i.e. 
  
#!/bin/sh or #!/bin/bash
That could be why things aren't being interpreted properly...
    

It was not at the top of the script (#!/bin/sh), but a few lines down,
below some comments. I moved it to the top, but it did not make any
difference.

Thanks.

Alex.

  

-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
--oo0oo-- Juan Alberto Cirez - Software Developer --oo0oo--
       ===========   [EMAIL PROTECTED]   =============
          C, C++, Java, & Perl  Linux development
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
          Sunny and Beautiful Vancouver, Canada.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

Reply via email to