server_configuration:squid

This is an old revision of the document!


apt-get update && apt-get upgrade -y
apt-get install squid3

cp -v /etc/squid/squid.conf{,.factory}

Firewall

See notes under: Firewall

ufw status
ufw allow squid
ufw reload
ufw status
  400  apt-get install apache2-utils
  401  sudo touch /etc/squid/passwd
  402  sudo chown proxy: /etc/squid/passwd
  403  ls -l /etc/squid/passwd
  405  htpasswd /etc/squid/passwd david

View the existing squid conf (with comments/documentation cut out)

cat /etc/squid/squid.conf | grep -v -e '^\#' -e '^$'
sed -i 's,http_access deny all,http_access allow all,g' /etc/squid/squid.conf

sed -i 's,http_access allow all,http_access deny all,g' /etc/squid/squid.conf
# Test config
squid -k parse

# Refresh configuration
squid -k reconfigure

Stopping

# Kill squid
sudo squid -k shutdown

# Restart Daemon: http://etutorials.org/Server+Administration/Squid.+The+definitive+guide/Chapter+5.+Running+Squid/5.5+Running+Squid+as+a+Daemon+Process/
squid -s

More from: http://etutorials.org/Server+Administration/Squid.+The+definitive+guide/Chapter+5.+Running+Squid/5.8+Stopping+Squid/

ps aux | grep squid
  • server_configuration/squid.1618471378.txt.gz
  • Last modified: 2021/04/15 07:22
  • by david