イカでインターネットが起動しない

イカでインターネットが起動しない

イカ6.2をインストールしました。 SSLを使用してソースからビルドしました。サービスが正常に開始されます。ネットワークカードが2枚あります。 1つはローカルネットワークを見て、もう1つはインターネットを見ます。設定ファイルを設定するには、インターネットの設定マニュアルを使用しています。 sudo squid -k reconfigureおよびsudo squid -kコマンドを実行した後、出力は次のようになります。

  2024/04/09 22:08:41| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2024/04/09 22:08:41| Processing: acl localnet src 0.0.0.1-0.255.255.255 # RFC 1122 "this" network (LAN)
2024/04/09 22:08:41| Processing: acl localnet src 10.0.0.0/8            # RFC 1918 local private network (LAN)
2024/04/09 22:08:41| Processing: acl localnet src 100.64.0.0/10         # RFC 6598 shared address space (CGN)
2024/04/09 22:08:41| Processing: acl localnet src 169.254.0.0/16        # RFC 3927 link-local (directly plugged) machines
2024/04/09 22:08:41| Processing: acl localnet src 172.16.0.0/12         # RFC 1918 local private network (LAN)
2024/04/09 22:08:41| Processing: acl localnet src 192.168.0.0/24               # RFC 1918 local private network (LAN)
2024/04/09 22:08:41| Processing: acl localnet src fc00::/7              # RFC 4193 local private network range
2024/04/09 22:08:41| Processing: acl localnet src fe80::/10             # RFC 4291 link-local (directly plugged) machines
2024/04/09 22:08:41| Processing: acl SSL_ports port 443
2024/04/09 22:08:41| Processing: acl Safe_ports port 80         # http
2024/04/09 22:08:41| Processing: acl Safe_ports port 21         # ftp
2024/04/09 22:08:41| Processing: acl Safe_ports port 443                # https
2024/04/09 22:08:41| Processing: acl Safe_ports port 70         # gopher
2024/04/09 22:08:41| Processing: acl Safe_ports port 210                # wais
2024/04/09 22:08:41| Processing: acl Safe_ports port 1025-65535 # unregistered ports
2024/04/09 22:08:41| Processing: acl Safe_ports port 280                # http-mgmt
2024/04/09 22:08:41| Processing: acl Safe_ports port 488                # gss-http
2024/04/09 22:08:41| Processing: acl Safe_ports port 591                # filemaker
2024/04/09 22:08:41| Processing: acl Safe_ports port 777                # multiling http
2024/04/09 22:08:41| Processing: http_access deny !Safe_ports
2024/04/09 22:08:41| Processing: http_access deny CONNECT !SSL_ports
2024/04/09 22:08:41| Processing: http_access allow localhost manager
2024/04/09 22:08:41| Processing: http_access deny manager
2024/04/09 22:08:41| Processing: include /etc/squid/conf.d/*.conf
2024/04/09 22:08:41| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1)
2024/04/09 22:08:41| Processing: logfile_rotate 0
2024/04/09 22:08:41| Processing: http_access allow localhost
2024/04/09 22:08:41| Processing: http_access allow localnet
2024/04/09 22:08:41| Processing: http_access allow all
2024/04/09 22:08:41| Processing: http_port 3130
2024/04/09 22:08:41| Processing: https_port 192.168.0.110:3129 intercept ssl-bump cert=/etc/squid/squidCA.pem generate-host-certificates=on dynamic_cert_mem_cache_size=4MB
2024/04/09 22:08:41| Starting Authentication on port 192.168.0.110:3129
2024/04/09 22:08:41| Disabling Authentication on port 192.168.0.110:3129 (interception enabled)
2024/04/09 22:08:41| Processing: http_port 192.168.0.110:3128 intercept
2024/04/09 22:08:41| Starting Authentication on port 192.168.0.110:3128
2024/04/09 22:08:41| Disabling Authentication on port 192.168.0.110:3128 (interception enabled)
2024/04/09 22:08:41| Processing: sslcrtd_program /usr/lib/squid/security_file_certgen -s /var/lib/squid/ssl_db -M 4MB
2024/04/09 22:08:41| Processing: acl step1 at_step SslBump1
2024/04/09 22:08:41| Processing: ssl_bump peek step1
2024/04/09 22:08:41| Processing: ssl_bump bump all
2024/04/09 22:08:41| Processing: ssl_bump splice all
2024/04/09 22:08:41| Processing: coredump_dir /var/spool/squid
2024/04/09 22:08:41| Processing: refresh_pattern ^ftp:          1440    20%    10080
2024/04/09 22:08:41| Processing: refresh_pattern ^gopher:       1440    0%     1440
2024/04/09 22:08:41| Processing: refresh_pattern -i (/cgi-bin/|\?) 0    0%     0
2024/04/09 22:08:41| Processing: refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
2024/04/09 22:08:41| Processing: refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims
2024/04/09 22:08:41| Processing: refresh_pattern \/InRelease$ 0 0% 0 refresh-ims
2024/04/09 22:08:41| Processing: refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
2024/04/09 22:08:41| Processing: refresh_pattern .              0       20%    4320
2024/04/09 22:08:41| Requiring client certificates.
2024/04/09 22:08:41| Loaded signing certificate: /C=RU/ST=Moscow/L=Moscow/O=Internet Widgits Pty Ltd
2024/04/09 22:08:41| Not requiring any client certificates

sudo squid -k コマンドを使用した再構成

2024/04/09 22:09:41| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2024/04/09 22:09:41| Processing Configuration File: /etc/squid/conf.d/debian.conf (depth 1)
2024/04/09 22:09:41| Starting Authentication on port 192.168.0.110:3129
2024/04/09 22:09:41| Disabling Authentication on port 192.168.0.110:3129 (interception enabled)
2024/04/09 22:09:41| Starting Authentication on port 192.168.0.110:3128
2024/04/09 22:09:41| Disabling Authentication on port 192.168.0.110:3128 (interception enabled)
2024/04/09 22:09:41| ERROR: cannot change current directory to /var/spool/squid: (2) No such file or directory
2024/04/09 22:09:41| Current Directory is /home/nicolay
2024/04/09 22:09:41| FATAL: failed to open /var/run/squid.pid: (2) No such file or directory
    exception location: File.cc(191) open

すべての証明書が生成されました。パスのスペルが正確です。 https経由のインターネットはクライアントコンピュータでは機能しません。 pingが来ています。 iptablesには、PREROUTINGとINPUTで443から3129、80から3128までのポート転送ルールがあります。イカ、構成

acl localnet src 0.0.0.1-0.255.255.255  # RFC 1122 "this" network (LAN)
acl localnet src 10.0.0.0/8             # RFC 1918 local private network (LAN)
acl localnet src 100.64.0.0/10          # RFC 6598 shared address space (CGN)
acl localnet src 169.254.0.0/16         # RFC 3927 link-local (directly plugged) machines
acl localnet src 172.16.0.0/12          # RFC 1918 local private network (LAN)
acl localnet src 192.168.0.0/24         # RFC 1918 local private network (LAN)
acl localnet src fc00::/7               # RFC 4193 local private network range
acl localnet src fe80::/10              # RFC 4291 link-local (directly plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # 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

http_port 3130
https_port 192.168.0.110:3129 intercept ssl-bump cert=/etc/squid/squidCA.pem generate-host-certificates=on dynamic_cert_mem_cache_size=4MB
http_port 192.168.0.110:3128 intercept

sslcrtd_program /usr/lib/squid/security_file_certgen -s /var/lib/squid/ssl_db -M 4MB

acl step1 at_step SslBump1

ssl_bump peek step1
ssl_bump bump all

ssl_bump splice all

助けてください。私はLinuxに初めて触れました。 Squida ログとキャッシュを読み込めません。インターネット上の情報はすべて異なりますが、役に立ちません。キャッシュを消去したり、piファイルを手動で生成するなどの操作は役に立ちませんでした。 Squid 5.7をインストールすると、リポジトリからインターネットを取得できますが、httpプロトコルを使用します。構成は同じです。 Squid 5.7が私のコンピュータでコンパイルされたくないので、Squid 6.2をインストールする必要がありました。私はこれがソースコードに関連していると思います。マシンはUbuntu Server 22.04にあります。仮想マシンで使用しています。

ベストアンサー1

私は次の決定を下すのに役立ちました。コマンドでイカを正常にインストールしました。

sudo apt install squid-openssl

リポジトリを更新する前に。ソースから組み立てられていないSquid 5.7がインストールされているパッケージ。 Squid 5.7の設定が正常に完了しました。たぶんソースが悪いかもしれません。 SSLを含むSquid 5.7用のdebパッケージがあるかどうかわかりません。スティーブン・ジッターの成功に感謝します。

おすすめ記事