AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
24.43k stars 1.77k forks source link

Allow AdGuard Home to listen to multiple ports #1206

Open ameshkov opened 4 years ago

ameshkov commented 4 years ago

Problem Description

The feature was requested here: https://github.com/AdguardTeam/AdGuardHome/issues/1200

Proposed Solution

Allow configuring multiple listening ports in the interface

Alternatives Considered

Configuring port forwarding in the system

snakwu commented 4 years ago

希望可以加进这个功能,多个端口监听

04bondgoods commented 2 years ago

Port forwarding is not a perfect solution. For example if you set in windows (running AGH server): netsh interface portproxy add v4tov4 listenport=1234 listenaddress=10.1.1.110 connectport=1235 connectaddress=10.1.1.110 and in query log the client's source IP will be 10.1.1.110 instead of an external address.

wxbit commented 1 year ago

I deploy AGH behide a udp proxy, plain udp dns query can't be identified. Support for multiple ports is required to identify the clients, please consider raising the priority.

wxbit commented 1 year ago

@ameshkov 希望支持监听多个端口,并且能够使用端口标识客户端

DFP86 commented 5 months ago

我现在是mosdns部署在前,ADG在后,mosdns分流成A和B流量(想同时过滤,和查看请求),结果发现ADG只能吃一个端口。。。

貌似如果要能同时处理A和B流量,要么adg在前,要么要装2个adg。。。

menghuu commented 2 months ago

@DFP86 adguardhome 在前有什么坏处吗?不挺好的吗,还能在一个界面中处理屏蔽信息。如果adguardhome实现了监听不同的端口,也大概率不会实现不同的端口上游dns不同,还是完不成你想要的效果。

DFP86 commented 2 months ago

@DFP86 adguardhome 在前有什么坏处吗?不挺好的吗,还能在一个界面中处理屏蔽信息。如果adguardhome实现了监听不同的端口,也大概率不会实现不同的端口上游dns不同,还是完不成你想要的效果。

其实是想实现mosdns分流之后,应用不同的拦截规则(例如 内 和 外)。现在只能把ADG放在最前统一过滤了。