為什麼squid(代理伺服器)監聽48512埠?

為什麼squid(代理伺服器)監聽48512埠?

我剛剛在我的 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)

我知道它預設監聽連接埠 3128,可以透過以下方式更改:/etc/squid/squid.conf

但連接埠 48512 未在任何地方列出。如何設定squid不監聽連接埠48512?


另外,當我在連接埠 48512 上進行谷歌搜尋時,它說它是一個木馬。

答案1

來自魷魚配置指令:

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.

看起來它是用於內部dns,這是squid有效管理DNS查詢的機制。

相關內容