Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    тормозит инет через squid

    Scheduled Pinned Locked Moved Russian
    3 Posts 2 Posters 5.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      randreevich
      last edited by

      pf 2.0.2 - squid 2.7 + SquidGuard
      проработало дней 10 - потом интернет стал задумчивым = сайт думает сек.5 потом все гууд откр. и по сайту все быстро.
      удаляю кальмара - летает.

      http_port 192.168.0.241:3128
      http_port 192.168.71.7:3128
      http_port 127.0.0.1:3128 transparent
      icp_port 0

      pid_filename /var/run/squid.pid
      cache_effective_user proxy
      cache_effective_group proxy
      error_directory /usr/local/etc/squid/errors/Ukrainian-1251
      icon_directory /usr/local/etc/squid/icons
      visible_hostname localhost
      cache_mgr admin@xxx.xxx
      access_log /var/squid/logs/access.log
      cache_log /var/squid/logs/cache.log
      cache_store_log none
      logfile_rotate 0
      shutdown_lifetime 3 seconds

      Allow local network(s) on interface(s)

      acl localnet src  192.168.0.0/255.255.255.0 192.168.71.0/255.255.255.0
      uri_whitespace strip

      cache_mem 2000 MB
      maximum_object_size_in_memory 32 KB
      memory_replacement_policy heap GDSF
      cache_replacement_policy heap LFUDA
      cache_dir ufs /var/squid/cache 10000 16 256
      minimum_object_size 0 KB
      maximum_object_size 4 KB
      offline_mode off
      cache_swap_low 90
      cache_swap_high 95

      No redirector configured

      Setup some default acls

      acl all src 0.0.0.0/0.0.0.0
      acl localhost src 127.0.0.1/255.255.255.255
      acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
      acl sslports port 443 563 81
      acl manager proto cache_object
      acl purge method PURGE
      acl connect method CONNECT
      acl dynamic urlpath_regex cgi-bin ?
      cache deny dynamic
      http_access allow manager localhost

      Allow external cache managers

      acl ext_manager_1 src 127.0.0.1
      http_access allow manager ext_manager_1
      acl ext_manager_2 src 192.168.0.241
      http_access allow manager ext_manager_2
      acl ext_manager_3 src 192.168.71.7
      http_access allow manager ext_manager_3

      http_access deny manager
      http_access allow purge localhost
      http_access deny purge
      http_access deny !safeports
      http_access deny CONNECT !sslports

      Always allow localhost connections

      http_access allow localhost

      request_body_max_size 0 KB
      reply_body_max_size 0 deny all
      delay_pools 1
      delay_class 1 2
      delay_parameters 1 -1/-1 -1/-1
      delay_initial_bucket_level 100
      delay_access 1 allow all

      Custom options

      redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf
      redirector_bypass off
      url_rewrite_children 5

      Setup allowed acls

      Allow local network(s) on interface(s)

      http_access allow localnet

      Default block all to be sure

      http_access deny all

      еще смущает

      php: : SQUID is installed but not started. Not installing "nat" rules.
      php: : SQUID is installed but not started. Not installing "pfearly" rules.
      php: : SQUID is installed but not started. Not installing "filter" rules.

      хотя в сервисах сквид запущен

      1 Reply Last reply Reply Quote 0
      • R
        randreevich
        last edited by

        …..так и думал - удалил ранее установленный днс сервер и усЁ упорядку.

        1 Reply Last reply Reply Quote 0
        • F
          fil23
          last edited by

          У меня такое было , пришлось в настройках squid из описания Custom Options  удалить все строки. Помогло.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.