tosko
(usa Debian)
Enviado em 16/01/2012 - 19:06h
ja to ficando triste =\, não funcionou, segue as confis abaixo:
root@orion:/etc/squid# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@orion:/etc/squid# iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
MARK all -- anywhere anywhere tos match 0x04/0xff MARK set 0x4
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
root@orion:/etc/squid# ifconfig
eth0 Link encap:Ethernet Endereço de HW 20:cf:30:bc:27:f2
inet end.: 192.168.3.14 Bcast:192.168.3.255 Masc:255.255.255.0
endereço inet6: fe80::22cf:30ff:febc:27f2/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:39854 errors:0 dropped:0 overruns:0 frame:0
TX packets:18480 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:5434710 (5.1 MiB) TX bytes:14521213 (13.8 MiB)
IRQ:26
eth2 Link encap:Ethernet Endereço de HW 00:08:54:b1:84:f8
inet end.: 192.168.3.15 Bcast:192.168.3.255 Masc:255.255.255.0
endereço inet6: fe80::208:54ff:feb1:84f8/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:7869 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:795693 (777.0 KiB) TX bytes:5530 (5.4 KiB)
IRQ:19 Endereço de E/S:0xac00
lo Link encap:Loopback Local
inet end.: 127.0.0.1 Masc:255.0.0.0
endereço inet6: ::1/128 Escopo:Máquina
UP LOOPBACKRUNNING MTU:16436 Métrica:1
RX packets:1877 errors:0 dropped:0 overruns:0 frame:0
TX packets:1877 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:0
RX bytes:232207 (226.7 KiB) TX bytes:232207 (226.7 KiB)
#==================================$
# Proxy Server Versi 2.7.Stable3
# Faisal Reza @ AlexaNET
#==================================$
http_port 3128
hierarchy_stoplist cgi-bin ? .js .jsp
acl QUERY urlpath_regex cgi-bin \? .js .jsp
no_cache deny QUERY
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
max_filedesc 8192
maximum_object_size 700 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 512 bytes
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /proxy1 16000 32 256
cache_dir aufs /proxy2 16000 32 246
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/run/squid.pid
dns_nameservers 208.67.222.222 208.67.220.220
#dns_nameservers 127.0.0.1
cache_swap_log /var/log/squid/swap.state
emulate_httpd_log on
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
negative_ttl 1 minutes
half_closed_clients off
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
##############################
# SNMP
snmp_port 3401
acl snmpsquid snmp_community public
snmp_access allow snmpsquid localhost
snmp_access deny all
#acl alexa-net src 172.16.12.192/26 ## Sesuaikan
#acl alexa-hotspot src 192.168.2.0/24 ## Sesuaikan
#http_access allow alexa-net
#http_access allow alexa-hotspot
acl redelocal src 192.168.3.0/24
http_access allow redelocal
http_access deny all
http_reply_access allow all
icp_access deny all
always_direct deny all
#cache_mgr faisareza@gmail.com
visible_hostname alexanet.netgameonline.com
#cache_mgr faisareza@gmail.com
#cache_effective_user root
#cache_effective_group root
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 14
#Marking ZPH
zph_mode tos
zph_local 0x04
zph_parent 0
zph_option 136
e lá no webhtb eu adicionei o que tu falou mas nada, adicionei o cliente coloquei o campo mark 4 mas não funcionou, ele ta controlando o cache ainda.