Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/03/2014, 18:10
Avatar de Melecio
Melecio
 
Fecha de Ingreso: julio-2011
Ubicación: Coahuila
Mensajes: 320
Antigüedad: 12 años, 9 meses
Puntos: 8
BALANCEO DE CARGA 2 MODEMS (fail https)

Hola que tal a todos.

Esta es mi configuración para el balanceo de carga con 2 modems de internet con ubuntu 12.04


eth0(192.168.3.243) #ADSL1
eth1(192.168.1.1) #RED LAN
eth2(192.168.2.244) #ADSL2


#Configuracion /etc/network/interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0


#LAN
auto eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0

#ADSL1
auto eth0
iface eth0 inet static
address 192.168.3.243
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
dns-nameservers 192.168.3.254 192.168.2.254


#ADSL2
auto eth2
iface eth2 inet static
address 192.168.2.244
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
dns-nameservers 192.168.2.254 192.168.3.254



//SOLO UNA VEZ LOS TIENEN QUE COLOCAR EN LA TERMINAL
echo 200 T1 >> /etc/iproute2/rt_tables
echo 201 T2 >> /etc/iproute2/rt_tables
echo 1 > /proc/sys/net/ipv4/ip_forward




#SCRIPT BALANCEO DE CARGA
ip route add 192.168.3.0/24 dev eth0 src 192.168.3.243 table T1
ip route add default via 192.168.3.254 table T1
ip route add 192.168.2.0/24 dev eth2 src 192.168.2.244 table T2
ip route add default via 192.168.2.254 table T2
ip rule add from 192.168.3.243 table T1
ip rule add from 192.168.2.244 table T2
ip route add default scope global nexthop via 192.168.3.254 dev eth0 weight 1 nexthop via 192.168.2.254 dev eth2 weight 1


iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.1.1:3128
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 192.168.3.243
iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to 192.168.2.244
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth2 -j MASQUERADE


#/etc/dhcp/dhcpd.conf
option domain-name-servers 192.168.3.254, 192.168.2.254;



El problema que tengo con esta configuración es que no me funciona solamente el https batalla mucho para conectarse con cualquier pagina HTTPS, pero el HTTP funciona muy bien, lo que yo tuve que hacer es ingresarle el proxy manualmente a mi PC para poder navegar tanto con HTTP como HTTPS.

Si alguien me podría apoyar con alguna idea de porque no funciona el HTTPS, se lo agradecería.

Gracias a todos.