Инструменты пользователя

Инструменты сайта


установка_настройка_и_запуск_пакета_squid

Установка, настройка и запуск пакета SQUID

Установка

FreeBSD

[gate:~] # pkg install squid

[gate:~] # rehash

[gate:~] # cd /usr/local/etc/squid/

Debian/Ubuntu

  • !!!! Проверить наличие FQDN в /etc/hosts !!!
root@gate:~# apt install squid3

root@gate:~# cd /etc/squid/

Настройка

Debian/Ubuntu/FreeBSD

gate# cat 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
...
# For FreeBSD
# cache_dir ufs /var/squid/cache 3000 256 256
# For Debian/Ubuntu
# cache_dir ufs /var/spool/squid 3000 256 256
# maximum_object_size 128 MB
# !!! Need squid -z 
...

Тестирование конфигурации и запуск

FreeBSD

[gate:~] # cat /etc/rc.conf
...
squid_enable=yes
...
[gate:~] # squid -k parse

[gate:~] # service squid start

freebsd8# tail -f /var/squid/logs/access.log

freebsd10# tail -f /var/log/squid/access.log

Debian/Ubuntu

root@gate:~# squid3 -k parse

root@gate:~# service squid restart

root@gate:~# tail -f /var/log/squid/access.log
установка_настройка_и_запуск_пакета_squid.txt · Последние изменения: 2018/03/19 14:14 — val