====== Установка, настройка и запуск пакета SQUID ====== * [[https://www.oreilly.com/library/view/squid-the-definitive/0596001622/re91.html|shutdown_lifetime]] ===== Установка ===== ==== Debian/Ubuntu ==== * !!!! Проверить наличие FQDN в /etc/hosts !!! root@gate:~# apt install squid ===== Настройка ===== ==== Debian/Ubuntu ==== gate# cat /etc/squid/conf.d/my.conf ИЛИ gate# cat /etc/squid/squid.conf ... # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS ... #http_access allow localnet acl our_networks src 192.168.X.0/24 http_access allow our_networks ... ===== Тестирование конфигурации и запуск ===== ==== Debian/Ubuntu ==== gate:~# squid -k check gate:~# squid -k reconfigure gate:~# tail -f /var/log/squid/access.log ===== Использование для кеширования ===== * !!! Не работает с https ... maximum_object_size 1 GB cache_dir ufs /var/spool/squid 5000 16 256 ... # squid -z ===== Использование другого прокси ===== ... cache_peer proxy.isp.un parent 3128 0 default never_direct allow all ...