Üdv!
LXC alatt tesztelgetem a squid-et (centos7).
lxc centos7, ip: 192.168.122.205/24
A lynx telepítve, hogy teszteljem. Működik is, csak a https-t nem tudom tiltani. Mit felejtek el?
A squid lxc centos-on:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 3128
# /etc/squid/squid.conf
http_port 3128
cache_dir ufs /var/spool/squid 100 16 256
coredump_dir /var/spool/squid
#
# Add any of your own refresh_pattern entries above these.
#
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
# error directory
error_directory /usr/share/squid/errors/hu
# ACLs definitions: ====================================================
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
acl local src 127.0.0.1
acl lan src 192.168.122.205
acl secure proto https
# ACCESS definitions: ==================================================
#http_access deny secure
#http_access deny SSL_ports
#http_access deny all
http_access allow local
http_access allow lan
# And finally deny all other access to this proxy
http_access deny all
# --- squid.conf ---
Ha csak a "http_access deny all" részt hagyom bent a http_access-nél, akkor is megy a https. De a http-t szépen tiltja. Mi bénázok el?