From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Bayer stefan.bayer@gmx.net Date: Mon, 04 Dec 2000 17:17:56 +0000 Subject: [LARTC] partly correct routing Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org
Hello!
I want to use my isdn (ippp0) connection for ftp transfer and my adsl 
(eth0/ppp0) connection for all other transfer from my LAN (eth1) connected to 
the router.
I managed to set up iproute2 with fwmarks to send out packet to ippp0, but 
the data connection is done by adsl.
What do I have to set up to get this working correctly?
my iptables setup:
$IPTABLES -A PREROUTING -t mangle -p TCP -d ! $LOCALNET --dport 21 -j MARK 
--set-mark 1
$IPTABLES -A PREROUTING -t mangle -p UDP -d ! $LOCALNET --dport 21 -j MARK 
--set-mark 1
$IPTABLES -A PREROUTING -t mangle -p TCP -d ! $LOCALNET --dport 20 -j MARK 
--set-mark 1
$IPTABLES -A PREROUTING -t mangle -p UDP -d ! $LOCALNET --dport 20 -j MARK 
--set-mark 1

routing in table ippp0:
ip route list table ippp0
195.3.65.72 dev ippp0  proto kernel  scope link  src 212.183.78.79 
default via 195.3.65.72 dev ippp0

other routing:
ip route list            
212.88.181.5 dev ppp0  proto kernel  scope link  src 212.88.xxx.xxx 
195.3.65.0/24 dev ippp0  proto kernel  scope link  src 212.183.78.79 
10.0.0.0/24 dev eth0  proto kernel  scope link  src 10.0.0.2 
192.168.2.0/24 dev eth1  proto kernel  scope link  src 192.168.2.1 
127.0.0.0/8 dev lo  scope link 
default via 212.88.181.5 dev ppp0


ip rule list
0:      from all lookup local 
32765:  from all fwmark        1 lookup ippp0 
32766:  from all lookup main 
32767:  from all lookup default
-- 
thanx
Stefan
Email: stefan.bayer@gmx.net
----------------------------------------------------
My Box said: "Install Win95 or better ..." So I installed Linux.

Microsoft gives you Windows
Linux gives you the whole house