Last Updated: 22/01/2015 > Minor Updates including mismatch value in marked packets
ZPH in Action 🙂
ZPH is a squid patch that enables SQUID to mark cached packets , so that it can later used by the Mikrotik or squid itself to bypass cached contents from Speed Package.
Z.P.H directives config which works with SQUID 2.7 doesn’t work with new version of SQUID i.e 3.x
Use the following directives in /etc/squid3/squid.conf
# ZPH for Squid3 / zaib qos_flows local-hit=0x30
then reload squid config by
squid -k rec
Now at Mikrotik, use following rules …
Queue Rule For Mikrotik 5.x
/ip firewall mangle add action=mark-packet chain=prerouting comment="MARK_CACHE_HIT_FROM_PROXY_ZAIB" disabled=no dscp=12 new-packet-mark=zph-hit passthrough=no /queue tree add burst-limit=0 burst-threshold=0 burst-time=0s comment="Queue for SQUID CACHE HIT for ZPH / zaib" disabled=no limit-at=0 max-limit=0 name=Proxy packet-mark=zph-hit parent=global-out priority=1 queue=default
Queue Rule For Mikrotik 6.x
/ip firewall mangle add action=mark-packet chain=prerouting comment="MARK_CACHE_HIT_FROM_PROXY_ZAIB" disabled=no dscp=12 new-packet-mark=zph-hit passthrough=no /queue simple add max-limit=100M/100M name="ZPH-Proxy Cache Hit Simple Queue / Syed Jahanzaib >aacable@hotmail.com" packet-marks=zph-hit priority=1/1 target="" total-priority=1
.
If you have hotspot, then dynamic queue always get on top, so you ahve to apply this line in hotspot user profile, so that every time hotspot user login, zph queue should move on top.
☺
Regard’s
SYED JAHANZAIB