squid - kontrola poprawno

Konfiguracja serwerów, usług, itp.
beel
Beginner
Posty: 340
Rejestracja: 28 marca 2007, 07:06

squid - kontrola poprawności

Post autor: beel »

Hej,

przeglądałem pliki konfiguracyjne squida i raczej nie widzę żadnych nieprawidłowości w moim, ale proszę o przeglądnięcie go forumowiczów:
#ilosc ramu:
cache_mem 256 MB
#maksymalny plik zapisywany na dysku:
store_avg_object_size 256 kB
cache_access_log /var/log/squid/access.log
######################
#tutaj podajesz siec
acl all src 192.168.1.0/255.255.255.0

# tutaj wpisujesz wszystkich userow
acl user1 src 192.168.1.10
acl user2 src 192.168.1.11
acl user3 src 192.168.1.12
acl user4 src 192.168.1.13
...
acl user21 src 192.168.1.30

acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 21 70 80 210 443 563 1025-65535
acl CONNECT method CONNECT
############################
#tutaj wpisujesz userow ktorym chodza strony www
http_access allow user1
http_access allow user2
http_access allow user3
http_access allow user4
...
http_access allow user21
##########################
icp_access allow all
miss_access allow all
cache_mgr adres_email@domena.pl
http_port 3128
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
error_directory /usr/share/squid/errors/Polish
visible_hostname http://www.domena.com.pl
log_fqdn on
log_mime_hdrs on
ident_lookup_access allow all localhost SSL_ports Safe_ports CONNECT

#1000 oznacza 1000mb dysku dla squida
cache_dir ufs /var/spool/squid 1000 16 256
Po wydaniu komendy:

Kod: Zaznacz cały

squid -z
2008/05/01 00:58:56| parseConfigFile: line 65 unrecognized: 'httpd_accel_host virtual'
2008/05/01 00:58:56| parseConfigFile: line 66 unrecognized: 'httpd_accel_port 80'
2008/05/01 00:58:56| parseConfigFile: line 67 unrecognized: 'httpd_accel_with_proxy on'
2008/05/01 00:58:56| parseConfigFile: line 68 unrecognized: 'httpd_accel_uses_host_header on'
Podobnie po:

Kod: Zaznacz cały

/etc/init.d/squid start
Starting Squid HTTP proxy: squid2008/05/01 01:05:16| parseConfigFile: line 65 unrecognized: 'httpd_accel_host virtual'
2008/05/01 01:05:16| parseConfigFile: line 66 unrecognized: 'httpd_accel_port 80'
2008/05/01 01:05:16| parseConfigFile: line 67 unrecognized: 'httpd_accel_with_proxy on'
2008/05/01 01:05:16| parseConfigFile: line 68 unrecognized: 'httpd_accel_uses_host_header on'
.
Squid się uruchamia i chodzi:

Kod: Zaznacz cały

ps -C squid
PID TTY TIME CMD
13955 ? 00:00:00 squid
13958 ? 00:00:00 squid
.
Rad
Member
Posty: 1208
Rejestracja: 28 czerwca 2006, 15:05

Post autor: Rad »

Chcesz mieć squida jako transparent proxy? Korzystałeś z przestarzałego howto, te opcje które wpisywałeś są już nieaktualne. Wywal te wszystkie httpd_accel_* i daj

Kod: Zaznacz cały

http_port 3128 transparent
zamiast samego http_port 3128.
ODPOWIEDZ