Yes, there is no difference between an private IP and a real internet IP for the kernel... You can make the masquerading this way:
I suppose your linux box has the following IPs: 192.168.1.1 and 10.0.13.1, both networks have a netmask of 255.255.255.0, and you want to mask all connections from 10.0.13.x to 192.168.1.x, you should execute (kernel 2.2.x):
ipchains -A forward -j MASQ -s 192.168.1.0/255.255.255.0 -d 10.0.13.0/255.255.255.0
-----Mensaje original-----
De: Charrua [SMTP:charrua@kernel.net.uy]
Enviado el: Miércoles 3 de Enero de 2001 14:44
Para: 'linux-net@vger.kernel.org'
Asunto: Ip Masquerade Question
Hi all, Happy New Year. Can I make Ip Masquerade between two IP private
networks? Example.
192.168.1.0 -------- Linux Box ------------ 10.0.13.1
Ip Masquerade
Thanks,
Andres
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org