Redirecionando o Speedr Cache Full
IP do Speedr: 170.31.255.2/30
IP do Mikrotik ROS: 170.31.255.1/30
/ip firewall nat
add action=dst-nat chain=dstnat comment="dst-nat [170.31.255.2 tcp.dst=3128]" \
disabled=no dst-port=80 protocol=tcp src-address=!170.31.255.2 \
to-addresses=170.31.255.2 to-ports=3128
add action=masquerade chain=srcnat comment="Masquerade intranet" disabled=no \
dst-address=!170.31.255.2 src-address-list=intranet
add action=masquerade chain=srcnat comment="Masquerade speedr" disabled=no \
dst-address-list=!intranet src-address=170.31.255.2
/ip firewall mangle
add action=mark-connection chain=prerouting comment="if addrlist = speedr-redir
ct -> mark connection [connmarkspeedr-redirect]" disabled=no \
dst-address-list=!intranet dst-port=80 new-connection-mark=\
connmarkspeedr-redirect passthrough=no protocol=tcp src-address-list=\
speedr-redirect
add action=mark-packet chain=postrouting comment=\
"dscp->12) => [packet_speedr_HIT]" disabled=no dscp=12 new-packet-mark=\
packet_speedr_HIT passthrough=no
add action=mark-packet chain=postrouting comment=\
"dscp->10 => [packet_speedr_HIT]" disabled=no dscp=10 new-packet-mark=\
packet_speedr_HIT passthrough=no
add action=mark-packet chain=postrouting comment=\
"dscp->48 => [packet_speedr_HIT]" disabled=no dscp=48 new-packet-mark=\
packet_speedr_HIT passthrough=no
/ip firewall address-list
add address=170.31.255.0/30 disabled=no list=intranet
add address=170.31.255.0/30 comment="Regra webcache" disabled=no list=\
speedr-redirect
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=8M \
max-limit=8M name="webcache HIT" packet-mark=packet_speedr_HIT parent=\
global-out priority=8 queue=default