Professional Documents
Culture Documents
Load-Balancing ADSL: Configuration D'un Proxy Linux en Multipath
Load-Balancing ADSL: Configuration D'un Proxy Linux en Multipath
Load-Balancing ADSL: Configuration D'un Proxy Linux en Multipath
Index
Introduction
! #"$%&'(*) +,-. / 012*) 234+567.89 0:';=<> %'+?9 @<%
",&%-#A>BC+ ?*%(DFEG*7A9"H0:I >>'JK%!9H'K>H,;="50:BKJML
#&>5K>,01NA"5901O>BP,01BI 01(+NA ->'(Q@RS->'M A>BC+ ?*%(DFEG*PTVUWF
KBK>N#<01H?XY>+8Z[) #\01'BM 012K>5# DF]FL
#&>5K>"%01>3^01\_ 012A3`01.F9"50:BKJP67<25#+) B-a >>b019"H0:-'?'%! DF]
?*Hc',A234+5'6d>+:RSU DFeKf%G*L
g
>
#'-5>+ ,#?*5c\#>BC+3^01aN('_ 01( -'(>2>'BK#'2\01+ ><015_ 012K' g '*a
&ha%T`GJK,-NO!BK>N#<015?9G*L.DFL+XO"01F @"5_ AGZ* 9GZ[ id%5*L
(H'* b(*501 -#5'M >>Q >5(%-H#5'"\_ 3^L
&SaSSSS
&4&
Procdure dinstallation
!
.
&
&
@ ,
'*
&
'6
>
"
.
&7
A
A
(
C
%/ 2
6
(D /
(:/
(;/
&
>
&
&
6
'
'
&
("#I
0J #/
& "#I
2
8
,
&) & *
+
6
&,
&
'
.0
*
(
6
& :
& ;
#
&)
&
&
'
K
:E ;:F <:;H G
:E ;:F <;;H G
'&
&
&*
B
'
&
*
&
B
& :2
8 :E ;:F <::;G
& ;2
8 :E ;:F <;:;G
32
8 :E ;:F <D ;H G ;G
&
& 6
&
&
6'
2
;8
'
& &
'
&
&
&
* & *( &
/etc/iproute2/rt_tables:
10
20
*
&
&&
T1
T2
&
.0
)
-
= 6
*
&
&,
&
&) '
L -
&
&
&
'
;- )& &
'
) * :
=
=
/
6
& , & (/
#
$ 2
&
&
(&
&
'
&
' ' B
&'
& 9& :E & , &2
C
&*
&
6
) * :
- )*
*
& * + 6 4 - '*
*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
6a
] /b23<1"/XcdTZ&P(eP6=?>5M1&/,cdTZ"PRG9HgfW6-#TZ"P(M6#hi>;7F/X6kjLBl
mn>;M6GSH`1"0 US1ci- I >5
f O ] 6=C
>oG9H`=E>;=C
6a
] B ] G9H`M'6=E>;=C
6a
B O"O"p m ] GgH`=E>;=C
6a
67
I 8.2 -=0 2 qQ.
6a-./
=032 q.
6a-./
8.2 P2;0 6-#8
1&/,1"<67D/X6-M6@=?>55
6=?7F2 >5-L>5
7r=E>/X6=?7
M6hs/,1&2 -#8
1-?-L6&/t-./
:;1u[/,1"2 =C23/"hi>;7D/,68146@vw6"x
en0 1#uy>5
=E7D2 >5P\&B"\ J P(M>2 798
1-L-L6"/"-./"\z:;{rl|Z&}~8.2 --./ Jr]
I P6@=?>556=E76&/t1&.(/,>.
76"/"BTtPfKhs2 1k.5UK6&x(x/,>;UK-L6&/t-./C
77D8A[?3 +;
I B0 0 6&/t-./03 >540 679: p J \zl|Z&}
I O C
>2 -2 /03 >87D2 >5(l ] BTT:P'P
I Bb>.76&/.5
6@1M/,6-L-L6#M'6#7cs86;+; s+;;?0 2 576&/,uy1=E6#67DC
I O 0 2 qQ.
6&/t-./
# $- "
.0J# % ;
& & @*
3 20< 1$ )
&
* Z
'-
*
@
Z
&
* &) **
&
&
&)
@
.0
'
&,
*
Z
@
Z &
>
& 9& :E & , &2
8
&
(D
; A
(:6
#!/bin/bash
# This script establishes a load balancing between two connexions,using IPROUTE2
# Vincent Jamart Systemat -Computers Luxembourg S.A.- v1.1 20/03/2003
# Vincent Jamart Systemat -Computers Luxembourg S.A.- v1.0 13/03/2003
# From: http://lartc.org/howto/lartc.rpdb.multiple-links.html
#
________
#
+------------+
/
#
|
|
|
#
+-------------+ Provider 1 +------#
__
|
|
|
/
#
___/ \_
+------+-------+
+------------+
|
# _/
\__
|
if1
|
/
# /
\
|
|
|
#| Local network -----+ Linux router |
|
Internet
# \_
__/
|
|
|
#
\__
__/
|
if2
|
\
#
\___/
+------+-------+
+------------+
|
#
|
|
|
\
#
+-------------+ Provider 2 +------#
|
|
|
#
+------------+
\________
#
#
#The first is how to route answers to packets coming in over a particular provider, say Provider 1,
back out again over that same provider.
#Let us first set some symbolical names. Let $IF1 be the name of the first interface (if1 in the
picture above) and $IF2 the name of the second interface. Then let $IP1 be the IP address associated
with $IF1 and $IP2 the IP address associated with $IF2. Next, let $P1 be the IP address of the
gateway at Provider 1, and $P2 the IP address of the gateway at provider 2. Finally, let $P1_NET be
the IP network $P1 is in, and $P2_NET the IP network $P2 is in.
### Interfaces settings ###
# Internal Interface (local network)
export IF0=eth2
export IP0=192.168.0.254
export P0_NET=192.168.0.0
# First external interface (if1)
export IF1=eth0
export IP1=192.168.1.1
export P1=192.168.1.254
export P1_NET=192.168.1.0
# Second external interface (if2)
export IF2=eth1
export IP2=192.168.2.1
export P2=192.168.2.254
export P2_NET=192.168.2.0
# Ensure that T1 and T2 are present in /etc/iproute2/rt_tables
#Then you set up routing in these tables as follows:
ip
ip
ip
ip
route
route
route
route
add
add
add
add
$P1_NET
default
$P2_NET
default
dev
via
dev
via
#Nothing spectacular, just build a route to the gateway and build a default route via that gateway,
as you would do in the case of a single upstream provider, but put the routes in a separate table
per provider. Note that the network route suffices, as it tells you how to find any host in that
network, which includes the gateway, as specified above.
#Next you set up the main routing table. It is a good idea to route things to the direct neighbour
through the interface connected to that neighbour. Note the `src' arguments, they make sure the
right outgoing IP address is chosen.
ip route add $P1_NET dev $IF1 src $IP1
ip route add $P2_NET dev $IF2 src $IP2
#Set the load balancing rules:Instead of choosing one of the two providers as your default route,
you now set up the default route to be a multipath route. In the default kernel this will balance
routes over the two providers. It is done as follows (once more building on the example in the
section on split-access):
#This will balance the routes over both providers. The weight parameters can be tweaked to favor one
provider over the other.
#Note that balancing will not be perfect, as it is route based, and routes are cached. This means
that routes to often-used sites will always be over the same provider.
ip route add default scope global nexthop via $P1 dev $IF1 weight 1 nexthop via $P2 dev
$IF2 weight 1
#Next, you set up the routing rules. These actually choose what routing table to route with. You
want to make sure that you route out a given interface if you already have the corresponding source
address:
ip rule add from $IP1 table T1
ip rule add from $IP2 table T2
#If $P0_NET is the local network and $IF0 is its interface, the following additional entries are
desirable:
ip
ip
ip
ip
ip
ip
route
route
route
route
route
route
add
add
add
add
add
add
$P0_NET
$P2_NET
127.0.0.0/8
$P0_NET
$P1_NET
127.0.0.0/8
dev
dev
dev
dev
dev
dev
$IF0
$IF2
lo
$IF0
$IF1
lo
table
table
table
table
table
table
T1
T1
T1
T2
T2
T2
# &- 3)
&- "
*
&' &
&
&
)
&
,
&
&
'
'
&
& ?
&
+
'
,=
=
&)
'6
'
*
6
6
&'
(
&
&*'
.
(
R
'
*
'
6
&
*
0
' '*
& *
&
''
&
;G 6 *
*
&
&
T T
'
0
'
( L L &
, &
&-$
0 &'*
6
6
'
& **'
( [
B
'&
'
'
- &)
''
&
'3 *
& *
1!
& *
'
' .
30 %6# %0 % ? #J $ J
8
' &
&
& **'
( [
( [
!#"$%
&# '
()*+* ,!
'$)-
.!/%$0 (12 #3()&
4,56
87
9
(1
(1*+"&: ;<$3#+= -
.#(1$>
(& & 6?8;&;<'2 &$3@A
BCED
FHG (18
+
"7
9
2(1(1'$)II'$3@A,$>+# J$%K(184'*48(;' (<:L0 #!
(
4 $>()((& $>MH7
9 ?,I6
'
"$%
'
()
()*+"':
!8*??"()8,8 ,?(<$0 (12 &$%3@A
N1OP
QSREPT
K(18
+
."87
U VW+ (&
.5(<X "(&Y
? $)(1((& $>K()?,M;'+"(&8E '$3@A OFHGD#FHG 7
9
.(1$)$>5"$)8+
J$K(18?&8 "'
8+ &
.&(1, (1,+I8?VZ$)'
&(),4* 7
&
.
3% J3 %
( [
'6
'*
'
6
' -
6
'
'
&'
&'*
' *
6&
6&
&
( [
&
( [
( [
* & &
'
0
6
& ) '
&
'
.
30 %6 ?#%$ J
# %0 %
,6
B
&
' &
( [
8
=
&'*
J
'
&
' ( [
&
6
&
s1tvuelpqwWo1l
!"
#$%&
'(
) * ,+-.0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-/!#01& ,.-/!2
&( $3!# 4
$%$%
5768
9!:&((& ;'=<>& $-)& 7@?'/ABB?.C !D&E(& !#!F?AG"!#B?;%H?!#4I 5768
d
d >
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
acl
acl
acl
acl
acl
acl
acl
acl
acl
acl
acl
acl
acl
acl
acl
########################################
#
SERVER ACCESS CONTROL LIST
#######################################
acl
acl
LAN_10
LAN_192
src
src
#
10.0.0.0/8
192.168.0.0/24
allow
allow
LAN_10
LAN_192
llogdir /var/squidGuard/logs
dbhome /var/squidGuard/db
dest blacklist {
domainlist blacklist/domains
urllist
blacklist/urls
}
acl {
default {
pass !blacklist all
redirect http://www.google.be/
,-$ .
EF
(7
( A
(<)
!" #$ % '&()(#$ +*
,.-
,./) 01
2,.)3,34 54 6 7,.'8&:9" #;# '<('&
2=>'
?4 &
'
-
@: 7A?3B4 !/)
>9
#!/bin/sh
# File that contains the pid of the squid daemon (refere to /etc/squid/squid.conf).
_SQUID_PID='/var/run/squid.pid'
# Update squid databases
/usr/sbin/squidGuard -u
#Force squid to re-read its config file.
kill -HUP $(cat ${_SQUID_PID})
O6NPNQPNPRPLPN
S6TVUDWO6L
X$O6L