Coder Social home page Coder Social logo

Comments (3)

zfl9 avatar zfl9 commented on July 19, 2024 1

我的想法是,如果能通过其他方式解决(比如上面这种简单方法),就尽量不给chinadns-ng增加过多代码。

chinadns-ng基本都是运行在Linux透明代理环境中,所以我觉得加个iptables/nftables规则应该是比较轻松自然的事。

from chinadns-ng.

zfl9 avatar zfl9 commented on July 19, 2024

我记得naive支持redir://传入协议,虽然我不知道你的具体使用环境,但根据你的描述。我感觉增加一个iptables规则,就能将dns访问重定向至naive,从而走代理

假设你配置的dns上游是tcp://8.8.8.8,并且naive的redir监听端口是1088,则

iptables -t nat -A OUTPUT -p tcp -d 8.8.8.8 --dport 53 -j REDIRECT --to-ports 1088

from chinadns-ng.

smaller09 avatar smaller09 commented on July 19, 2024

由于我之前是用nftable来实现多naive后端负债均衡,所以一直是只用socks5,当然通过ipt2socks也是可以实现dns访问的,就是多了一层感觉不够简洁,现在naive支持了so_reuseport,可以试试直接chinadns-ng+naive(redir)

from chinadns-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.