Re: Two link adsl on the same server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You can only do load balancing on outgoing traffic, to balance incoming
traffic, you need to use different names->

	www.your_org.com  eth0 200.168.1.19
        mail.your_org.com eth4 200.204.140.10

For the outgoing traffic use mangle PREROUTING to mark the packets
acording to the source server and use 2 ip route tables. 


LALO  

On Tue, 2005-05-10 at 13:32 -0300, SebastiÃo AntÃnio Campos (GWA) wrote:
> Hi!
> 
> We have two ADSL link on the same server and we'd like to use load balance.
> 
> I tried to used, but I didn't have success.
> 
> I use on eth1 172.17.1.6 mask 255.255.0.0 my local network;
> on eth2 my first ADSL 200.168.1.19 mask 255.255.255.192 default gw 200.204.140.1
> on eth4 my first ADSL 200.204.140.10 mask 255.255.255.192 default gw 200.179.1.1
> 
> This IP are static.
> 
> On my local network I have two servers (E-mail server and one web server) and I need to PREROUTING with DNAT.
> 
> And we would like to separate the port 80 and 21 using one link on eth0 and the port 25 and 110 other link eth4 and other ports eth0 or eth4 link.
> 
> My files:
> 
> My ifcfg-ethx files:
> 
> #NIC SIS on board, usando link1 ADSL
> DEVICE=eth0
> ONBOOT=yes
> #BOOTPROTO=dhcp
> BOOTPROTO=static
> BROADCAST=200.168.1.63
> IPADDR=200.168.1.19
> NETMASK=255.255.255.192
> NETWORK=200.168.1.0
> #GATEWAY=200.168.1.1
> ___________________________________________________________
> #Placa Realtek, Uso Local, slot 1
> DEVICE=eth1
> ONBOOT=yes
> BOOTPROTO=static
> IPADDR=172.17.1.6
> BROADCAST=172.17.255.255
> NETMASK=255.255.0.0
> NETWORK=172.17.0.0
> ________________________________________________________
> #NIC Realtek, link 2 ADSL
> DEVICE=eth4
> ONBOOT=yes
> BOOTPROTO=static
> BROADCAST=200.204.140.63
> IPADDR=200.204.140.10
> NETMASK=255.255.255.192
> NETWORK=200.204.140.0
> 
> _________________________________________________
> file /etc/sysconfig/network
> 
> NETWORKING=yes
> HOSTNAME=rbz-firewall
> #GATEWAY=200.168.1.1
> GATEWAY=200.204.140.1
> ___________________________________________________
> file /etc/iproute2/rt_tables
> 
> #
> # reserved values
> #
> #255    local
> #254    main
> #253    default
> #0      unspec
>  
> #
> # local
> #
> #1      inr.ruhep
> 
> 
> Could some one help me??
> 
> Thanks
> 
> 
> SebastiÃo AntÃnio Campos
> Infojoi Computadores Ltda
> 89.224-000 Joinville -SC - R. IririÃ, 3587
> Cml. (47) 437-0796 - Cel. (47) 9927-5349
> tiao@xxxxxxxxxxxxxx
> http://www.lupusnet.com.br
-- 
Ing. Eduardo Spremolla
Jefe I+D
Antel
Uruguay


Este e-mail y cualquier posible archivo adjunto està dirigido Ãnicamente al destinatario del mensaje y contiene informaciÃn que puede ser confidencial. Si Ud. no es el destinatario correcto por favor notifique al remitente respondiendo este mensaje y elimine inmediatamente el e-mail y los posibles archivos adjuntos al mismo de su sistema. Està prohibida cualquier utilizaciÃn, difusiÃn o copia de este e-mail por cualquier persona o entidad que no sean las especÃficas destinatarias del mensaje. ANTEL no acepta ninguna responsabilidad con respecto a cualquier comunicaciÃn que haya sido emitida incumpliendo nuestra PolÃtica de Seguridad de la InformaciÃn.
. . . . . . . . .
This e-mail and any attachment is confidential and is intended solely for the addressee(s). If you are not intended recipient please inform the sender inmediately, answering this e-mail and delete it as well as the attached files. Any use, circulation or copy of this e-mail by any person or entity that not is the specific addressee(s) is prohibited. ANTEL is not responsible for any communication emitted without respecting our Information Security Policy.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux