Dears
I want to deliver pppoe users that are connected to mikrotik RB with thunder cache and deliver them cached http traffic
I use the following commands but it doesnt work
/ip firewall mangle
add action=mark-routing chain=prerouting disabled=no dst-port=80 in-interface=
!ether4-cache new-routing-mark=thunder passthrough=no protocol=tcp
/ip route
add distance=1 gateway=192.168.2.2 routing-mark=thunder
You need to redirect port80 for the PPPoE users to the web proxy - since the PPPoE users basically create a dynamic interface - this might be part of the issue. Instead of working on an interface I would much rather work from an IP range.
This is especially true if you wish in the future to have some clients bypass the proxy. I have had this need for clients utilizing a number of different services in the past which required port 80 traffic in some way or another.
So lets pretend the Destination port is 80, the IP Proxy is on port 8080 … the following should work
ip firewall nat src-address="x.x.x.x/x" dst-port=80 protocol=tcp action=redirect to-ports=8080 chain=dstnat
ip proxy set enabled=yes port=8080
For a more in depth look - I suggest what Syed wrote a few years back: It is applicable - although he was using good old SQUID vs the Thunder Cache…
https://aacable.wordpress.com/2011/07/21/mikrotik-howto-redirect-http-traffic-to-squid-with-original-source-client-ip/