All you really need is to POSTROUTE the workstations..
With PPPoE do this..
INTSN="192.168.1.0/24"
IPTABLES=/sbin/iptables
EXTDEV="`adsl-status | grep "Link encap" | awk {'print $1'}"
$IPTABLES -A POSTROUTING -o $EXTDEV -t nat -s $INTSN -d $ANYWHERE -j
MASQUERADE
There is a /proc switch which you should turn on for dynamic IPs.. forgot
the path.. someone must know it.. argh..
-----Original Message-----
From: David Gaston Rodriguez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 03 July 2002 3:08 PM
To: [EMAIL PROTECTED]
Subject: Masquerading problems
Hi!, i am new in the list, i am from argentina, this is mi problem:
I have a small LAN with a server doing masquerading, I used the kernel
2.2.20 and
did not have any problem, now i decided to use the kernel 2.4.18, i set
iptables
to make the masquerading, but now there are web pages which i can enter from
workstations, like for example www.mixmail.com or www.yahoo.com, and from
the server
i can enter to this pages. I using 2 interfaces, eth0: external, eth1:
internal, the
external interface is connect to ADSL Modem (PPPoE).
Some idea on as could be mi problem?
Thanks!!
--
---------------------------------
DAVID GAST�N RODRIGUEZ
Linux Tucum�n
Nick: [[D4V|D]]
---------------------------------
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ: 81492566
MSN Messenger: david_80gr
---------------------------------