[squid-users] setup FTP proxy and FTP content monitoring (Antony Stone)

Dawood Aijaz dawood.aijaz97 at gmail.com
Wed Apr 22 13:48:57 UTC 2020


Hi,

these are my squid.conf configurations

acl localnet src 10.0.0.0/8

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 allow all

http_access deny !Safe_ports


http_access deny CONNECT !SSL_ports


http_access allow localhost manager
http_access deny manager


http_access allow localnet
http_access allow localhost

http_port 8001

coredump_dir /var/spool/squid

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

acl FTP proto FTP
always_direct allow FTP

acl FTP proto FTP
always_direct allow FTP

icap_enable on

icap_preview_enable on

icap_service service_req reqmod_precache icap://127.0.0.1:8008/reqmod
bypass=0
icap_service service_resp reqmod_precache icap://127.0.0.1:8008/respmod
bypass=0

adaptation_access service_req allow all
adaptation_access service_resp allow all


"a*ll I want from squid proxy is to intercept FTP and expose all the FTP
data "*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20200422/dd6120e9/attachment.html>


More information about the squid-users mailing list