for start, i usually using external proxy as a parent through mikrotik webproxy. what the external proxy doing is for caching, and the mikrotik webproxy only to redirect the http requests.
all http request are transparently redirected to mikrotik webproxy
chain=dstnat action=redirect to-ports=8081 protocol=tcp src-address-list=clients dst-port=80
but this method is unusable if i want to use DSCP to mark proxy hit on cache object. i tried to set it on squid, mark packets on mikrotik, and the packets can’t be found as the traffic is going through mikrotik webproxy and mikrotik webproxy probably had already altered packet TOS.
so, i tried to redirect all http proxy directly to the external squid proxy.
chain=dstnat action=dst-nat to-addresses=192.168.1.100 to-ports=3128 protocol=tcp src-address-list=clients dst-port=80
192.168.1.100 = external squid proxy
but it doesn’t work, i also already set
http_port 3128 transparent
on squid.conf, but still the same. there is no traffic when the ‘clients’ are trying to open http connections.
what is actually wrong with the redirection? i searched on google, and mikrotik forum, and all giving the same suggestion, but nothing works.
thanks for any help.