Thanks a lot! I had tried it, but thanks to your hint I got my real problem I thoght I already had by default /proc/sys/net/ipv4/ip_forward set to 1 but I did't.
Your ip command and this makes it work. Thanks again!!! El mi�, 08-10-2003 a las 00:57, Bryan Whitehead escribi�: > diego wrote: > > I have a MDK 8.2 machine conected to internet through eth1 (adsl) and to > > a laptop through eth0. > > Which is the easiest way to make the laptop reach internet with all > > services (not only http)? > > If you really want to export all the services from your laptop like a > webserver (http) then the easiest way is to unplug your MDK 8.2 machine > from the ADSL and plug it into your laptop. > > If you mean you want to be able to reach all services on the internet > from your laptop through the mdk8.2 machine, then just add a rule to > your nat tables postrouting chain (I'm assuming your ADSL has a real > address and is set up for NAT while your laptop has a fake internal > address). > > iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE > > If you want a service to pass thru your nat (aka destination nat / > forward) then: > iptables -t nat -A PREROUTING -d $HOSTIP -p tcp --dport 25 -j DNAT --to > $MAIL_SERVER:25 > > $HOSTIP is your mdk8.2 machine and $MAIL_SERVER would be your laptop. > > -- > Bryan Whitehead > SysAdmin - JPL - Interferometry and Large Optical Systems > Phone: 818 354 2903 > [EMAIL PROTECTED] > > > ---- > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com -- Diego Dominguez __/\__ | | Andalucia / \ Spain \ / |__ __| \/
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
