Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Squid mode trasparent. non va!!!!
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) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu May 10, 2007 12:46 pm    Post subject: Squid mode trasparent. non va!!!! Reply with quote

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
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Thu May 10, 2007 2:48 pm    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
GiRa
l33t
l33t


Joined: 07 Apr 2005
Posts: 717

PostPosted: Thu May 10, 2007 4:26 pm    Post subject: Reply with quote

http://www.soft-land.org/cgi-bin/doc.pl?doc=articoli/proxy
Back to top
View user's profile Send private message
kattivo
Guru
Guru


Joined: 28 Jan 2005
Posts: 450
Location: Treviso

PostPosted: Thu May 10, 2007 4:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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