1 Anexo(s)
Re: Problemas com Squid em paralelo com MK (Alguem pode me dar uma força??)
Alterei a regra do mangle aí sim passou a funcionar a queue tree. estava como postrouting, alterei para prerouting.
Mas agora to achando estranho o seguinte. To fazendo teste pra ver se consigo baixar na velocidade limitada pelo full, mas não to conseguindo.
numa máquina baixei esse link: http://downloads.sourceforge.net/pro...se_mirror=ufpr
em outra maquina baixei o mesmo link, porem baixou na velocidade contratada. Será que pode ser coisa errada na marcação feita pelo squid? pq mais estranho é no mikrotik eu vejo uns picos de velocidade, como no anexo.
meu zph no squid.conf
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
/ip firewall mangle
;;; Cache Full
chain=prerouting action=mark-connection new-connection-mark=proxy-hits passthrough=yes dscp=12
1 chain=prerouting action=mark-packet new-packet-mark=proxy-squid passthrough=no
connection-mark=proxy-hits
/queue tree
name="SquidCache_Down" parent=global-out packet-mark=proxy-squid limit-at=0 queue=cache priority=8
max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s
name="SquidCache_Up" parent=global-in packet-mark=proxy-squid limit-at=0 queue=default priority=8
max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s
/queue type
name="cache" kind=pcq pcq-rate=4800000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
/ip proxy
/ip proxy> print
enabled: yes
src-address: 0.0.0.0
port: 3128
parent-proxy: 192.168.10.2
parent-proxy-port: 5128
cache-administrator: "webmaster"
max-cache-size: none
cache-on-disk: no
max-client-connections: 1000
max-server-connections: 1000
max-fresh-time: 3d
serialize-connections: no
always-from-cache: no
cache-hit-dscp: 4
cache-drive: primary-master
Re: Problemas com Squid em paralelo com MK (Alguem pode me dar uma força??)
Amigo, posta as suas regras do mangle e do queue tree para a gente da uma olhada.
Re: Problemas com Squid em paralelo com MK (Alguem pode me dar uma força??)
Amigo em relação ao zph, seria assim:
# Marca Penalty HIT
zph_mode tos
zph_local 0x30
zph_option 136
zph_parent 0
Re: Problemas com Squid em paralelo com MK (Alguem pode me dar uma força??)
Ainda nao vejo vantagem em cache-full...
Re: Problemas com Squid em paralelo com MK (Alguem pode me dar uma força??)
meu zph no squid.conf
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136
/ip firewall mangle
;;; Cache Full
chain=prerouting action=mark-connection new-connection-mark=proxy-hits passthrough=yes dscp=12
1 chain=prerouting action=mark-packet new-packet-mark=proxy-squid passthrough=no
connection-mark=proxy-hits
/queue tree
name="SquidCache_Down" parent=global-out packet-mark=proxy-squid limit-at=0 queue=cache priority=8
max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s
name="SquidCache_Up" parent=global-in packet-mark=proxy-squid limit-at=0 queue=default priority=8
max-limit=4M burst-limit=0 burst-threshold=0 burst-time=0s
/queue type
name="cache" kind=pcq pcq-rate=4800000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000
/ip proxy
/ip proxy> print
enabled: yes
src-address: 0.0.0.0
port: 3128
parent-proxy: 192.168.10.2
parent-proxy-port: 5128
cache-administrator: "webmaster"
max-cache-size: none
cache-on-disk: no
max-client-connections: 1000
max-server-connections: 1000
max-fresh-time: 3d
serialize-connections: no
always-from-cache: no
cache-hit-dscp: 4
cache-drive: primary-master