🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.sieci
Article #231887

squid i poczatki

#231887
From: ukaszq
Date: Thu, 20 Dec 2007 08:20
84 lines
2836 bytes
Mam Slacka 12. Sqiuda instaluje pierwszy raz. Ale mam kilka
problemow.
Moja konfiguracja squida wyglada nastepujaco:

Kod:
http_port 8080 transparent


cache_dir ufs /cache 5000 16 256
cache_mem 200 MB
cache_swap_low 80
cache_swap_high 90
memory_replacement_policy lru
logfile_rotate 5


refresh_pattern -i (.*jpg$|.*gif$) 0 50% 28800
refresh_pattern -i (.*html$|.*htm|.*shtml|.*php) 0 20% 1440
refresh_pattern (http://.*/$) 0 20% 1440
refresh_pattern . 0 20% 4320


cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/log/squid/squid.pid


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
acl Safe_ports port 443 563
acl CONNECT method CONNECT


http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports


acl server src 192.168.12.1
http_access allow server
acl siec  src 192.168.12.0/255.255.255.0
http_access allow siec
http_access deny all
http_reply_access allow all
icp_access allow all


#usery
cache_effective_user proxy
cache_effective_group proxy


#informacja
visible_hostname lala.pl
cache_mgr ad...@lala.pl
coredump_dir /cache


maximum_object_size 10000 KB
minimum_object_size 0 KB


#dla starych przegladarek
ie_refresh on


W iptables wpisuje:
Kod:
iptables -t nat -A PREROUTING -s 192.168.12.1/24 -p tcp --dport 80 -j
REDIRECT --to-port 8080


Kiedy odpalam ta regule w iptables internet w sieci przestaje mi
dzialac  Wyjscie z serwera na zew jest, ale wew sieci nie ma
interentu.


Prosze o pomoc...
Technical Details
Message-ID: <576eaf06-be95-4f16-a42f-4e0059974e3a@l32g2000hsh.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!l32g2000hsh.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!l32g2000hsh.googlegroups.com!not-for-mail
From: ukaszq@gmail.com
Newsgroups: pl.comp.os.linux.sieci
Subject: squid i poczatki
Date: Thu, 20 Dec 2007 00:20:22 -0800 (PST)
Organization: http://groups.google.com
Lines: 84
Message-ID: <576eaf06-be95-4f16-a42f-4e0059974e3a@l32g2000hsh.googlegroups.com>
NNTP-Posting-Host: 87.204.151.82
Mime-Version: 1.0
X-Trace: posting.google.com 1198138822 22291 127.0.0.1 (20 Dec 2007 08:20:22 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 20 Dec 2007 08:20:22 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: l32g2000hsh.googlegroups.com; posting-host=87.204.151.82;  posting-account=8heqxwkAAAB8yN4aNrX_bzBrjBsJX95D
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET  CLR 2.0.50727; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit