Skip to content

Latest commit

 

History

History
23 lines (23 loc) · 612 Bytes

proxy.squid.md

File metadata and controls

23 lines (23 loc) · 612 Bytes

#Set Proxy Use Squid

ubuntu16.04 source aliyuncs.com ##Install Squid

apt update && apt-get install squid

Config Squid file:///etc/squid3/squid.conf

http_port 3128 #which port you think is safy
acl localnet src 192.168.XXX.0/255.255.255.0 #your ip or you want net ips
#http_access allow localnet #uncomment this line

Restart Squid

service squid3 restart

##Use it service

http://username:password@yourproxyaddress:proxyport #用户名密码登陆方式
export http_proxy=http://username:password@proxyip:proxyport