Update sing_box_config_manager.sh fix dns hijack#334
Open
mrFallon wants to merge 1 commit into
Open
Conversation
Fixed a conflict with dnsmasq caused by multiple listeners on UDP port 53.
Owner
|
Странная проблема и ещё более странное решение этой проблемы. Но ок, давайте начнём с этого Давайте конфиг /etc/config/podkop |
Author
|
переименовал в тхт, добавил также список под роуты и что выходитв json без патча |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Исправил проблему совместного использования с dnsmasq
схема подключения:
client->dnsmasq->sing-box (127.0.0.42)->dnsproxy(127.0.0.55)->DoT
При большой нагрузке sing-box открывает множество прослушиваний на udp 53 из-за этого dnsmasq перестает отвечать на запросы. Хорошо проявляется, если добавить много подсетей podkop_subnets
пример указан в конце
Описание изменений
При генерации конфига singbox в секцию "hijack-dns" добавил принудительно использовать только входящий интерфейс
inbound: "dns-in"
Что изменено
Fixed a conflict with dnsmasq caused by multiple listeners on UDP port 53.
root@Vostok2:~# netstat -lnup 2>/dev/null | grep ':53 '
udp 0 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 4352 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 13056 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 13056 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 4352 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 15616 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 0 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 131584 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 160000 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 96512 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 110080 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 96512 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 63744 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 104448 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 62464 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 101376 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 101632 0 10.100.100.1:53 0.0.0.0:* 26136/sing-box
udp 0 0 127.0.0.42:53 0.0.0.0:* 26136/sing-box
udp 0 0 127.0.0.1:53 0.0.0.0:* 16711/dnsmasq
udp 0 0 10.100.100.1:53 0.0.0.0:* 16711/dnsmasq
udp 0 0 10.0.0.1:53 0.0.0.0:* 16711/dnsmasq
udp 0 0 192.168.10.1:53 0.0.0.0:* 16711/dnsmasq
udp 0 0 10.0.10.1:53 0.0.0.0:* 16711/dnsmasq
udp 0 0 10.0.20.1:53 0.0.0.0:* 16711/dnsmasq
udp 0 0 127.0.0.55:53 0.0.0.0:* 5062/dnsproxy
udp 0 0 ::1:53 :::* 16711/dnsmasq
udp 0 0 fc00::10:0:0:1:53 :::* 16711/dnsmasq
udp 0 0 fe80::4071:daff:fe53:ef81:53 :::* 16711/dnsmasq
udp 0 0 fe80::df25:6eec:d2c3:1a22:53 :::* 16711/dnsmasq
udp 0 0 fe80::430b:9d7:18a7:1536:53 :::* 16711/dnsmasq