Freesco, NND, CDN, EOS http://forum.freesco.pl/ |
|
nice+squid tos=0x0 http://forum.freesco.pl/viewtopic.php?f=22&t=13674 |
Strona 1 z 1 |
Autor: | ChemiX [ piątek, 29 września 2006, 22:54 ] |
Tytuł: | nice+squid tos=0x0 |
witam mam taki problem obojetnie ile razy wejde na jakas strone zawsze wwala mi tos=0x0 nigdy nie ma tos=0x8. zastanawiam sie czy to jest normalne bo gdy restartuje squida za kazdym razem wywala mi creating swap directories Cytuj: class download eth1 SERWER_TO_LAN match from localhost srcip 192.168.1.1 dstip 192.168.1.0/24 proto tcp tos 0x8 do not shape # --- KLASY UŻYTKOWNIKÓW # --- Imie_nazwisko class download eth1 ChemiX match dstip 192.168.1.2 ceil 50kB/s[21~ Cytuj: <global> run download upload support mark on eth0 auto stats unit kB/s file none #/var/www/state/nsstats.txt </global> <download> iface eth1 dst network 192.168.1.0/24 section speed 1512kB/s section shape 400kB/s default low 2kB/s default ceil 64kB/s default htb_prio 5 default overtake 16kB/s default hold 30s default scheduler sfq mode download reload 2s </download> <upload> iface eth0 src network 192.168.1.0/24 section speed 64kB/s section shape 52kB/s default low 1kB/s default ceil 4kB/s default htb_prio 5 default overtake 4kB/s default hold 30s default scheduler sfq mode upload reload Cytuj: # squid.conf
# by Adi v 0.5 2006-09-26 http_port 3128 transparent icp_port 0 cache_mem 512 MB cache_swap_high 95 cache_swap_low 90 ipcache_size 16384 fqdncache_size 0 zph_tos_local 8 zph_tos_peer 0 zph_tos_parent off store_avg_object_size 14 KB maximum_object_size 200 MB maximum_object_size_in_memory 256 KB cache_dir ufs /var/spool/squid 4096 16 256 redirect_rewrites_host_header off cache_log /var/spool/squid/cache.log cache_access_log /var/log/squid/access.log cache_store_log none logfile_rotate 7 buffered_logs on error_directory /usr/share/squid/errors/Polish log_icp_queries off debug_options ALL,1 cache_replacement_policy heap LFUDA memory_replacement_policy heap GDSF memory_pools off sleep_after_fork 2000 shutdown_lifetime 10 seconds client_persistent_connections off pid_filename /var/run/squid.pid cache_effective_user proxy cache_effective_group proxy visible_hostname router dns_nameservers 194.204.159.1 194.204.152.34 127.0.0.1 ie_refresh on half_closed_clients off forwarded_for off reload_into_ims on #cache_mgr chemixxx@wp.pl #cachemgr_passwd adrian all acl all src 0.0.0.0/0.0.0.0 acl localnet src 192.168.1.0/255.255.255.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 hierarchy_stoplist cgi-bin ? acl QUERY urlpath_regex cgi-bin cgi \? .ra no_cache deny QUERY acl SSL_ports port 443 563 acl Safe_ports port 80 21 443 563 70 210 1025-65535 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 zablokowani src "/etc/squid/blokip.conf" acl nolimit url_regex -i 192.168.1 acl nolimitip src 192.168.1.1 acl limit url_regex -i ftp .zip .tgz .bin .pdf .exe .mp3 .wma .vqf .tar.gz .gz .rpm .rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov .torrent .html .gif .png .htm .cgi .php .asp .cgi-bin .js .css .jpg .swf delay_pools 2 delay_class 1 2 delay_parameters 1 -1/-1 -1/-1 delay_access 1 allow nolimit delay_access 1 allow nolimitip delay_class 2 2 delay_parameters 2 500000/500000 16000/16000000 delay_access 2 allow limit #http_access deny zablokowani http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localnet http_access deny all icp_access allow all # iptables -t nat -A PREROUTING -i $INTIF1 -p tcp --dport 80 -j REDIRECT --to-port 3128 auth_param basic children 5 auth_param basic realm Squid proxy-caching web server auth_param basic credentialsttl 2 hours auth_param basic casesensitive off refresh_pattern -i (.*jpg$|.*gif$) 0 50% 28800 reload-into-ims refresh_pattern -i (.*png$|.*bmp$) 0 50% 28800 reload-into-ims refresh_pattern -i (.*html$|.*htm|.*shtml) 0 20% 1440 refresh_pattern (http://.*/$) 0 20% 1440 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 refresh_pattern windowsupdate.com/.*\.(cab|exe) 0 100% 28800 reload-into-ims refresh_pattern download.microsoft.com/.*\.(cab|exe) 0 100% 28800 reload-into-ims |
Autor: | Alfred [ piątek, 29 września 2006, 23:13 ] |
Tytuł: | |
Cytuj: gdy restartuje squida za kazdym razem wywala mi creating swap directories
To nie jest normalne. 1. Zobacz jakie prawa ma katalog /var/cache/squid i czy powstają tam katalogi typu 00, 01 itd. 2. Zobacz logi (nie tylko squida). |
Autor: | makog [ piątek, 29 września 2006, 23:17 ] |
Tytuł: | |
on ma zmienione sciezki a w skrypcie startowy pewno nie zmienil i dlatego mu wywala taki komunikat. |
Autor: | ChemiX [ piątek, 29 września 2006, 23:18 ] |
Tytuł: | |
Alfred pisze: Cytuj: gdy restartuje squida za kazdym razem wywala mi creating swap directories To nie jest normalne. 1. Zobacz jakie prawa ma katalog /var/cache/squid i czy powstają tam katalogi typu 00, 01 itd. 2. Zobacz logi (nie tylko squida). ja mam udostepniony osobny dysk na squida cache_dir ufs /var/spool/squid 4096 16 256 i sa tam takie katalogi ale jak sie w nie wchodzi to sa puste |
Autor: | ChemiX [ piątek, 29 września 2006, 23:27 ] |
Tytuł: | |
Cytuj: creating swap directories z tym juz sobie poradzilem ale co zrobic z tym tos?? siedze nad tym i nic mi do glowy nie przychodzi
|
Autor: | makog [ piątek, 29 września 2006, 23:29 ] |
Tytuł: | |
przy 5 userach i squidzie dzialajacym 3-4 dni to niebedzie tego za wiele ![]() |
Autor: | ChemiX [ piątek, 29 września 2006, 23:36 ] |
Tytuł: | |
userow bedzie 10 ![]() |
Strona 1 z 1 | Strefa czasowa UTC+2godz. |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |