[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Routing an internet acces to a Win2K station via a Woody platform



also sprach Pierre Dupuis <pi.dupuis@wanadoo.fr> [2002.09.16.0058 +0200]:
> I use a dsl internet acces on a woody platform via a ppp0 device.
> Antother PC is on lan with this woody, the lan is ok, i can ping both 
> box each others.
> i want to use the woody as a gateway to allow the win2k station to reach 
> Internet.
> The problem is : I don't know how :)))))

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -s <your network>/24 -j MASQUERADE

So if your machines are on the 192.168.1.0/24 network:

iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.1.0/24 -j MASQUERADE

i am assuming that you can ping the windoze machine from the debian
machine and vice versa...

> I've got a 1.4.18 kernel.

1.4.18? 2.4.18 you mean... ;%>

> Before,  I may compile the kernel in order to add some new driver ?

Not if you use the Debian stock kernel.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
 
heisenberg may have been here.

Attachment: pgpRANpDvQJ8_.pgp
Description: PGP signature


Reply to: