At 04:05 PM 9/6/98 +0200, Santiago Garcia Mantinan wrote:
>To make it clearer, 192.168.1.1 is the one that is masquerading, it is
>connected to the internet!, 192.168.1.2 can use 192.168.1.1 to masquerade
>itself to go into the internet, but I don't want .2 to use .1 to
>masquerade itself when accesing 192.168.*.*
>
>Any ideas?

This is what the netmask on your .2 machine is for. On .2 you should have
.1 specified as the default gateway, and the netmask set to 255.255.0.0,
and the broadcast address to 192.168.255.255.

This way, when you try to access a machine on your internal network, it
will see by the netmask that it does not have to use the default gateway,
so it will not even go to the masq machine at all. When you try to access
an address outise your network, the netmask tells it that it must use the
gateway, so you get your masquerading. It's that simple.

HTH,
--
Sandy Coyne, obviously     "A day without sunshine is like
[EMAIL PROTECTED]         a day without orange juice"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to