Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/08/2013, 14:57
Avatar de Melecio
Melecio
 
Fecha de Ingreso: julio-2011
Ubicación: Coahuila
Mensajes: 320
Antigüedad: 12 años, 10 meses
Puntos: 8
Respuesta: 2 MODEMS INTERNET y servidor DHCP

YA MERO, YA MERO.
ESTO ES LO QUE PUSE EN INTERFACES.

auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

#Proveedor de internet 1
auto eth0
iface eth0 inet static
address 192.168.2.243
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
#gateway 192.168.2.254
dns-nameservers 192.168.2.254

#Proveedor de internet 2
auto eth2
iface eth2 inet static
address 192.168.3.244
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
#gateway 192.168.3.254
dns-nameservers 192.168.3.254

auto eth1
iface eth1 inet static
address 192.168.5.1
netmask 255.255.255.0
network 192.168.5.0
broadcast 192.168.5.255



En RC.LOCAL LE QUITE TODO EXCEPTO EXIT 0



hice un script en bash
#!/bin/bash
ip route add 192.168.2.0/24 dev eth0 src 192.168.2.243 table T1
ip route add default via 192.168.2.254 table T1
ip route add 192.168.3.0/24 dev eth2 src 192.168.3.244 table T2
ip route add default via 192.168.3.254 table T2

ip rule add from 192.168.2.243 table T1
ip rule add from 192.168.3.244 table T2

ip route add default scope global nexthop via 192.168.2.254 dev eth0 weight 1 nexthop via 192.168.3.254 dev eth2 weight 2

ip rule add fwmark 1 table lento
ip route add 192.168.2.254 dev eth1 table lento
ip rule add fwmark 2 table rapido
ip route add 192.168.3.254 dev eth2 table rapido

ip route flush cache

iptables -t nat -A POSTROUTING -s 192.168.5.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.5.0/24 -o eth2 -j MASQUERADE

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.5.1:3128
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 443 -j DNAT --to 192.168.5.1:3128


al momento de ejecutar este script me da internet tanto en el servidor como en la red LAN

pero ahora tengo otro problemilla solo funciona http, el https me lo deniega como puedo habilitarlo

Hice una prueba
sin ponerle el proxy en mi navegador del cliente solamente entra a http y navega muy bien pero https no

cuando le configuro el navegador manualmente el proxy el https funciona correctamente

como puedo habilitar el https sin tener que configurar manualmente el proxy.

Gracias.