Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configurazione Squid
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Fri Oct 03, 2008 10:51 am    Post subject: Configurazione Squid Reply with quote

Salve ragazzi,
sto diventando pazzo a configurarmi Squid in modalità transparent x il mio homeServer.

All'interno della mia LAN ho un server con due schede di rete che da l'accesso a Internet a tutti i PC della LAN::

-192.168.0.254/24 --> Collegata ai PC locali

-192.168.1.10/24 --> Collegata a Internet

Ho configurato Squid in questo modo:
Code:
http_port 3128 transparent

cache_mem 16 MB

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

mime_table /etc/squid/mime.conf
pid_filename /var/run/squid.pid
hosts_file /etc/hosts

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

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 Safe_ports port 901      # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

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

acl our_networks src 192.168.0.0/24
http_access allow our_networks
http_access allow localhost
http_access deny all

http_reply_access allow all
icp_access allow all
visible_hostname Andreasv


Ma non funge.
Questo è il log:
Code:
1221052179.255      0 192.168.1.10 TCP_DENIED/504 1600 GET http://google.it/ - NONE/- text/html
1221052179.255      0 192.168.1.10 TCP_MISS/504 1730 GET http://google.it/ - DIRECT/72.14.221.104 text/html
1221052179.255      3 192.168.1.10 TCP_MISS/504 1860 GET http://google.it/ - DIRECT/72.14.221.104 text/html


Potete gentilmente aiutarmi?
Grazie.
Back to top
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Mon Oct 06, 2008 1:54 pm    Post subject: Reply with quote

Nessuno mi riesce a dare una mano?? :(
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Tue May 05, 2009 11:35 am    Post subject: Reply with quote

Anche io ho lo stesso problema!!!

Stavo seguendo questo howto ma non funziona!

Ma come cavolo si fa?
Qualsiasi URL digiti, esce fuori "ERROR The requested URL could not be retrieved".

Inoltre mi piacerebbe capire se è necessario installare anche un server dns!
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum