Jump to content
vasek00

nextdns для Entware

Recommended Posts

49 минут назад, vasek00 сказал:

Возможно ли собрать nextdns для Entware

https://github.com/nextdns/nextdns/wiki/OpenWRT

https://github.com/nextdns/nextdns/wiki



 

По вашей ссылке

    Entware (WIP)

Так что просто подождать.

Share this post


Link to post
Share on other sites

Вот Makefile - https://github.com/Entware/graveyard/tree/master/nextdns
nextdns собирается (под arm).

Когда/если ответственные за mips* соберут пакет - за Вами тестирование и инструкция.

Если есть связь с автором - напишимте ему, что неплохо бы добавить пару строк в wiki - как собирать приложение.

Share this post


Link to post
Share on other sites
2 часа назад, zyxmon сказал:

Вот Makefile - https://github.com/Entware/graveyard/tree/master/nextdns
nextdns собирается (под arm).

Когда/если ответственные за mips* соберут пакет - за Вами тестирование и инструкция.

Если есть связь с автором - напишимте ему, что неплохо бы добавить пару строк в wiki - как собирать приложение.

Связи нет, но попробую написать автору.

Share this post


Link to post
Share on other sites

Собран и находится в основном репозитории. 

opkg install nextdns

Обратная связь и/или скрипт запуска приветствуются. 

Share this post


Link to post
Share on other sites

Установлено, но не запускается. Логов никаких нет. 

./nextdns run - что-то запускается и даже биндит 53 порт, но после вообще ничего не резолвится, из init.d сразу failed.

./nextdns log
Error: not supported

./nextdns run
INFO: 22:08:00 Starting NextDNS dev/linux on localhost:53
INFO: 22:08:00 Listening on TCP/[::1]:53
INFO: 22:08:00 Listening on TCP/127.0.0.1:53
INFO: 22:08:00 Listening on UDP/127.0.0.1:53
INFO: 22:08:00 Listening on UDP/[::1]:53


 

Share this post


Link to post
Share on other sites

Еще хочет доступ 

ERROR: 22:36:50 Activate: setup resolv.conf: write /etc/resolv.conf.nextdns-tmp: open /etc/resolv.conf.nextdns-tmp: read-only file system

nextdns trace

Скрытый текст

goroutine 20 [running]:
main.run.func4(0x0, 0x0, 0x1019030, 0x5)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/run.go:177 +0x7c
github.com/nextdns/nextdns/ctl.(*Server).handle(0x1014200, 0x4cac60, 0x12161b0, 0x1019030, 0x5, 0x0, 0x0, 0x0)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/ctl/server.go:125 +0x12c
github.com/nextdns/nextdns/ctl.(*Server).handleEvents(0x1014200, 0x4cac60, 0x12161b0)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/ctl/server.go:114 +0x17c
created by github.com/nextdns/nextdns/ctl.(*Server).run
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/ctl/server.go:85 +0xbc

goroutine 1 [chan receive]:
github.com/nextdns/nextdns/host/service.runForeground(0x4c8a90, 0x1066a80, 0x0, 0x0)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/host/service/run.go:29 +0x124
github.com/nextdns/nextdns/host/service.Run(0x44da2e, 0x7, 0x4c8a90, 0x1066a80, 0x1, 0x1216028)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/host/service/run.go:17 +0x90
main.run(0x1014110, 0x7, 0x6, 0x0, 0x0)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/run.go:374 +0xa70
main.main()
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/main.go:70 +0x1cc

goroutine 4 [IO wait]:
internal/poll.runtime_pollWait(0x6f210050, 0x72, 0x0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/runtime/netpoll.go:220 +0x60
internal/poll.(*pollDesc).wait(0x1076294, 0x72, 0x0, 0x0, 0x44d8ec)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:87 +0x50
internal/poll.(*pollDesc).waitRead(...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0x1076280, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_unix.go:394 +0x210
net.(*netFD).accept(0x1076280, 0x12161b0, 0x0, 0x5a2c8)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/fd_unix.go:172 +0x40
net.(*UnixListener).accept(0x1064e00, 0x10347cc, 0x10347d0, 0xc)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/unixsock_posix.go:162 +0x40
net.(*UnixListener).Accept(0x1064e00, 0x46c95c, 0x1014200, 0x4cac60, 0x12161b0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/unixsock.go:260 +0x80
github.com/nextdns/nextdns/ctl.(*Server).run(0x1014200, 0x4c8ad0, 0x1064e00)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/ctl/server.go:80 +0x44
created by github.com/nextdns/nextdns/ctl.(*Server).Start
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/ctl/server.go:52 +0xd8

goroutine 51 [syscall]:
os/signal.signal_recv(0x0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/runtime/sigqueue.go:147 +0x118
os/signal.loop()
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/os/signal/signal_unix.go:23 +0x34
created by os/signal.Notify.func1.1
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/os/signal/signal.go:150 +0x5c

goroutine 34 [chan receive]:
main.run.func21(0x4c9240, 0x120c120)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/run.go:364 +0x98
created by main.(*proxySvc).start.func1
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/run.go:94 +0x160

goroutine 33 [chan receive]:
github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe(0x7faed42e, 0xf, 0x4c8250, 0x120a0f0, 0x4c55b0, 0x1222060, 0x0, 0x0, 0x1, 0x2a05f200, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/proxy.go:133 +0x35c
main.(*proxySvc).start.func1(0x1216050, 0x1066a80, 0x1216048, 0x121a080)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/run.go:96 +0x1e4
created by main.(*proxySvc).start
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/run.go:88 +0xb8

goroutine 49 [select]:
github.com/nextdns/nextdns/netstatus.startChecker()
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/netstatus/netstatus.go:73 +0x174
created by github.com/nextdns/nextdns/netstatus.Notify
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/netstatus/netstatus.go:35 +0x1c0

goroutine 35 [IO wait]:
internal/poll.runtime_pollWait(0x6f20ff28, 0x72, 0x20)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/runtime/netpoll.go:220 +0x60
internal/poll.(*pollDesc).wait(0x10762e4, 0x72, 0xff00, 0xffff, 0x101c300)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:87 +0x50
internal/poll.(*pollDesc).waitRead(...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).ReadMsg(0x10762d0, 0x1158000, 0xffff, 0xffff, 0x101c300, 0x20, 0x20, 0x0, 0x0, 0x0, ...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_unix.go:242 +0x1e4
net.(*netFD).readMsg(0x10762d0, 0x1158000, 0xffff, 0xffff, 0x101c300, 0x20, 0x20, 0x112a200, 0x200, 0x200, ...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/fd_posix.go:67 +0x70
net.(*UDPConn).readMsg(0x100c8b0, 0x1158000, 0xffff, 0xffff, 0x101c300, 0x20, 0x20, 0x77396088, 0x0, 0x1038240, ...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/udpsock_posix.go:59 +0x70
net.(*UDPConn).ReadMsgUDP(0x100c8b0, 0x1158000, 0xffff, 0xffff, 0x101c300, 0x20, 0x20, 0x1158000, 0x100a390, 0x3a3dc8, ...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/udpsock.go:139 +0x78
github.com/nextdns/nextdns/proxy.readUDP(0x100c8b0, 0x1158000, 0xffff, 0xffff, 0x1065060, 0x0, 0x0, 0x1, 0x0, 0x44d4f0, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/udp.go:137 +0xa0
github.com/nextdns/nextdns/proxy.Proxy.serveUDP(0x7faed42e, 0xf, 0x4c8250, 0x120a0f0, 0x4c55b0, 0x1222060, 0x0, 0x0, 0x1, 0x2a05f200, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/udp.go:62 +0x14c
github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe.func1(0x7faed42e, 0xf, 0x4c8250, 0x120a0f0, 0x4c55b0, 0x1222060, 0x0, 0x0, 0x1, 0x2a05f200, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/proxy.go:108 +0x2b0
created by github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/proxy.go:102 +0x298

goroutine 36 [IO wait]:
internal/poll.runtime_pollWait(0x6f20ffbc, 0x72, 0x0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/runtime/netpoll.go:220 +0x60
internal/poll.(*pollDesc).wait(0x10a4014, 0x72, 0x0, 0x0, 0x44d8ec)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:87 +0x50
internal/poll.(*pollDesc).waitRead(...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0x10a4000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_unix.go:394 +0x210
net.(*netFD).accept(0x10a4000, 0x44d4f0, 0x773963ec, 0x0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/fd_unix.go:172 +0x40
net.(*TCPListener).accept(0x1096010, 0x3a34e8, 0x20, 0x42a9a0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/tcpsock_posix.go:139 +0x40
net.(*TCPListener).Accept(0x1096010, 0x10a2060, 0x1080000, 0x0, 0x773963ec)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/tcpsock.go:261 +0x80
github.com/nextdns/nextdns/proxy.Proxy.serveTCP(0x7faed42e, 0xf, 0x4c8250, 0x120a0f0, 0x4c55b0, 0x1222060, 0x0, 0x0, 0x1, 0x2a05f200, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/tcp.go:29 +0x6c
github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe.func2(0x7faed42e, 0xf, 0x4c8250, 0x120a0f0, 0x4c55b0, 0x1222060, 0x0, 0x0, 0x1, 0x2a05f200, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/proxy.go:123 +0x2b0
created by github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/proxy.go:117 +0x314

goroutine 37 [IO wait]:
internal/poll.runtime_pollWait(0x6f20fe00, 0x72, 0x20)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/runtime/netpoll.go:220 +0x60
internal/poll.(*pollDesc).wait(0x12201a4, 0x72, 0xff00, 0xffff, 0x1210180)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:87 +0x50
internal/poll.(*pollDesc).waitRead(...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).ReadMsg(0x1220190, 0x123a000, 0xffff, 0xffff, 0x1210180, 0x20, 0x20, 0x0, 0x0, 0x0, ...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_unix.go:242 +0x1e4
net.(*netFD).readMsg(0x1220190, 0x123a000, 0xffff, 0xffff, 0x1210180, 0x20, 0x20, 0x0, 0x0, 0x0, ...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/fd_posix.go:67 +0x70
net.(*UDPConn).readMsg(0x12160d8, 0x123a000, 0xffff, 0xffff, 0x1210180, 0x20, 0x20, 0x77396750, 0x0, 0x6b0820, ...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/udpsock_posix.go:59 +0x70
net.(*UDPConn).ReadMsgUDP(0x12160d8, 0x123a000, 0xffff, 0xffff, 0x1210180, 0x20, 0x20, 0x123a000, 0x120a1f0, 0x3a3dc8, ...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/udpsock.go:139 +0x78
github.com/nextdns/nextdns/proxy.readUDP(0x12160d8, 0x123a000, 0xffff, 0xffff, 0x120c240, 0x0, 0x0, 0x1, 0x0, 0x44d4f0, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/udp.go:137 +0xa0
github.com/nextdns/nextdns/proxy.Proxy.serveUDP(0x7faed42e, 0xf, 0x4c8250, 0x120a0f0, 0x4c55b0, 0x1222060, 0x0, 0x0, 0x1, 0x2a05f200, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/udp.go:62 +0x14c
github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe.func1(0x7faed42e, 0xf, 0x4c8250, 0x120a0f0, 0x4c55b0, 0x1222060, 0x0, 0x0, 0x1, 0x2a05f200, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/proxy.go:108 +0x2b0
created by github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/proxy.go:102 +0x298

goroutine 38 [IO wait]:
internal/poll.runtime_pollWait(0x6f20fe94, 0x72, 0x0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/runtime/netpoll.go:220 +0x60
internal/poll.(*pollDesc).wait(0x12201f4, 0x72, 0x0, 0x0, 0x44d8ec)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:87 +0x50
internal/poll.(*pollDesc).waitRead(...)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0x12201e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/internal/poll/fd_unix.go:394 +0x210
net.(*netFD).accept(0x12201e0, 0x44d4f0, 0x77396750, 0x0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/fd_unix.go:172 +0x40
net.(*TCPListener).accept(0x120a200, 0x3a34e8, 0x20, 0x42a9a0)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/tcpsock_posix.go:139 +0x40
net.(*TCPListener).Accept(0x120a200, 0x120c340, 0x0, 0x0, 0xc)
	/home/ryzhovau/Entware.mipsel/staging_dir/host/go/src/net/tcpsock.go:261 +0x80
github.com/nextdns/nextdns/proxy.Proxy.serveTCP(0x7faed42e, 0xf, 0x4c8250, 0x120a0f0, 0x4c55b0, 0x1222060, 0x0, 0x0, 0x1, 0x2a05f200, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/tcp.go:29 +0x6c
github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe.func2(0x7faed42e, 0xf, 0x4c8250, 0x120a0f0, 0x4c55b0, 0x1222060, 0x0, 0x0, 0x1, 0x2a05f200, ...)
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/proxy.go:123 +0x2b0
created by github.com/nextdns/nextdns/proxy.Proxy.ListenAndServe
	/home/ryzhovau/Entware.mipsel/build_dir/target-mipsel_mips32r2_glibc-2.27/nextdns-hf/nextdns-v1.7.1/src/github.com/nextdns/nextdns/proxy/proxy.go:117 +0x314

 

 

Edited by snark

Share this post


Link to post
Share on other sites

Решил попробовать. После установки

/opt/etc/init.d # nextdns start
/opt/etc/init.d # 
Тишина

После правки S09nextdns поля 
ARGS="run"

стал и запускаться и останавливаться 
/opt/etc/init.d # ./S09nextdns start
 Starting nextdns...              done. 
/opt/etc/init.d # ps
  
12312 root      653m S    nextdns run

/opt/etc/init.d # ./S09nextdns stop
 Checking nextdns...              alive. 
 Shutting down nextdns...              done. 
/opt/etc/init.d # ps
  PID USER       VSZ STAT COMMAND
  ...
/opt/etc/init.d # 

По умолчанию создается конф файл /opt/etc/nextdns.conf. Но можно как бы менять конфигурацию

/opt/etc/init.d # nextdns install
NextDNS installed and started using entware init
/opt/etc/init.d # 

/opt/etc/init.d/S09nextdns

setup-router false
auto-activate false
log-queries false
max-ttl 0s
report-client-info false
detect-captive-portals false
timeout 5s
control /var/run/nextdns.sock
discovery-dns 
bogus-priv true
use-hosts true
listen localhost:53
cache-max-age 0s
cache-size 0
hardened-privacy false

Для роутера в качестве сервера

/opt/etc # nextdns install -config f......3 -report-client-info -setup-router
NextDNS installed and started using entware init
/opt/etc #
  
где 
f.......3 - config id согласно регистрации на сайте nextdns
setup-router - для роутера 
  

Или

/opt/etc # nextdns install -setup-router
NextDNS installed and started using entware init
/opt/etc # 


cache-max-age 0s
max-ttl 0s
bogus-priv true
listen localhost:53
log-queries false
report-client-info false
setup-router true
auto-activate false
cache-size 0
discovery-dns 
detect-captive-portals false
hardened-privacy false
timeout 5s
control /var/run/nextdns.sock
use-hosts true

Или опять же править конф файл ручками, меняя значение false на true

При конфиге

cache-max-age 0s
max-ttl 0s
bogus-priv true
listen localhost:53
log-queries false
report-client-info false
setup-router true
auto-activate false
cache-size 0
discovery-dns 
detect-captive-portals false
hardened-privacy false
timeout 5s
control /var/run/nextdns.sock
use-hosts true


/opt/etc/init.d # netstat -ntulp | grep nextdns
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      13293/nextdns
tcp        0      0 ::1:53                  :::*                    LISTEN      13293/nextdns
udp        0      0 127.0.0.1:53            0.0.0.0:*                           13293/nextdns
udp        0      0 ::1:53                  :::*                                13293/nextdns
/opt/etc/init.d # ping ixbt.ru
PING ixbt.ru (81.19.72.52): 56 data bytes
64 bytes from 81.19.72.52: seq=0 ttl=57 time=25.345 ms
64 bytes from 81.19.72.52: seq=1 ttl=57 time=25.380 ms
64 bytes from 81.19.72.52: seq=2 ttl=57 time=25.295 ms
^C
--- ixbt.ru ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 25.295/25.340/25.380 ms
/opt/etc/init.d # 

На клиенте тишина, так как на нем IP адрес роутера 192.168.1.1 и при включенной "opkg dns-override"

При смене listen на listen 192.168.1.1:53 результат не дало.

/opt/etc/init.d # netstat -ntulp | grep nextdns
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      14088/nextdns
tcp        0      0 ::1:53                  :::*                    LISTEN      14088/nextdns
udp        0      0 127.0.0.1:53            0.0.0.0:*                           14088/nextdns
udp        0      0 ::1:53                  :::*                                14088/nextdns
/opt/etc/init.d # 

 

В отличие например от AdGuardHome

/opt/etc/init.d # netstat -ntulp | grep Ad
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 192.168.1.1:8589    0.0.0.0:*               LISTEN      14769/AdGuardHome
tcp        0      0 :::53                   :::*                    LISTEN      14769/AdGuardHome
udp        0      0 :::53                   :::*                                14769/AdGuardHome
/opt/etc/init.d #

 

Edited by vasek00
  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...