makeproxy

by kamimush
24 deployments · 64 still active · last rev. 1 month ago

Compatible with: CentOS 7
						#!/bin/bash
#<UDF name="PROXY_USER" label="PROXY_USER">
#<UDF name="PROXY_PASS" label="PROXY_PASS">
yum install squid wget httpd-tools -y &&touch /etc/squid/passwd &&htpasswd -b /etc/squid/passwd $PROXY_USER $PROXY_PASS &&wget -O /etc/squid/squid.conf https://raw.githubusercontent.com/dzt/easy-proxy/master/confg/userpass/squid.conf --no-check-certificate &&touch /etc/squid/blacklist.acl &&systemctl restart squid.service && systemctl enable squid.service &&iptables -I INPUT -p tcp --dport 3128 -j ACCEPT &&iptables-save