About VPS Build squid appear connection reset solution

Source: Internet
Author: User
Tags openssl rsa openssl x509 connection reset vps stunnel

Set Squid Agent to appear the connection is reset, this is because you on the website of the keyword is qiang cause your ip+ corresponding proxy port is blocked, causing the connection to be closed directly.

So we just use squid encryption to block the keyword. Start squid here, let's talk about opening squid htps_port.

Cooperating with Stunnel (forwarding HTTP unencrypted HTTP packets to HTTPS encryption)


Use squid and stunnel to encrypt squid to prevent GFW from losing squid with keywords
1. Turn on squid
2./etc/squid/squid.conf
Add Https_port 443 (whatever port) cert=/etc/squid/yao.com.crt Key=/etc/squid/yao.com.key

3. HNAIR.COM.CRT and Hnair.com.key are used to generate digital certificates and keys for encryption using OpenSSL, for the method of generating their own digital certificates, refer to the following: (the process will be prompted to enter some certificate required password, email province, etc.)
Cd/etc/squid/
OpenSSL req-new > YAO.COM.CSR

OpenSSL rsa-in privkey.pem-out Yao.com.key

OpenSSL x509-in hnair.com.csr-out yao.com.crt-req-signkey yao.com.key-days 3650

Re-start Squid
4.stunnel
ftp://ftp.stunnel.org/stunnel/
Download the corresponding version of Stunnel

Unzip or install the corresponding Stunnel package, add a configuration file (stunnel.conf) to the directory of the program:

Client = yes
[Ssl2http]
Accept = 127.0.0.1:8080
Connect = 216.218.186.2:443
To remove duplicate port settings
5. Configure proxy 127.0.0.1:8080 in the browser


OK can use the


About VPS Build squid appear connection reset solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.