Avatar billede bbrockie Nybegynder
19. november 2005 - 18:21 Der er 1 løsning

Squid problemer på Fedora Core 4

Hej folkens
Jeg har bøvl med at få min Squid server til at køre som den skal. Når jeg bruger den med Internet Explorer får jeg følgende fejlmeddelelse for på alle sider jeg prøver at besøge:

--------------------------------------------------------------------------------
ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://www.google.com/

The following error was encountered:

Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

Your cache administrator is admin@...

Generated Sat, 19 Nov 2005 16:48:02 GMT by ns4 (squid/2.5.STABLE11)
--------------------------------------------------------------------------------

Min Squid.conf fil ser således ud:
--------------------------------------------------------------------------------

debug_options ALL,1
http_port 3128
icp_port 0
acl CONNECT method CONNECT
acl brugere src 192.168.2.1/255.255.255.0
http_access allow brugere
cache_effective_user squid
cache_effective_group squid
cache_mem 48 MB
maximum_object_size 12 MB
cache_dir ufs /var/spool/squid 600 16 256
visible_hostname ns4
cache_mgr admin@.....

--------------------------------------------------------------------------------

Har i nogle forslag til hvordan den kan komme til at køre?

På forhånd mange tak
Avatar billede bbrockie Nybegynder
29. november 2005 - 07:43 #1
Det var en værre hovedpine at finde ud af; men jeg fandt en side på nettet som fik mig på rette spor. I tilfælde af at nogen anden derude også sidder og har brug for en løsning, smider jeg lige indholdet af min squid.conf fil herind :)

--------------------------------------------

shutdown_lifetime 5 seconds
icp_port 0

http_port 192.168.2.104:800

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

cache_effective_user squid
cache_effective_group squid

pid_filename /var/run/squid.pid

cache_access_log /dev/null
cache_log /dev/null
cache_store_log none

cache_mgr admin@minpc.com

log_mime_hdrs off
forwarded_for off

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl localnet src 192.168.2.0/255.255.255.0
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
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 800 # Squids port (for icons)

acl IPCop_http port 81
acl IPCop_https port 445
acl IPCop_ip dst 192.168.2.104
acl IPCop_blue_ip dst 127.0.0.1
acl CONNECT method CONNECT

acl bad url_regex -I "/etc/squid/bad"

acl badfiles urlpath_regex -I \.exe
acl badfiles urlpath_regex -I \.lq
acl badfiles urlpath_regex -I \.cab
acl badfiles urlpath_regex -I \.zip
acl badfiles urlpath_regex -I \.ico

http_access deny bad
http_access deny badfiles
http_access allow localhost
http_access allow IPCop_ip IPCop_blue_ip localnet IPCop_http
http_access allow CONNECT IPCop_ip IPCop_blue_ip localnet IPCop_https
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all

maximum_object_size 10000 KB
minimum_object_size 0 KB

cache_mem 6264 KB
cache_dir aufs /var/spool/squid 2000 16 256

request_body_max_size 0 KB
reply_body_max_size 0 allow all

visible_hostname ns4.minpc

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester