[ask] implement ZPH on external proxy box with parent proxy

what i have now is :

  • squidbox (zph patched) works fine..
  • mikrotik (x86)
    web proxy enabled
ip proxy pr 
                 enabled: yes
             src-address: 0.0.0.0
                    port: 3128
           [b] parent-proxy: 192.168.10.2
       parent-proxy-port: 8888[/b]
     cache-administrator: ""
          max-cache-size: none
           cache-on-disk: no
  max-client-connections: 600
  max-server-connections: 600
          max-fresh-time: 3d
   serialize-connections: no
       always-from-cache: no
          cache-hit-dscp: 0
             cache-drive: sata1

everything run well…

but when i want to unqueue proxy_hit i can’t set them..

i can mark the proxy_hit with this mangle

 1   chain=prerouting action=mark-packet new-packet-mark=proxy-hit 
     passthrough=yes dscp=12

for each pc, i make mangle like this (it is disabled right now)

1 X ;;; -----------NET 03-----------------
     chain=prerouting action=mark-packet new-packet-mark=U Net03 
     passthrough=no src-address=192.168.1.13 in-interface=LAN 

2 X chain=forward action=mark-connection new-connection-mark=T Net03 
     passthrough=yes src-address=192.168.1.13 

3 X chain=forward action=mark-packet new-packet-mark=P Net03 passthrough=no 
     in-interface=WAN connection-mark=T Net03 

4 X chain=output action=mark-packet new-packet-mark=P Net03 passthrough=no 
     dst-address=192.168.1.13 out-interface=LAN

i cannot figured out how to make this mangle works..


please, anyone..

thx..

You are marking traffic by mangle, assigning specific mark for the traffic within the router. Implement queues with mangle packet-marks and set unlimited limitation for proxy traffic and traffic limitation for other traffic.