iptables problem



I am in a process of migrating from Fedora Core 1 to Debian etch.

We have few (winblows) boxes that are connected to the Internet via my
box. I just added to /etc/rc.local path to the following:

----------------------------------------------------------------------
# cat internetPoIP-u
#!/bin/bash

# echo " - Setting the default FORWARD policy to DROP"
/sbin/iptables -P FORWARD DROP

# echo " - Enabling SNAT (IPMASQ) functionality on ippp0"

/sbin/iptables -t nat -A POSTROUTING -o ippp0 -s 192.168.0.6/32 -j \
MASQUERADE

# echo " - Setting the FORWARD policy to 'DROP' all incoming-unrelated
traffic"

/sbin/iptables -A INPUT -i ippp0 -m state --state NEW,INVALID -j DROP
/sbin/iptables -A FORWARD -i ippp0 -m state --state NEW,INVALID -j DROP
echo 1 > /proc/sys/net/ipv4/ip_forward
----------------------------------------------------------------------



I tried this at Debian, and it will not work. If I just do:

# /sbin/iptables -t nat -A POSTROUTING -o ippp0 -s 192.168.0.6/32 -j \
MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

than 192.168.0.6 can access Internet. I just copied the above script
from the Internet, I did not wrote it. Any ideas what has changed with
the iptables, so that this script is no longer usable?

--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** Registered Linux user #291606 **
/__/\____/--\__\ ** http://counter.li.org/ **
.



Relevant Pages

  • Re: Javascript date routine (in droip down boxes_
    ... the boxes. ... It is not internet ... Let me get out my crystal ball and determine what browser you are using on each machine, along with the code you are using, then I can try to come up with some idea of why it isn't working. ... my "light" tells me that something in your page or your script isn't getting along real well with your browser. ...
    (comp.lang.javascript)
  • Re: cable modem connection slower than dial up
    ... On the same pc, with windows xp internet is fast but with the latest debian etch, internet is very very very slow!! ... I've installed debian sarge, dist-upgrading to etch and the download speed is about 80k. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Wireless USB Adaptor in Linux
    ... I am using Debian Etch and want to buy a wireless USB Adaptor for connecting ... to Internet. ...
    (comp.os.linux.hardware)
  • RE: IE Script Error
    ... How to Troubleshoot Script Errors in Internet Explorer ... The following warning message may also appear in the Microsoft Internet ... To update the scripting engine for Internet Explorer on Microsoft Windows ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: Script Error
    ... How to Troubleshoot Script Errors in Internet Explorer ... The following warning message may also appear in the Microsoft Internet ... To update the scripting engine for Internet Explorer on Microsoft Windows ...
    (microsoft.public.windows.inetexplorer.ie6.browser)