为什么squid(代理服务器)监听48512端口?

Ton*_*Nam 3 security squid

我刚刚在我的 ubuntu 机器 ( sudo apt-get install squid3) 上安装了鱿鱼,安装后我注意到它监听端口 48512。

$ netstat -tulpn | grep squid
tcp        0      0 0.0.0.0:3128            0.0.0.0:*               LISTEN      44365/(squid-1)
udp        0      0 0.0.0.0:48512           0.0.0.0:*                           44365/(squid-1)
Run Code Online (Sandbox Code Playgroud)

我知道它默认监听端口 3128,可以通过以下方式更改:/etc/squid/squid.conf

但端口 48512 未在任何地方列出。如何配置squid不监听端口48512?


另外,当我在端口 48512 上进行谷歌搜索时,它说它是一个木马。

Dan*_*ner 5

来自鱿鱼配置指令:

udp_incoming_address    is used for UDP packets received from other
            caches.

The default behavior is to not bind to any specific address.

Only change this if you want to have all UDP queries received on
a specific interface/address.

NOTE: udp_incoming_address is used by the ICP, HTCP, and DNS
modules. Altering it will affect all of them in the same manner.
Run Code Online (Sandbox Code Playgroud)

看起来它是用于内部dns,这是squid有效管理DNS查询的一种机制。