[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: masquarade with different exit ip's



Andrius Kasparavicius <andrius@andrius.org> writes:

> LAN(1.1.1.0/24)->[1.1.1.1[linuxbox]2.2.2.2]->[2.2.2.1[router]internet
> 
> all ip's is real. If I try to masquarade 1.1.1.0/24 net, then every
> workstation exit IP - 2.2.2.2. Can I get, that exit with ip 1.1.1.1, or
> another IP if I do alias of 1.1.1.1 interface? 

I'm not certain if I understand your question.  If you want to see the
real addresses on the second network then you should be forwarding only,
not masquerading.

If you mean can 1.1.1.1 be masqueraded as 2.2.2.1, and 1.1.1.2 be
masqueraded as 2.2.2.2, and 1.1.1.3 be masqueraded as 2.2.2.3 then yes I
believe that can be arranged using the ip command.

-- 
fraser campbell <fraser@starnix.com>                          starnix inc.
tollfree: 1-87-pro-linux                        thornhill, ontario, canada
http://www.starnix.com/             professional linux services & products



Reply to: