It seems to me that is already in the script.
Run the script from the command line ./firewall.txt stop.
This should flush the table (iptables -F).
Run the script from the command line ./firewall.txt start
Look for output, especially the modproble lines.
You can set the first line of the script after #!/bin/sh to read set -xv and
that will show you the command being run and the results.
Good luck,
Matthew Dougherty
Consultant: Network management architecture and implementation.
[EMAIL PROTECTED]
973-325-8556
Resume: http://www.inch.com/~mdougher
Available for work!
Mike Chambers wrote:
>
> ----- Original Message -----
> From: "Steven Schmidt" <[EMAIL PROTECTED]>
> To: "Mike Chambers" <[EMAIL PROTECTED]>; "Netfilter" <[EMAIL PROTECTED]>
> Sent: Thursday, April 11, 2002 9:12 PM
> Subject: Re: Internal network not accessing Internet
>
> > Sounds like packet forwarding is not enabled.
> >
> > Check contents of /proc/sys/net/ipv4/ip_forward.
> >
> > If it has 0 in to then
> >
> > echo 1 > /proc/sys/net/ipv4/ip_forward to activate packet forwarding.
>
> This was the problem and already had discovered it. But since I already
> sent the email, figured I'd let anyone look at the script and recommend
> anything to make it better or easier or whatever.
>
> Thanks,
>
> Mike