Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2010-04-13 13:03:35

  kaju007 - Użytkownik

kaju007
Użytkownik
Zarejestrowany: 2010-02-20

Squid a syslog

Witam

Nie wiem jak wyłączyć logowanie do sysloga squida ciągle mi go zawala takimi wpisami

Kod:

Apr 13 12:56:02 xx--xx squid[25662]: ZPH: Preserving TOS on miss, TOS=0
Apr 13 12:56:02 xx--xx squid[25662]: ZPH: Preserving TOS on miss, TOS=0
Apr 13 12:56:02 xx--xx squid[25662]: ZPH: Preserving TOS on miss, TOS=0
Apr 13 12:56:02 xx--xx squid[25662]: ZPH: Preserving TOS on miss, TOS=0
Apr 13 12:56:02 xx--xx squid[25662]: ZPH hit hier.code=0 TOS=8

squid.conf

Kod:

http_port 8080 transparent
icp_port 0

dns_nameservers 10.0.1.1

tcp_outgoing_address xx.xx.xx.xx
udp_outgoing_address xx.xx.xx.xx



# Wylaczamy cache'owanie cgi i tresci dynamicznych
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

cache_mem 583 MB
cache_swap_low 80%
cache_swap_high 95%
maximum_object_size 6 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 128 KB
# Maksymalny rozmiar naglowka
request_header_max_size 50 KB

ipcache_size 16384
#ipcache_low 90
#ipcache_high 95
fqdncache_size 0
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir ufs /cache 6144 12 256
#cache_access_log /cache/access.log
#cache_store_log /cache/store.log
# access_log none
# cache_log none
#cache_store_log none

refresh_pattern -i \.(gif|jpg|jpeg|png|html|bmp)   0   50%    7200   reload-into-ims
refresh_pattern -i \.(zip|gz|bz2|exe|rar|mp3|mpg|avi|wmv|vqf|ogg)   43200   100%    43200   reload-into-ims
refresh_pattern windowsupdate.com/.*\.(cab|exe|dll)     43200    100%    43200   reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll) 43200   100%    43200   reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll) 43200 100% 43200 reload-into-ims
refresh_pattern symantecliveupdate.com/.*\.(zip|exe)    43200    100%    43200   reload-into-ims
refresh_pattern windowsupdate.com/.*\.(cab|exe)         43200   100%    43200   reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe)    43200   100%    43200   reload-into-ims
refresh_pattern avast.com/.*\.(vpu|vpaa)    43200   100%    43200   reload-into-ims
refresh_pattern .               0       20%     4320

# Timeouty
half_closed_clients off

# Przyspieszamy przez wlaczenie pipelining
pipeline_prefetch on

# Niedociagniete pliki
#quick_abort_min 0 KB
#quick_abort_max 0 KB

#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 1025-65535  # pozostale porty
acl purge method PURGE
acl CONNECT method CONNECT


# Apache zjebane headery
acl apache rep_header Server ^Apache
#broken_vary_encoding allow apache


acl mala_siec src 10.0.1.0/24
acl blok_reklam url_regex "/usr/local/squid/reklamy.acl"
acl polaczenia maxconn 50
#acl blok_pliki url_regex "/usr/local/squid/pliki.acl"
http_access deny blok_reklam
#http_access deny blok_pliki
http_access allow all
http_access allow mala_siec
http_access deny purge
http_access allow purge localhost
http_access deny manager
http_access allow manager localhost
http_access deny polaczenia mala_siec

http_access allow mala_siec
http_access allow localhost
#http_access deny all
http_reply_access allow all
 icp_access deny all
 httpd_suppress_version_string on
visible_hostname localhost
 memory_pools_limit 100 MB
 forwarded_for on
 reload_into_ims on
#coredump_dir /cache
ie_refresh on
zph_tos_local 8
zph_tos_peer 0
zph_tos_parent off

 relaxed_header_parser off
url_rewrite_program /usr/sbin/lms-squid
url_rewrite_children 20

# Tutaj    chyba jasno  ;-) w cachemgr_passwd wpisac haslo jakie chcemy do cachemgr
visible_hostname xxxx.pl
cache_mgr admin@xxx
cachemgr_passwd xxxx shutdown offline_toggle config
coredump_dir /cache

Niby wszystkie logi squida wyłączone a dalej sieje w syslogu

Ostatnio edytowany przez kaju007 (2010-04-13 13:04:25)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.008 seconds, 12 queries executed ]

Informacje debugowania

Time (s) Query
0.00014 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00103 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.188.140.232' WHERE u.id=1
0.00067 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.188.140.232', 1732561018)
0.00048 SELECT * FROM punbb_online WHERE logged<1732560718
0.00066 DELETE FROM punbb_online WHERE ident='3.145.106.7'
0.00098 SELECT topic_id FROM punbb_posts WHERE id=145764
0.00084 SELECT id FROM punbb_posts WHERE topic_id=16608 ORDER BY posted
0.00057 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=16608 AND t.moved_to IS NULL
0.00005 SELECT search_for, replace_with FROM punbb_censoring
0.00071 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=16608 ORDER BY p.id LIMIT 0,25
0.00075 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=16608
Total query time: 0.00692 s