Sponsored Link

Squid : Reverse Proxy Setting
Configure Squid as a Reverse Proxy Server.
[2] Configure Squid.
prox:~ #
vi /etc/squid/squid.conf
# line 59: add (allow all http access)

http_access allow all

# And finally deny all other access to this proxy
http_access deny all
# line 63: specify the backend Web server

http_port 3128
http_port 80 accel
https_port 443 accel cert=/etc/letsencrypt/live/ key=/etc/letsencrypt/live/
# line 67: uncommnet

# number means ⇒ [disk cache size] [number of directories on top level] [number of directories on 2nd level]

cache_dir ufs /var/spool/squid 100 16 256
# add to the end

cache_peer parent 80 0 no-query originserver
# memory cache size

cache_mem 256 MB
# define hostname

prox:~ #
systemctl start squid

prox:~ #
systemctl enable squid

[3] If Firewalld is running, allow HTTP/HTTPS service.
prox:~ #
firewall-cmd --add-service={http,https} --permanent

prox:~ #
firewall-cmd --reload

[4] Change settings of DNS or Routers in your LAN if need to listen HTTP/HTTPS access on Squid, then try to access to Squid Reverse Proxy Server from a ClientPC with Web browser like follows.
Matched Content