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!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
witam! chce uruchomić squida. no ale wywala mi jakies pierdoły. mój squid.conf wygląda tak:
http_port 8080 cache_mem 32 MB cache_swap_low 90 cache_swap_high 95 maximum_object_size 4096 KB maximum_object_size_in_memory 1 MB cache_replacement_policy lru memory_replacement_policy lru cache_dir ufs /var/spool/squid 200 16 256 cache_access_log /var/log/squid/access.log cache_store_log /var/log/squid/store.log #Recommended minimum configuration: 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 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 631 # cups acl Safe_ports port 777 # multiling http acl Safe_ports port 901 # SWAT acl purge method PURGE acl CONNECT method CONNECT #Recommended minimum configuration: # # Only allow cachemgr access from localhost http_access allow manager localhost http_access deny manager # Only allow purge requests from localhost http_access allow purge localhost http_access deny purge # Deny requests to unknown ports http_access deny !Safe_ports # Deny CONNECT to other than SSL ports http_access deny CONNECT !SSL_ports http_access allow localhost http_access deny all acl ournet src 192.168.1.0/255.255.255.0 http_access allow ournet ie_refresh on visible_hostname luggage cache_mgr archchancellor@disc.4elephants.turtle.net cache_effective_user proxy cache_effective_group proxy
no i mój redirect:
iptables -t nat -A PREROUTING -s 192.168.1.0/255.255.255.0 -p tcp --dport 80 -j REDIRECT --to-port 8080
Co mam nie tak?? cos trzeba dodac albo wykasowac?? pzdr
Offline
A jak wyglądają te pierdoły?
Offline
ok już działa. sćiągłem jakiegoś configa z neta, troche przerobiłem i hula. teraz trza go troche dopieścić. no ale dzieki za checi i fatyge. pozdrawiam
edid
jednak nie działa a wywala mi to:
ERROR The requested URL could not be retrieved While trying to process the request: GET / HTTP/1.1 Host: interia.pl User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070208 Mandriva/2.0.0.2-3mdv2007.1 (2007.1) Firefox/2.0.0.2 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: pl,en-us;q=0.7,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-2,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: poczta=nowa; __ads_b64_INTERIAPL=<fHdvamV3b2R6dHdvI3BvZGthcnBhY2tpZXw=> If-Modified-Since: Sun, 11 Mar 2007 14:02:46 GMT If-None-Match: "53753-efpeamag" The following error was encountered: * Invalid Request Some aspect of the HTTP Request is invalid. Possible problems: * Missing or unknown request method * Missing URL * Missing HTTP Identifier (HTTP/1.0) * Request is too large * Content-Length missing for POST or PUT requests * Illegal character in hostname; underscores are not allowed Your cache administrator is archchancellor@disc.4elephants.turtle.net. Generated Sun, 11 Mar 2007 11:42:29 GMT by hefajstos (squid/2.6.STABLE5)
Offline
tu jest mój config który działa
http://forum.dug.net.pl/viewtopic.php?t=6441&highlight=guzzi+squid
Offline
Time (s) | Query |
---|---|
0.00020 | SET CHARSET latin2 |
0.00007 | SET NAMES latin2 |
0.00159 | 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='3.145.155.149' WHERE u.id=1 |
0.00084 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.155.149', 1738501155) |
0.00053 | SELECT * FROM punbb_online WHERE logged<1738500855 |
0.00068 | DELETE FROM punbb_online WHERE ident='13.59.62.63' |
0.00052 | SELECT topic_id FROM punbb_posts WHERE id=54669 |
0.00005 | SELECT id FROM punbb_posts WHERE topic_id=7163 ORDER BY posted |
0.00065 | 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=7163 AND t.moved_to IS NULL |
0.00028 | SELECT search_for, replace_with FROM punbb_censoring |
0.00121 | 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=7163 ORDER BY p.id LIMIT 0,25 |
0.00094 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=7163 |
Total query time: 0.00756 s |