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

    SQUID Запрошенный URL не может быть получен

    Russian
    1
    2
    1.8k
    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.
    • I
      IStandAlone
      last edited by

      Добрый день. Вчера переносил pfSense на другое железо. Установлен сквид и сквидгвард в связке. Доступ в инет только после ввода логина. Имеются исключения в виде статических адресов, которые ходят мимо прокси в инет.
      Возникла проблема с доступом в инет юзеров, которые авторизовываются. После ввода логина и пароля появляется ошибка "Запрошенный URL не может быть получен". Те, кто ходит миом по статике- у них все работает. Помогите пожалуйста понять, где проблема и как ее исправить? Вопрос очень срочный и острый, буду очень благодарен за своевременную помощь в решении данной проблемы. Вот конфиг сквида:

      http_port 172.16.100.2:3128
      icp_port 0
      digest_generation off
      dns_v4_first off
      pid_filename /var/run/squid/squid.pid
      cache_effective_user squid
      cache_effective_group proxy
      error_default_language af
      icon_directory /usr/local/etc/squid/icons
      visible_hostname localhost
      access_log /var/squid/logs/access.log
      cache_log /var/squid/logs/cache.log
      cache_store_log none
      netdb_filename /var/squid/logs/netdb.state
      pinger_enable off
      pinger_program /usr/local/libexec/squid/pinger

      logfile_rotate 30
      debug_options rotate=30
      shutdown_lifetime 3 seconds

      Allow local network(s) on interface(s)

      acl localnet src 172.16.100.0/24
      forwarded_for on
      uri_whitespace strip

      acl dynamic urlpath_regex cgi-bin ?
      cache deny dynamic

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

      Add any of your own refresh_pattern entries above these.

      refresh_pattern ^ftp: 1440 20% 10080
      refresh_pattern ^gopher: 1440 0% 1440
      refresh_pattern -i (/cgi-bin/|?) 0 0% 0
      refresh_pattern . 0 20% 4320

      #Remote proxies

      Setup some default acls

      ACLs all, manager, localhost, and to_localhost are predefined.

      acl allsrc src all
      acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 3128 3129 1025-65535
      acl sslports port 443 563

      acl purge method PURGE
      acl connect method CONNECT

      Define protocols used for redirects

      acl HTTP proto HTTP
      acl HTTPS proto HTTPS
      acl banned_hosts src "/var/squid/acl/banned_hosts.acl"
      acl whitelist dstdom_regex -i "/var/squid/acl/whitelist.acl"
      acl sslwhitelist ssl::server_name_regex -i "/var/squid/acl/whitelist.acl"
      http_access allow manager localhost

      Allow external cache managers

      acl ext_manager src 127.0.0.1
      http_access allow manager ext_manager

      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
      delay_pools 1
      delay_class 1 2
      delay_parameters 1 -1/-1 -1/-1
      delay_initial_bucket_level 100
      delay_access 1 allow allsrc

      Reverse Proxy settings

      Package Integration

      url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard/squidGuard.conf
      url_rewrite_bypass off
      url_rewrite_children 16 startup=8 idle=4 concurrency=0

      Custom options before auth

      These hosts are banned

      http_access deny banned_hosts

      Always allow access to whitelist domains

      http_access allow whitelist
      auth_param basic program /usr/local/libexec/squid/basic_ncsa_auth /var/etc/squid.passwd
      auth_param basic children 5
      auth_param basic realm Please enter your credentials to access the proxy
      auth_param basic credentialsttl 5 minutes
      acl password proxy_auth REQUIRED
      authenticate_ip_ttl 5 minute

      Custom options after auth

      http_access allow password localnet

      Default block all to be sure

      http_access deny allsrc

      I 1 Reply Last reply Reply Quote 0
      • I
        IStandAlone @IStandAlone
        last edited by

        С проблемой разобрался. Нужно было добавить соответствующие подсети во вкладку ACLs. Проблема решена

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