hi,
We've got two internet connection, a faster and a slower, but we don't
have to pay for the slower. Our ISP's router decide which packet have
to go on which connection by source IP number (and don't want to change it).
We've got a local private network with 192.168.x.x.
1. Our firewall/router (is a linux) have to masquerade the local IP numbers.
2. Our firewall/router have to decide which packet can go on the fast and
which is on the slow connection (do the masquerade in this way).
I would like to route IP packages in two different manner.
- some special machine (source IP numbers) always have to out on
the fast connection.
- some port (like telnet, I hate to wait for echo) from any host always
have to go out on the fast connection.
How can I do that ?
I've got 2 (or 3) linux for this purpose (but I would like to solve it
with one). I think to put 3 ethernet card into the firewall. eth0 is
the inside link eth1 with IP number which belong to the fast IP range
on our ISP's router and eth2 with another IP number in the slow range.
But how can I decide which packet go out in which eth device ???
I use ipchains. I can setup to masquerade but in ipchain rules I can
select both source IP number and port, but I just set DENY, ACCEPT, MASQ
but _not_ MASQ to which device.
With route I just set source (and dest) IP number to choose device, bit _not_
port.
So what is the solution ???
Thank you for your help in advance.
-- Levente
------------------------------------------------------------------
E-Mail: Levente Farkas <[EMAIL PROTECTED]>
Homepage: http://www.inf.u-szeged.hu/~lfarkas/
PGP public key & Geek Code: [EMAIL PROTECTED]
------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]