Subject: Problems with squid
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 04/29/2005 19:33:46
Hi!

I'm having problems with squid-2.5.9nb9 on my home server (3.0_BETA).
Any ideas what might be wrong? An older version (was is nb6?) worked
just fine...


Apr 29 19:21:34 n70 squid[15144]: Squid Parent: child process 20503 exited due to signal 6
Apr 29 19:21:37 n70 squid[15144]: Squid Parent: child process 12573 started
Apr 29 19:21:38 n70 squid[15144]: Squid Parent: child process 12573 exited due to signal 6
Apr 29 19:21:41 n70 squid[15144]: Squid Parent: child process 27363 started


Here's my config file:

# cat /etc/ipnat.conf
rdr rtk0 10.0.0.1/32 port 80  -> 10.0.0.1 port 80   tcp
rdr rtk0 10.0.0.1/32 port 443 -> 10.0.0.1 port 443  tcp
rdr rtk0 0.0.0.0/0   port 80  -> 10.0.0.1 port 8080 tcp


# diff -u ../../share/examples/squid/squid.conf squid.conf 
--- ../../share/examples/squid/squid.conf       2005-04-29 19:16:23.000000000 +0300
+++ squid.conf  2005-04-29 19:16:08.000000000 +0300
@@ -51,6 +51,8 @@
  #
  #Default:
  # http_port 3128
+#
+http_port 10.0.0.1:8080

  #  TAG: https_port
  #        Usage:  [ip:]port cert=certificate.pem [key=key.pem] [options...]
@@ -693,6 +695,8 @@
  #
  #Default:
  # cache_dir ufs /var/squid/cache 100 16 256
+#
+cache_dir ufs /var/squid/cache 1024 16 256

  #  TAG: cache_access_log
  #      Logs the client request activity.  Contains an entry for
@@ -768,6 +772,8 @@
  #
  #Default:
  # log_ip_on_direct on
+#
+log_ip_on_direct off

  #  TAG: mime_table
  #      Pathname to Squid's MIME table. You shouldn't need to change
@@ -1831,6 +1837,7 @@
  acl Safe_ports port 591                # filemaker
  acl Safe_ports port 777                # multiling http
  acl CONNECT method CONNECT
+acl kotiverkko src 10.0.0.0/255.255.255.0

  #  TAG: http_access
  #      Allowing or Denying access based on defined access lists
@@ -1869,6 +1876,7 @@
  #http_access deny to_localhost
  #
  # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
+http_access allow kotiverkko

  # Example rule allowing access from your local networks. Adapt
  # to list your (internal) IP networks from where browsing should
@@ -2076,6 +2084,8 @@
  #
  #Default:
  # cache_effective_user nobody
+#
+cache_effective_user squid

  #  TAG: cache_effective_group
  #      If you want Squid to run with a specific GID regardless of
@@ -2088,6 +2098,8 @@
  #
  #Default:
  # none
+#
+cache_effective_group squid

  #  TAG: visible_hostname
  #      If you want to present a special hostname in error messages, etc,
@@ -2186,6 +2198,8 @@
  #
  #Default:
  # httpd_accel_port 80
+httpd_accel_host virtual
+httpd_accel_port 80

  #  TAG: httpd_accel_single_host        on|off
  #      If you are running Squid as an accelerator and have a single backend
@@ -2215,6 +2229,8 @@
  #
  #Default:
  # httpd_accel_with_proxy off
+#
+httpd_accel_with_proxy on

  #  TAG: httpd_accel_uses_host_header   on|off
  #      HTTP/1.1 requests include a Host: header which is basically the
@@ -2235,6 +2251,8 @@
  #
  #Default:
  # httpd_accel_uses_host_header off
+#
+httpd_accel_uses_host_header on

  #  TAG: httpd_accel_no_pmtu_disc       on|off
  #      In many setups of transparently intercepting proxies Path-MTU
@@ -2765,6 +2785,8 @@
  #
  #Default:
  # snmp_port 3401
+#
+snmp_port 0

  #  TAG: snmp_access
  #      Allowing or denying access to the SNMP port.