Есть файл с конфигурацией squid, а именно /usr/local/etc/squid/squid.conf
Содержание:
Код: Выделить всё
Содержание файла /usr/local/etc/squid/squid.conf
http_port 192.168.0.17:3128 (адрес и порт на котором будет работать Squid)
acl allowed_hosts src 192.168.0.0/255.255.255.0 (разрешаем доступ вашей подсети)
acl localhost src 127.0.0.1/255.255.255.255 (разрешаем доступ самому серверу)
acl SSL_ports port 443 563 (разрешаем доступ https)
http_access allow allowed_hosts localhost SSL_ports
http_access deny all (запрещаем всем остальным)
cache_peer 192.168.99.37:3128 (указываем прокси своего провайдера)
cache_mem 512000 (память выделяемая под кеш в Килобайтах)
Получаю такой результат:
Код: Выделить всё
Squid not running? (check /var/run/squid/squid.pid).
Starting squid.
WARNING: Netmasks are deprecated. Please use CIDR masks instead
WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
WARNING: For now we will assume you meant to write /24
WARNING: Netmasks are deprecated. Please use CIDR masks instead
WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
WARNING: For now we will assume you meant to write /32
WARNING: (B) '127.0.0.1' is a subnetwork of (A) '127.0.0.1'
WARNING: because of this '127.0.0.1' is ignored to keep splay tree searching predictable
WARNING: You should probably remove '127.0.0.1' from the ACL named 'localhost'
WARNING: (B) '127.0.0.1' is a subnetwork of (A) '127.0.0.1'
WARNING: because of this '127.0.0.1' is ignored to keep splay tree searching predictable
WARNING: You should probably remove '127.0.0.1' from the ACL named 'localhost'
Sep 5 15:01:57 root squid: Bungled /usr/local/etc/squid/squid.conf line 9: cache_peer 192.168.99.37:3128
FATAL: Bungled /usr/local/etc/squid/squid.conf line 9: cache_peer 192.168.99.37:3128
Squid Cache (Version 3.3.8): Terminated abnormally.
CPU Usage: 0.069 seconds = 0.038 user + 0.031 sys
Maximum Resident Size: 36160 KB
Page faults with physical i/o: 0
/usr/local/etc/rc.d/squid: WARNING: failed to start squid