Squid transparent proxy
Posted: Wed Oct 09, 2013 5:56 pm
I'm trying to setup a Squid transparent proxy with my Mikrotik, so i don't have to configure my clients to use a proxy.
This however isn't working as expected and i sort of lost it, any help ?
(When i setup the proxy settings in the client's browser, it works as expected)
MT: 192.168.1.1
Squid: 192.168.1.2
Client: 192.168.1.3
Client gateway: 192.168.1.1
Ciient dns: 8.8.8.8
MT NAT:
chain=dstnat action=dst-nat to-addresses=192.168.1.2 to-ports=3128 protocol=tcp src-address=192.168.1.3 dst-port=80
Squid version: 3.1.19
Squid config:
http_port 3128 transparent
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl localnet src 192.168.1.0/24
http_access allow manager localhost
http_access allow localnet
http_access allow localhost
This however isn't working as expected and i sort of lost it, any help ?
(When i setup the proxy settings in the client's browser, it works as expected)
MT: 192.168.1.1
Squid: 192.168.1.2
Client: 192.168.1.3
Client gateway: 192.168.1.1
Ciient dns: 8.8.8.8
MT NAT:
chain=dstnat action=dst-nat to-addresses=192.168.1.2 to-ports=3128 protocol=tcp src-address=192.168.1.3 dst-port=80
Squid version: 3.1.19
Squid config:
http_port 3128 transparent
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl localnet src 192.168.1.0/24
http_access allow manager localhost
http_access allow localnet
http_access allow localhost