Jump to content
  • 1

ipset-dns для прошивочного ndnproxy


vasek00

Question

В Entware есть - ipset-dns с командой запуска например

ipset-dns ipv4-youtube ipv6-youtube 39128 8.8.8.8

25521 root      1928 S    ipset-dns youtube youtube 39128 8.8.8.8

netstat -ntulp | grep dns
udp        0      0 127.0.0.1:39128         0.0.0.0:*                           25521/ipset-dns

где 
listening-port = 39128, но можно и 53  
upstream-dns-server = 8.8.8.8 но можно и например "dns_server = 127.0.0.1:40508 # https://dns.google/dns-query@dnsm" 

https://git.zx2c4.com/ipset-dns/about/

https://github.gitop.top/mschorsch/ipset-dns-rs

Возможно ли прикрутить к встроенному dns-proxy команду/опцию для запуска при которой будет создаваться ipset таблица для последующего ее использования (имеем список - aaaaa.com, aaa1.com, aaab.ru и т.д.). Далее на основание данных полученных на основание этого списка пере направление его на нужный интерфейс или для блокировки сайтов согласно данного списка.

т.е. в итоге страница настройки или тот же cli для dns-proxy (опция для запуска + список сайтов/доменов) и использование данного списка в сетевых правилах т.е. типа iptables .... --match-set ipv4-youtube .....

Edited by vasek00
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
Answer this question...

×   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...