Hello all, We have two ADSL lines configured on a single box, hence interfaces ppp0 & ppp1. Is there a way to route packets to ppp0, say based on destination port 80 & other traffic like voice through ppp1? Thanks.
somthing like: iptables -t mangle -A PREROUTING -p tcp --dport 80 -j MARK --set-mark 5 ip rule add fwmark 5 table 50 ip route add table 50 $isp dev ppp0 erez. On 5/9/06, Robert Gabriel <ephemeric@gmail.com> wrote:> > Hello all, > > We have two ADSL lines configured on a single box, hence interfaces ppp0 & > ppp1. > > Is there a way to route packets to ppp0, say based on destination port > 80 & other traffic like voice through ppp1? > > Thanks. > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >_______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Thanks! Much appreciated. On 09/05/06, Erez D <erez0001@gmail.com> wrote:> somthing like: > > iptables -t mangle -A PREROUTING -p tcp --dport 80 -j MARK --set-mark 5 > ip rule add fwmark 5 table 50 > ip route add table 50 $isp dev ppp0 > > erez. > > > On 5/9/06, Robert Gabriel <ephemeric@gmail.com> wrote: > > > Hello all, > > We have two ADSL lines configured on a single box, hence interfaces ppp0 & > ppp1. > > Is there a way to route packets to ppp0, say based on destination port > 80 & other traffic like voice through ppp1? > > Thanks. > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc > >
On Tuesday 09 May 2006 08:59, Robert Gabriel wrote:> Hello all, > > We have two ADSL lines configured on a single box, hence interfaces ppp0 & > ppp1. > > Is there a way to route packets to ppp0, say based on destination port > 80 & other traffic like voice through ppp1?Yes, I ended up doing it this way[1]. Works great so far. [1] http://edseek.com/archives/2006/05/01/configuring-multipath-routing-for-ports-without-balancing/ -- Jason Boxman http://edseek.com/ - Linux and FOSS stuff
Thanks, your document helped plenty. Does this work well with only the ROUTE target for Netfilter? Does anyone know what the earliest kernel version is that supports this target? On 09/05/06, Jason Boxman <jasonb@edseek.com> wrote:> On Tuesday 09 May 2006 08:59, Robert Gabriel wrote: > > Hello all, > > > > We have two ADSL lines configured on a single box, hence interfaces ppp0 & > > ppp1. > > > > Is there a way to route packets to ppp0, say based on destination port > > 80 & other traffic like voice through ppp1? > > Yes, I ended up doing it this way[1]. Works great so far. > > [1] > http://edseek.com/archives/2006/05/01/configuring-multipath-routing-for-ports-without-balancing/ > > -- > > Jason Boxman > http://edseek.com/ - Linux and FOSS stuff > > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >