/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */

P. Matilainen <[EMAIL PROTECTED]> wrote:
>
> I installed linux on my 486 laptop and since it doesn't have NIC, I
> decided to try access internet via PLIP.

I tried PLIP once.  It is.... not fast.

> I can also ping 192.168.90.1 (eth1 on firewall box) from the laptop
> but nothing is forwarded to eth0 (internet).

That is a good test.  Maybe it really is forwarded to the internet, but
since your IP address 192.168.*.* is unknown to the internet, it does
not know how to route back to you?  That is why you need NAT.

Try adding a line such as

    iptables -t nat -a POSTROUTING -o eth0 -s 192.168.90.0/24 -j MASQ

That will cause NAT of traffic going to the internet from behind your
gateway.

This also requires ip-forwarding enabled:

    echo 1 > /proc/sys/net/ipv4/ip_forward

But I think iptables enables this for you, these days.  I'm not sure.

By the way, if you leave your firewall rules so blatantly open, you will
get hacked before very long....

-- 
   [EMAIL PROTECTED] (Fuzzy Fox)     || "Good judgment comes from experience.
sometimes known as David DeSimone  ||  Experience comes from bad judgment."
_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to