squid 配置

http_port 8080
access_log /var/log/squid/access.log squid
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
acl password proxy_auth REQUIRED
http_access allow password

"#acl all src all
"#http_access allow all

coredump_dir /var/spool/squid
"#header_access Via deny all
"#header_access X-Forwarded-For deny all

产生密码

htpasswd -c /etc/squid/passwd password

ov 服务端配置

client
dev tun

proto tcp
remote "你的域名或者ip" "你的端口"
"#reneg-sec 432000
resolv-retry infinite

ca ca.crt
key client1.key
cert client1.crt
comp-lzo
verb 3
auth-nocache
tls-auth ta.key 1
nobind
auth-user-pass
remote-cert-tls server
ns-cert-type server
auth-user-pass auth.txt
redirect-gateway def1

代理配置

http-proxy-retry
http-proxy "你的域名或者ip" "你的代理端口" pw.txt

right