|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
squid + balanceo de cargaAlguien ha trabajado con balanceo de carga y squid tengo que colocar un transparent proxy con squid y balancear el trafico de squid hacia 2 o mas conexiones de infinitum se han topado con esto? --~--~---------~--~----~------------~-------~--~----~ Has recibido este mensaje porque estás suscrito a Grupo "OpenBSD México" de Grupos de Google. Si quieres publicar en este grupo, envía un mensaje de correo electrónico a openbsd-mexico@... Para anular la suscripción a este grupo, envía un mensaje a openbsd-mexico+unsubscribe@... Para obtener más opciones, visita este grupo en http://groups.google.com.mx/group/openbsd-mexico?hl=es. -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: squid + balanceo de cargaCon el squid creo q no hay que hacer nada raro, solo redireccionarle el trafico, buscando por internet encontré este ejemplo.
int_if �= "fxp0" ext_if1 = "em0" ext_if2 = "em1" ext_gw1 = "11.22.33.44" ext_gw2 = "55.66.77.88" pass in on $int_if route-to \ { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } round-robin \ proto tcp from $lan_net to any flags S/SA modulate state En está linea esta la parte del balance. El 5 de noviembre de 2009 16:40, polken <carlos_albinogg@...> escribió:
-- Beto www.compumundohypermegared.org --~--~---------~--~----~------------~-------~--~----~ Has recibido este mensaje porque estás suscrito a Grupo "OpenBSD México" de Grupos de Google. Si quieres publicar en este grupo, envía un mensaje de correo electrónico a openbsd-mexico@... Para anular la suscripción a este grupo, envía un mensaje a openbsd-mexico+unsubscribe@... Para obtener más opciones, visita este grupo en http://groups.google.com.mx/group/openbsd-mexico?hl=es. -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: squid + balanceo de cargaque tal...
te comparto mi configuracion aqui va el balanceo y el squid transparente en el pf.conf ext_if1 = "fxp0" ext_if2 = "dc0" int_if = "dc1" int_net = "10.0.0.0/16" ext_gw1 = "192.168.1.254" ext_gw2 = "172.16.0.10" nat on $ext_if1 from $int_net to any -> ($ext_if1) nat on $ext_if2 from $int_net to any -> ($ext_if2) rdr on $int_if inet proto tcp from any to any port 80 -> 127.0.0.1 port 3128 block in from any to any block out from any to any pass out on $int_if from any to $int_net pass in quick on $int_if from $int_net to $int_if pass in on $int_if route-to \ { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } round-robin \ proto tcp from $int_net to any flags S/SA modulate state pass in on $int_if route-to \ { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } round-robin \ proto {udp, icmp} from $int_net to any keep state pass out on {$ext_if1, $ext_if2} proto tcp from any to any flags S/SA modulate state pass out on {$ext_if1, $ext_if2} proto {udp, icmp} from any to any keep state pass out on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any pass out on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any pass in on $int_if inet proto tcp from any to 127.0.0.1 port 3128 keep state pass out on $ext_if1 inet proto tcp from any to any port 80 keep state pass out on $ext_if2 inet proto tcp from any to any port 80 keep state y en el squid.conf en la linea donde esta el puerto dice port 3128 agregale transparent si tienes dudas, contactame personalmente, acabo de configurar un servidor el dia de hoy, y esa configuacion me funciono, Saludos -- --~--~---------~--~----~------------~-------~--~----~--~---------~--~ God Bless You - S h a l o m ISC. Esteban M. Herrera Olmedo --~--~---------~--~----~------------~-------~--~----~--~---------~--~ --~--~---------~--~----~------------~-------~--~----~ Has recibido este mensaje porque estás suscrito a Grupo "OpenBSD México" de Grupos de Google. Si quieres publicar en este grupo, envía un mensaje de correo electrónico a openbsd-mexico@... Para anular la suscripción a este grupo, envía un mensaje a openbsd-mexico+unsubscribe@... Para obtener más opciones, visita este grupo en http://groups.google.com.mx/group/openbsd-mexico?hl=es. -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: squid + balanceo de cargaGracias Voy a probar las configuraciones creo que tenia dudas en cuanto a la forma que squid manda a el default gw las peticiones de internet pero no se me habia ocurrido la loopback. les informo que quedo On 5 nov, 17:41, Esteban Herrera <esh...@...> wrote: > que tal... > > te comparto mi configuracion > aqui va el balanceo y el squid transparente > > en el pf.conf > > ext_if1 = "fxp0" > ext_if2 = "dc0" > int_if = "dc1" > int_net = "10.0.0.0/16" > ext_gw1 = "192.168.1.254" > ext_gw2 = "172.16.0.10" > > nat on $ext_if1 from $int_net to any -> ($ext_if1) > nat on $ext_if2 from $int_net to any -> ($ext_if2) > > rdr on $int_if inet proto tcp from any to any port 80 -> 127.0.0.1 port 3128 > > block in from any to any > block out from any to any > > pass out on $int_if from any to $int_net > pass in quick on $int_if from $int_net to $int_if > > pass in on $int_if route-to \ > { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } round-robin \ > proto tcp from $int_net to any flags S/SA modulate state > > pass in on $int_if route-to \ > { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } round-robin \ > proto {udp, icmp} from $int_net to any keep state > > pass out on {$ext_if1, $ext_if2} proto tcp from any to any flags S/SA > modulate state > pass out on {$ext_if1, $ext_if2} proto {udp, icmp} from any to any keep > state > > pass out on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any > pass out on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any > > pass in on $int_if inet proto tcp from any to 127.0.0.1 port 3128 keep state > pass out on $ext_if1 inet proto tcp from any to any port 80 keep state > pass out on $ext_if2 inet proto tcp from any to any port 80 keep state > > y en el squid.conf en la linea donde esta el puerto > dice > port 3128 agregale transparent > > si tienes dudas, contactame personalmente, acabo de configurar un servidor > el dia de hoy, y esa configuacion me funciono, > > Saludos > > -- > --~--~---------~--~----~------------~-------~--~----~--~---------~--~ > God Bless You - S h a l o m > ISC. Esteban M. Herrera Olmedo > --~--~---------~--~----~------------~-------~--~----~--~---------~--~ Has recibido este mensaje porque estás suscrito a Grupo "OpenBSD México" de Grupos de Google. Si quieres publicar en este grupo, envía un mensaje de correo electrónico a openbsd-mexico@... Para anular la suscripción a este grupo, envía un mensaje a openbsd-mexico+unsubscribe@... Para obtener más opciones, visita este grupo en http://groups.google.com.mx/group/openbsd-mexico?hl=es. -~----------~----~----~----~------~----~------~--~--- |
|
|
RE: squid + balanceo de cargaSaludos y una disculpa si mi pregunta no encaja en el grupo. > Date: Fri, 6 Nov 2009 09:21:49 -0800 > Subject: Re: squid + balanceo de carga > From: carlos_albinogg@... > To: openbsd-mexico@... > > > Gracias Voy a probar las configuraciones creo que tenia dudas en > cuanto a la forma que squid manda a el default gw las peticiones de > internet pero no se me habia ocurrido la loopback. les informo que > quedo > > On 5 nov, 17:41, Esteban Herrera <esh...@...> wrote: > > que tal... > > > > te comparto mi configuracion > > aqui va el balanceo y el squid transparente > > > > en el pf.conf > > > > ext_if1 = "fxp0" > > ext_if2 = "dc0" > > int_if = "dc1" > > int_net = "10.0.0.0/16" > > ext_gw1 = "192.168.1.254" > > ext_gw2 = "172.16.0.10" > > > > nat on $ext_if1 from $int_net to any -> ($ext_if1) > > nat on $ext_if2 from $int_net to any -> ($ext_if2) > > > > rdr on $int_if inet proto tcp from any to any port 80 -> 127.0.0.1 port 3128 > > > > block in from any to any > > block out from any to any > > > > pass out on $int_if from any to $int_net > > pass in quick on $int_if from $int_net to $int_if > > > > pass in on $int_if route-to \ > > { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } round-robin \ > > proto tcp from $int_net to any flags S/SA modulate state > > > > pass in on $int_if route-to \ > > { ($ext_if1 $ext_gw1), ($ext_if2 $ext_gw2) } round-robin \ > > proto {udp, icmp} from $int_net to any keep state > > > > pass out on {$ext_if1, $ext_if2} proto tcp from any to any flags S/SA > > modulate state > > pass out on {$ext_if1, $ext_if2} proto {udp, icmp} from any to any keep > > state > > > > pass out on $ext_if1 route-to ($ext_if2 $ext_gw2) from $ext_if2 to any > > pass out on $ext_if2 route-to ($ext_if1 $ext_gw1) from $ext_if1 to any > > > > pass in on $int_if inet proto tcp from any to 127.0.0.1 port 3128 keep state > > pass out on $ext_if1 inet proto tcp from any to any port 80 keep state > > pass out on $ext_if2 inet proto tcp from any to any port 80 keep state > > > > y en el squid.conf en la linea donde esta el puerto > > dice > > port 3128 agregale transparent > > > > si tienes dudas, contactame personalmente, acabo de configurar un servidor > > el dia de hoy, y esa configuacion me funciono, > > > > Saludos > > > > -- > > --~--~---------~--~----~------------~-------~--~----~ Si quieres publicar en este grupo, envía un mensaje de correo electrónico a openbsd-mexico@... Para anular la suscripción a este grupo, envía un mensaje a openbsd-mexico+unsubscribe@... Para obtener más opciones, visita este grupo en http://groups.google.com.mx/group/openbsd-mexico?hl=es. -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |