Lusca / Squid dan bypass trafic cache proxy di Mikrotik

langsung saja tambah kan pada lusca/squid 2.7

#=============================================
# acl option
#=============================================
 acl localnet 192.168.20.0/24

#=============================================
# zph option
#=============================================
tcp_outgoing_tos 0x30 localnet  #[ localnet adalah acl untuk network nya silahkan di sesuikan]
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136

#=============================================
# http_access
#=============================================
http_access allow localnet
http_access deny all


#=============================================
#ZPH Option SQUID 3.1.19
#==============================================

# ZPH for Squid 3.1.19
qos_flows local-hit=0x30

di mikrotik nya bikin manggel
/ip firewall mangle add action=mark-packet chain=forward disabled=no dscp=12 new-packet-mark=zph-tos-hit passthrough=no comment="MARK_CACHE_HIT_PROXY"

bikin simple queue
/queue simple add name="<Bypass-Proxy-ZPH>" target-addresses="" packet-marks=zph-tos-hit direction=both priority=8

trus yang lain di atur di queue tree karena jika sudah di atur di simple queue quetree nya tidak berlaku atau simple queuenya Bypass-Proxy-ZPH di taruh rule paling atas karena simple queue rule mulai dari atas

link install lusca
http://ubuntuserverguide.com/2012/12/how-to-install-and-configure-lusca-as-proxy-server-in-ubuntu-server-12-04.html

Topologi nya 

Komentar

Postingan populer dari blog ini

Cloudflared argo tunnel zero trust service on Mikrotik

Migrasi zimbra ke zimbra dengan rsync

Squid Proxy ssl bump untuk transparent HTTPS #2