Consider this scenerio:


            ------------                             -------------
            |  BOX 1   |                             |  BOX 2    |
            |      eth1+----> Private net #1         |       eth1+----> Private net #3
Internet >--+eth0      |      192.168.1.x        /---+eth0       |      192.168.2.x
1.2.3.x     |      eth2+--->------>------->-----/    |       eth2+--------> 1.2.3.2 IP 
(not masq!)
            |          |      Private net #2         |           |
            ------------      10.0.0.x               -------------
                                                     
Two linux boxes, both running IP Masquerading.
Incoming internet connection has a mess of IPs: 1.2.3.x in this example.

Private net #1 goes through box 1, then out, no problem.
Private net #3 goes through box 2, then box 1, then out, no problem.

However, a user on box 2 wants one outside IP address, without any firewall
or masquerading.  All ports, both directions.

Eth0 on box 1 is set to respond to any IP address in its block.
What I want to do is set this up such that if eth0 on box 1 receives a packet
for address 1.2.3.2, it forwards it to eth2, say to address 10.0.0.2.  Then
Box 2's eth0, (who's address is set to 10.0.0.1, but should also respond to
multiple IPs), when it sees a packet for IP address 10.0.0.2, it forwards it
to eth2, address 1.2.3.2 (the original).  All types of packets, all ports, 
the works... just like the user was connected directly to the internet.

How do I do this??!

Bob

Reply via email to