/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */
> > I have made a feeble attempt at drawing what I want to do below. What I
> > have is a masq box with 3 Ethernet interface (2 local and 1 to the
> > Internet via a cable modem). With standard masq all of the traffic
> > to/from the local networks gets translated into the single IP address of
> > the interface that is connected to the cable modem (1.2.3.4 in my
> > picture).
> >
> > However, in my perverse model I want to have each internal network
> > (192.168.0.x and 192.168.1.x in the picture) masq'ed to it's own
> > different global IP address that has been assigned by my cable modem ISP
> > (say, in my picture below, the ISP provided me with a block of 3 "real"
> > IP addresses 1.2.3.4, 1.2.3.5 and 1.2.3.6). I would like to masq all
> > the traffic coming to/from the 192.168.0.x network masq'ed to the IP
> > address 1.2.3.5 and all of the traffic coming to/from the 192.168.1.x
> > network masq'ed to 1.2.3.6. Can I do this with the current masq code (I
> > am running on RedHat 5.2, Linux 2.0.36)? If so, how do I configure it
> > and can the port forwarding code handle this configuration as well (i.e.
> > can I forward port 80 on IP address 1.2.3.5 to 192.168.0.2 port 80 AND
> > forward port 80 on 1.2.3.6 to 192.168.1.2 port 80)?
Well you could use ip-aliases to masq the three external address to the
three internal networks. Just treat each ip address like a seperate
network card. As far as setting up 3 different port forwarders..hmm
I dont believe when you ip alias a nic with additional addresses it sets
up additional ports for that interface. I think they all use the
same ports unless the port forwarder can bind to a specific ip address.
which may be possible..
Wake up Mike..
The Matrix has you.
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/
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.