From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kim Jensen Date: Mon, 31 Mar 2003 16:42:12 +0000 Subject: Re: [LARTC] problems with routing (two DSL lines) Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi Stefan, The problem is that you must have a copy of your routing table installed with a different default. Look at the small shell script in http://linux-ip.net/html/adv-multi-internet.html. /Kim On Monday 31 March 2003 18:54, Stefan Weigel wrote: > Hi! > I have sucessfully installed the iproute2 stuff. I configurated the way > like this: > > iptables -A PREROUTING -i eth0 -t mangle -p TCP --dport 80 -j MARK > --set-mark > > echo 201 dynamic.out >> /etc/iproute2/rt_tables > ip rule add fwmark 1 table dynamic.out > ip route add default via dev ppp0 table dynamic.out > > iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE > > > After setup it's working fine. But instead of only routing only the http > requests over ppp0, all protocols are routed over this interface. > > I have another DSL line (SDSL) with a public IP address. I don't know, why > everything is routed through the ADSL line. > > > Best regards > > Stefan _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/