Use squid to build a transparent proxy

Original link: https://www.bboy.app/2022/06/21/%E4%BD%BF%E7%94%A8squid%E6%90%AD%E5%BB%BA%E9%80%8F% E6%98%8E%E4%BB%A3%E7%90%86/

20220621-2.webp

Introduction

The difference between squid’s transparent proxy and forward proxy is that

  1. Transparent proxy does not need to configure the proxy address on the client, just change your gateway to the squid server address
  2. The transparent proxy needs to configure iptables to transfer the access of port 80 to the port of squid

Although squid’s transparent proxy can also proxy https requests, it needs to configure a certificate, and the user experience is not very good, so the request of port 443 should be forwarded normally.

This article is reprinted from: https://www.bboy.app/2022/06/21/%E4%BD%BF%E7%94%A8squid%E6%90%AD%E5%BB%BA%E9%80%8F% E6%98%8E%E4%BB%A3%E7%90%86/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment