On Mon, 19 Oct 1998 20:27:45 -0400, 
Vladislav Malyshkin <[EMAIL PROTECTED]> wrote:
>I use RedHat 5.1 box with two modems and two ppp connections.
>I can masquerade to any of these connections.
>Is there any way to masquerade some hosts to ppp0
>and some hosts to ppp1 simultaneously.

RULE 1: Routing is done first, then masquerading.

masquerading only kicks in *after* the routing decision has been made
and the output device has been chosen.  you cannot set ipfwadm rules
and expect the kernel to change its routing algorithm.  First get
packets from the 192.168.1.32 subnet to route via ppp1 and everything
else to route via ppp0.  Then masq will stand a chance of doing what
you want.

Looks like you need to route packets based on their source address.
This is already in in 2.1, there are patches for 2.0 in
ftp://ftp.inr.ac.ru/ip-routing/, I think it is routing.tgz.

BTW, 192.168.1.32/255.255.255.32 is not a valid netmask for masq.  It
has holes in the bit pattern, masq requires contiguous '1' bits.


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to