View previous topic :: View next topic |
Author |
Message |
kattivo Guru
Joined: 28 Jan 2005 Posts: 450 Location: Treviso
|
Posted: Thu May 10, 2007 12:46 pm Post subject: Squid mode trasparent. non va!!!! |
|
|
Salve,
Sono alle prese a configurare squid, in modalità trasparente...
Per fare ciò sembra non ci sia nulla di difficile.. ma non riesco a farlo andare.. vi posto il conf:
Code: |
cache_mgr kattivo@digitalsnc.it
cache_effective_user squid
cache_effective_group squid
visible_hostname digitalsnc.it
append_domain .digitalsnc.it
#http_port 192.168.0.101:3128 transparent
icp_port 0
cache_mem 20 MB
http_port 3128 transparent
cache_dir ufs /usr/tmp/squid 256 16 256
# change this path to somewhere you have enough diskspace
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl allowed_hosts src 192.168.0.0/255.255.255.0
#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
icp_access allow allowed_hosts
icp_access deny all
miss_access allow allowed_hosts
miss_access deny all
|
Ho dato il redirect tramite firewall:
Code: |
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
|
Se apro un client, entra in internet..senza proxy.
dove sbagliO?! _________________ Eurostep Consulting S.r.l.
Andrea P. <andrea@eurostep.it> |
|
Back to top |
|
|
makoomba Bodhisattva
Joined: 03 Jun 2004 Posts: 1856
|
Posted: Thu May 10, 2007 2:48 pm Post subject: |
|
|
Moved from Forum italiano (Italian) to Forum di discussione italiano. _________________ When all else fails, read the instructions. |
|
Back to top |
|
|
GiRa l33t
Joined: 07 Apr 2005 Posts: 717
|
|
Back to top |
|
|
kattivo Guru
Joined: 28 Jan 2005 Posts: 450 Location: Treviso
|
Posted: Thu May 10, 2007 4:35 pm Post subject: |
|
|
Code: |
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
|
Inserendo queste fantastiche righe..
il al start di squid, mi dice che non riconosce quei comandi.
per squid 2.6 c'e scritto che basta http_port ip:port transparent _________________ Eurostep Consulting S.r.l.
Andrea P. <andrea@eurostep.it> |
|
Back to top |
|
|
|