I am struggling in configuring transparent squid proxy.
I have installed Ubuntu 20.04 and squid.
If I write into browser my proxy parameters, I can access Internet, that is ok.
But I want to configure transparent proxy.
Iptables status is not active.
UFW is active.
I allowed in ufw 22/tcp, 3128/tcp, 53/udp, 80/tcp, 8080/tcp ports.
My squid conf (2 main lines):
http_port 3128 http_port 8080 intercept My ufw rule in /etc/ufw/before.rules:
*nat :PREROUTING ACCEPT [0:0] -A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-port 3128 COMMIT In my PC, i set proxy server's IP address as the gateway and DNS.
But I am having problems, it still does not work.
Access.log is empty.
Any help and advice would be appreciated. Thanks.