Sziasztok,
szükség lenne blokkolnom bizonyos oldalakat.
Évekig Squid2-t használtam http-re. Amióta pl. a youtbe átköltözött https-re, csak a man-in-the-middle maradt. Ehhez squid3 kell.
Sikerült bekonfigurálnom, DE elvesztettem az átlátszó proxyt, igy a userek könnyen kikerülik.
Most így működik:
ha 3128 a böngésző portja mindenre, akkor http-t szűr a guarddal, az engedélyezett https-t átengedi anélkül, hogy a böngésző tanúsítványért rinyálna (böngészőbe nem is importáltam), a tiltott oldalak tanúsítványhiba miatt nem jelennek meg. Nekünk ez így jó.
De ha "Nincs proxy" a böngészőben, a tiltott https-ek is megjelennek és a squidguard se szűr.
Minden segítő szándékot előre köszönök!!!
squid.conf
acl SSL_ports port 443
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-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access deny all
http_port 3128 ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/home/proxy/ssl_cert/myCA.pem
http_port 3129 intercept
https_port 3130 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/home/proxy/ssl_cert/myCA.pem
acl bump_sites dstdomain .youtube.com .youtube.com.mx .facebook.com
ssl_bump none localhost
ssl_bump server-first bump_sites
ssl_bump none all
sslproxy_cert_error allow all
sslproxy_flags DONT_VERIFY_PEER
always_direct allow all
cache_mem 2048 MB
cache_dir ufs /squid/cache 20480 16 256
access_log daemon:/var/log/squid3/access.log squid
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 . 0 20% 4320
url_rewrite_program /usr/bin/squidGuard
iptables.rules részlet
*nat
:PREROUTING ACCEPT [15:1212]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [5:382]
-A PREROUTING -p tcp --dport 443 -j ACCEPT
-A PREROUTING -p tcp --dport 80 -j ACCEPT
-A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to-destination 10.247.72.169:3129
-A PREROUTING -i eth1 -p tcp --dport 443 -j DNAT --to-destination 10.247.72.169:3130
-A POSTROUTING -p tcp -s 10.247.72.0/24 -o eth0 --dport 53 -j MASQUERADE
-A POSTROUTING -p udp -s 10.247.72.0/24 -o eth0 --dport 53 -j MASQUERADE
-A POSTROUTING -p tcp -s 10.247.72.0/24 -o eth0 -j MASQUERADE