mirror of
https://github.com/serverok/squid-proxy-installer.git
synced 2026-04-02 10:38:52 +00:00
20 lines
541 B
Bash
20 lines
541 B
Bash
#!/bin/bash
|
|
|
|
# Squid Installer
|
|
# Author: https://blog.hostonnet.com
|
|
|
|
/usr/bin/apt update
|
|
/usr/bin/apt -y install apache2-utils squid3
|
|
|
|
/usr/bin/htpasswd -b -c /etc/squid/passwd netfreehost g5jWpt@qycHEjx
|
|
|
|
/bin/rm -f /etc/squid/squid.conf
|
|
/usr/bin/touch /etc/squid/blacklist.acl
|
|
/usr/bin/wget --no-check-certificate -O /etc/squid/squid.conf https://raw.githubusercontent.com/hostonnet/ubuntu-squid3/master/squid.conf
|
|
|
|
/sbin/iptables -I INPUT -p tcp --dport 3128 -j ACCEPT
|
|
/sbin/iptables-save
|
|
|
|
service squid restart
|
|
update-rc.d squid defaults
|