[LARTC] load balanced adsl lines
Mark Coetser
mark@thummb.com
Sat, 3 Jul 2004 13:33:13 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_001E_01C46102.49F7EC30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Ppl
I have 5 adsl lines that after reading quite a bit i managed to get load =
balanced now abvoiusly it doesnt load balance evenly and this works on =
what routes are still in the routing cache. my question is my outbound =
masquerading had to be modified to use snat in iptables instead of just =
plain masquerading my outbound masquerading now works but my inbound =
port forwarding doesnt work would this be an iptables problem or a =
routing issue...
i have opened all the relavent ports on each of the interfaces and I am =
not getting any logged denies the connection just never opens
I am running the following
debian woody
kernel 2.6.6
ip rule list
0: from all lookup local
32761: from 165.165.170.110 lookup T5
32762: from 165.165.187.47 lookup T4
32763: from 165.165.189.95 lookup T3
32764: from 165.165.163.95 lookup T2
32765: from 165.165.179.151 lookup T1
32766: from all lookup main
32767: from all lookup default
ip route sh
165.165.160.1 dev ppp1 proto kernel scope link src 165.165.163.95
165.165.160.1 dev ppp3 proto kernel scope link src 165.165.187.47
165.165.160.1 dev ppp4 proto kernel scope link src 165.165.170.110
165.165.160.1 dev ppp0 proto kernel scope link src 165.165.179.151
165.165.160.1 dev ppp2 proto kernel scope link src 165.165.189.95
10.0.0.0/24 dev eth0 proto kernel scope link src 10.0.0.1
default
nexthop via 165.165.160.1 dev ppp0 weight 1
nexthop via 165.165.160.1 dev ppp1 weight 1
nexthop via 165.165.160.1 dev ppp2 weight 1
nexthop via 165.165.160.1 dev ppp3 weight 1
nexthop via 165.165.160.1 dev ppp4 weight 1
------=_NextPart_000_001E_01C46102.49F7EC30
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Ppl</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have 5 adsl lines that after reading =
quite a bit=20
i managed to get load balanced now abvoiusly it doesnt load balance =
evenly and=20
this works on what routes are still in the routing cache. my question is =
my=20
outbound masquerading had to be modified to use snat in iptables instead =
of just=20
plain masquerading my outbound masquerading now works but my inbound =
port=20
forwarding doesnt work would this be an iptables problem or a routing=20
issue...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>i have opened all the relavent ports on =
each of the=20
interfaces and I am not getting any logged denies the connection just =
never=20
opens</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I am running the following</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>debian woody</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>kernel 2.6.6</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>ip rule list</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>0: from =
all lookup=20
local<BR>32761: from 165.165.170.110 lookup T5<BR>32762: =
from=20
165.165.187.47 lookup T4<BR>32763: from 165.165.189.95 lookup=20
T3<BR>32764: from 165.165.163.95 lookup T2<BR>32765: from=20
165.165.179.151 lookup T1<BR>32766: from all lookup =
main<BR>32767: =20
from all lookup default<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ip route sh</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>165.165.160.1 dev ppp1 proto =
kernel =20
scope link src 165.165.163.95<BR>165.165.160.1 dev ppp3 =
proto=20
kernel scope link src 165.165.187.47<BR>165.165.160.1 dev =
ppp4 =20
proto kernel scope link src 165.165.170.110<BR>165.165.160.1 =
dev=20
ppp0 proto kernel scope link src=20
165.165.179.151<BR>165.165.160.1 dev ppp2 proto kernel scope =
link src 165.165.189.95<BR>10.0.0.0/24 dev eth0 proto =
kernel =20
scope link src=20
10.0.0.1<BR>default<BR> =
nexthop via=20
165.165.160.1 dev ppp0 weight=20
1<BR> nexthop via =
165.165.160.1 =20
dev ppp1 weight 1<BR> nexthop =
via=20
165.165.160.1 dev ppp2 weight=20
1<BR> nexthop via =
165.165.160.1 =20
dev ppp3 weight 1<BR> nexthop =
via=20
165.165.160.1 dev ppp4 weight 1<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> </DIV></FONT></BODY></HTML>
------=_NextPart_000_001E_01C46102.49F7EC30--