Files
squid-proxy-installer/squid3-install.sh
2017-02-06 13:53:42 +05:30

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