MASQing 2 global ips to 2 private ips how?

MASQing 2 global ips to 2 private ips how?

Post by T » Wed, 29 Mar 2000 04:00:00



Hello,

I have a linux 2.2.14 server with 2 nics setup as a router doing
masqing for  10.x.x.x private network.  I have the extra two ips
aliased on the external nic in additional the server's own ip so:
eth0, eth0:1, eth0:2

Currently the machines on the private network MASQ using one global
IP.

What I want is to have my other two global ips send all traffic sent
to them, to a given private ip, then have that private ip forward its
traffic back out on that global ip.

so say incoming to 4.1.1.9 global

4.1.1.9 -->  10.0.0.5  

reply

10.0.0.5 -> 4.1.1.9

I can see the incoming traffic with TCPDUMP getting to the 10.0.0.5
machine but doesn't seem to go back out.

I'm using ipchains w. ipmasqadm mfw to direct all traffic from the
4.1.1.9 to the 10.0.0.5

can anyone help, or do I just need to dump linux for this server and
go to IP FILTER/Free BSD to accomplish this?

thanks! :)

Tyler