Skip to contentSkip to conversation

Route by destination port?

LARTC Robert Gabriel 3 participants 5 messages May 9, 2006 – May 10, 2006

lore
Share & tools
lore
#1 lore raw

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.

Quoted 6 lines · Robert Gabriel

Hello all,

We have two ADSL lines configured on a single box, hence interfaces ppp0 & ppp1.

Quoted 9 lines

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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to Robert Gabriel

Thanks! Much appreciated.

Quoted 16 lines · Erez D

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.

Quoted 1 line · Robert Gabriel

Hello all,

We have two ADSL lines configured on a single box, hence interfaces ppp0 & ppp1.

Quoted 10 lines

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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#3 lore raw
In reply to Robert Gabriel
Quoted 7 lines · Robert Gabriel

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/

Signature · 7 lines
Jason Boxman
http://edseek.com/ - Linux and FOSS stuff

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#4 lore raw
In reply to Robert Gabriel

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?

Quoted 16 lines · Jason Boxman
Quoted 7 lines · Robert Gabriel

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/

--

Quoted 8 lines

Jason Boxman
http://edseek.com/ - Linux and FOSS stuff

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc