Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

/ip firewall filter

add action=accept chain=forward comment="Allow Cache" disabled=no src-address=19


2.168.88.0/24
/ip firewall nat
add action=dst-nat chain=dstnat comment="Redirect Raptorcache" disabled=no dst-p
ort=80 protocol=tcp src-address=!172.18.0.2 to-addresses=172.18.0.2 to-ports=312
8
/ip firewall mangle
add action=mark-connection chain=postrouting comment="== RAPTORCACHE ==" content
="X-Cache: HIT from Raptor" disabled=no new-connection-mark=raptor-connection pa
ssthrough=yes src-address=172.18.0.2 protocol=tcp
add action=mark-packet chain=postrouting connection-mark=raptor-connection disab
led=no new-packet-mark=raptor-packs passthrough=yes
add action=mark-connection chain=postrouting comment="== SQUID ==" content="X-Ca
che: HIT from Squid" disabled=no new-connection-mark=squid-connection passthroug
h=yes src-address=172.18.0.2 protocol=tcp
add action=mark-packet chain=postrouting connection-mark=squid-connection disabl
ed=no new-packet-mark=squid-packs passthrough=yes
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=4M name="RaptorCache" packet-mark=raptor-packs parent=global-out priority=4 q
ueue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-lim
it=4M name="Squid 3.x" packet-mark=squid-packs parent=global-out priority=4 queu
e=default

/ip firewall mangle


add action=mark-connection chain=postrouting comment="==SQUID - TOS 12==" disabl
ed=no dscp=12 new-connection-mark=squid-connection passthrough=yes protocol=tcp
src-address=172.18.0.2
add action=mark-packet chain=postrouting connection-mark=squid-connection disabl
ed=no new-packet-mark=squid-packs passthrough=yes

You might also like