On Sat, Apr 03, 1999 at 09:36:51PM +0200, Christoph Haberberger wrote:
> Hi!
>
> I have now been searching for 1 month about multiple masquerading but
> I can't find anything useful.
>
> ALL I WANT is to masquerade 3 internal networks through 3 different
> official IP-addresses (3 aliases on the masquerading-router).
>
> e.g.
>
> router itself: 60.10.20.50
>
> 3 times masquerading:
>
> 192.168.1.0/24 --> 60.10.20.51
> 192.168.2.0/24 --> 60.10.20.52
> 192.168.3.0/24 --> 60.10.20.53
>
> 60.10.20.x addresses are examples.
>
> I experimentated with IPCHAINS and IPROUTE2, but it was not possible
> to do such a configuration!
Recall that ipmasq gets its new src address from routing table(S)
[do NOTE the '(S)']
By routing by-source, you will be able you select for your needs
(example: create routing table "1" for packets from 192.168.1.0/24)
# ip rule add from 192.168.1.0/24 table 1
# ip route add default/0 via <GATE> src 60.10.20.51 table 1
.. and similar for the others.
Good luck!
--
-- Juanjo http://juanjox.linuxhq.com/
== Yerba mate & Linux == ... ehee
what a !P0WER!
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]