At 05:55 AM 4/4/1999 +0200, you wrote:
>Date sent:             Sun, 04 Apr 1999 03:21:04 +0000
>From:                  Ted Lloyd <[EMAIL PROTECTED]>
>Organization:          CCCS of Greater Washington
>To:                    Christoph Haberberger <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
>Subject:               Re: multiple masquerading (iproute2, ipchains, etc.) ARGH!!
>
>
>> If your router is the gateway for all the three "official" addresses, then
>> what is the problem?  Are each of the three ip-masq machines on eeach of
>> the three seperate networks?  DO they have two network cards?
>> 
>> I would think that all you need to do is set up masquarading on each of
>> the machines with the official addresses.  The private machines would have
>> their default route set to the "official" machine.
>> 
>> e.g.
>> 
>> 192.168.1.nnn ---------> 60.10.20.51 ---------> 60.10.20.50-------->
>> Internet
>
>I don't want to buy 3 machines. I want to masquerade these 3 LANs 
>through 3 different offical addresses with ONE machine.
>
>> Good luck.  (And read the IP-masquarade HOW TO.  It is an excellent work.)
>
>Thanks. (Excellent work for simple PPP-ISP-DialUp Setups, but things 
>like that .... :(( )
>
>Regards,
>Christoph.
>[EMAIL PROTECTED]
>-
It sounds like what you are after is ip aliasing, as well as ip masquarding.
Set it up so that your link to the internet looks like 3 diferent interfaces,
and set up the rules so that stuff from 192.168.1.0/24 goes to someting like
eth0:0, 192.168.2.0/24 goes to eth0:1, ect.  I am not sure of the format for
ipchains, but for ipfwadm you would do something like

ipfwadm -F -a masquerad -S 192.168.1.0/24 -V 60.10.20.51
ipfwadm -F -a masquerad -S 192.168.2.0/24 -V 60.10.20.52
ipfwadm -F -a masquerad -S 192.168.3.0/24 -V 60.10.20.53

or

ipfwadm -F -a masquerad -S 192.168.1.0/24 -W eth0:0
ipfwadm -F -a masquerad -S 192.168.2.0/24 -W eth0:1
ipfwadm -F -a masquerad -S 192.168.3.0/24 -W eth0:2

I hope this gets you pointed in the right direction...  Someone
with more experence with firewalls then me should be able to give
you the right format...

Mikkel


---
    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to