Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/03/2014, 12:03
Avatar de Melecio
Melecio
 
Fecha de Ingreso: julio-2011
Ubicación: Coahuila
Mensajes: 320
Antigüedad: 13 años, 5 meses
Puntos: 8
Respuesta: problemas con squid en cascada conecciones https

INTENTA PONIENDO ESTO EN SQUID
MI RED LAN ES 192.168.1.0 CAMBIALA POR TU RED LAN

eth0 = INTERNET
eth1 = REDLAN


acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

acl SSL_ports port 443 # https
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-httpsudo gedit /etc/squid3/squid.conf
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http



acl CONNECT method CONNECT
acl proxymcm src 192.168.1.0/24
acl ip_list_access src "/etc/squid/ip_can_access"
acl noper url_regex "/etc/squid/sitios"


http_access deny noper !ip_list_access
http_access allow proxymcm
http_access allow manager localhost
http_access deny manager


http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_port 3128 transparent

cache_mem 512 MB
cache_dir ufs /var/spool/squid3 1000 16 256
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
visible_hostname SERVIDOR



y esto lo ejecutas en la terminal


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 -s 192.168.1.0/24 -o eth0 -j MASQUERADE