From: "Nazghul" Subject: Routing depending on source address or destination port Date: Sat, 8 Jun 2002 11:08:01 +0200 Sender: netfilter-admin@lists.samba.org Message-ID: <002b01c20ecb$fdf161c0$0200a8c0@dvteam.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002C_01C20EDC.C17A31C0" Return-path: Errors-To: netfilter-admin@lists.samba.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.samba.org This is a multi-part message in MIME format. ------=_NextPart_000_002C_01C20EDC.C17A31C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I had a careful look in the list archives, bu did not find anything appropriate. In case I have overseen something, redirects are welcome. On our network there are two routers maintaining different internet connections. The first uses a DSL connection, the second a satellite link (with incredible high bandwith, but the latency is a pain-in-the-a**). The goal is to use the DSL connection for all interactive tasks like ssh etc., and also for all outbound connections from the administrators workstation. All other traffic should use the (high latency) satellite link. Let's say the internal network would use 192.168.0.0/24. The default router is 192.168.0.254. This is a linux box with 2.4 kernel. The .254 address is bound to eth2. eth0 is connected with the DSL modem (so it has no IP address, the DSL connection uses ppp0). eth1 gets it's address by DHCP from the satellite modem. The administrator's box has the address 192.168.0.2 Of course the system has to use some kind of NAT for the connections between the local network and the internet. Someone told me that iptables/netfilter should be able to perform the job. Unfortunately I have no clue how. Any kind of help will be greatly appreciated. rm ------=_NextPart_000_002C_01C20EDC.C17A31C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Nachricht
 
 
I had=20 a careful look in the list archives, bu did not find anything = appropriate. In=20 case I have overseen something, redirects are=20 welcome.
 
On=20 our network there are two routers maintaining different internet = connections.=20 The first uses a DSL connection, the second a satellite link (with = incredible=20 high bandwith, but the latency is a=20 pain-in-the-a**).
 
The=20 goal is to use the DSL connection for all interactive tasks like = ssh etc.,=20 and also for all outbound connections from the administrators = workstation. All=20 other traffic should use the (high latency) satellite=20 link.
 
Let's=20 say the internal network would use 192.168.0.0/24. The default router is = 192.168.0.254. This is a linux box with 2.4 kernel. The .254 address is = bound to=20 eth2. eth0 is connected with the DSL modem (so it has no IP address, the = DSL=20 connection uses ppp0). eth1 gets it's address by DHCP from the satellite = modem.=20 The administrator's box has the address = 192.168.0.2
 
Of=20 course the system has to use some kind of NAT for the connections = between the=20 local network and the internet.
 
Someone told me that iptables/netfilter should be able = to perform=20 the job. Unfortunately I have no clue how.
 
Any=20 kind of help will be greatly appreciated.
 
rm
------=_NextPart_000_002C_01C20EDC.C17A31C0--