Strona 1 z 1

problem ze squid 2.6 stable 5

: 18 listopada 2007, 22:28
autor: dan-j2
Witam posiadam wersje zainstalowana z apt taka jak w tytule.
Mam niby wszystko dobrze skonfigurowane a niestety squid nie dziala i nawet w logach nic nie zapisuje :(
tak wyglada moj plik konfiguracyjny.

Kod: Zaznacz cały

# WELCOME TO SQUID 2.6.STABLE1
# ============================

visible_hostname proxyku.or.id
http_port 3128 transparent
cache_mgr [email]admin@domain.or.id[/email]

hierarchy_stoplist cgi-bin ? akademis
acl QUERY urlpath_regex cgi-bin \? akademis
no_cache deny QUERY

acl Apache rep_header Server ^Apache
broken_vary_encoding allow apache

cache_mem 256 MB

cache_swap_low 90
cache_swap_high 95

maximum_object_size 128 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 8000 KB

ipcache_size 2048
ipcache_low 90
ipcache_high 95

fqdncache_size 1024

cache_replacement_policy lru

memory_replacement_policy lru

cache_dir ufs /var/spool/squid 9000 21 256

cache_access_log /var/log/squid/access.log

cache_log /var/log/squid/cache.log

cache_store_log /var/log/squid/store.log

cache_swap_log /var/log/squid/swap.log

pid_filename /var/run/squid/squid.pid

debug_options ALL,1

dns_nameservers 202.157.2.5 202.157.2.6

auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

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
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 CONNECT method CONNECT
acl lokal src 192.168.1.0/255.255.255.0

# acl blokporno dstdomain "/etc/squid/pornourl.txt"
#http_access deny blokporno all

http_access allow manager localhost
http_access deny manager
#deny request to unknown ports
http_access deny !Safe_ports
#deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
http_access allow lokal
http_access deny all

http_access allow localhost

http_reply_access allow all

icp_access allow all

#membatasi kecepatan download
acl limit url_regex -i ftp .exe .mpeg .mp3 .avi .mpg
delay_pools 1
delay_class 1 1
delay_parameters 1 1000/50000
delay_access 1 allow limit
delay_access 1 deny ALL

coredump_dir /var/spool/squid
ps zaznaczam ze to juz chyba z 10 konfig ktorego probowalem uzyc.

: 18 listopada 2007, 23:26
autor: Rad
Masz przecież standardowy konfig po instalacji, jest dobry, wystarczy go nieznacznie zmodyfikować i dostosować do swoich potrzeb, zgodnie ze wskazówkami w nim zawartymi.

: 19 listopada 2007, 09:08
autor: dan-j2
Niestety to nie jest problem z konfigiem usunelem squida i na nowo zainstalowalem i skonfigurowalem wg istniejacego konfigu i to samo moze ta wersja squida jest wadliwa jakas z apt ?

: 19 listopada 2007, 14:14
autor: Rad
Nie sądzę, żeby wersja była wadliwa. Napisz dlaczego nie działa, jakie błędy wyskakują. Podaj więcej informacji.

: 20 listopada 2007, 23:42
autor: bmalewski
Też mam problem ze squidem. U mnie pojawia się komunikat: ERROR No running copy, było chyba jeszcze coś, że No such process .... Czy u Ciebie dan-j2 pojawia się to samo?

: 20 listopada 2007, 23:48
autor: dan-j2
Mysle ze jednak jest wadliwa zainstalowalem ze zrodel i chodzi az milo najmniejszych problemow nie bylo a co do pytania to mi squid normalnie odpala przez 8 sekund w procesach widnieje i znika logow nic nie zapisuje