Giter Site home page Giter Site logo

Comments (8)

juewuy avatar juewuy commented on May 31, 2024

@devioa iptables不支持传递和检查域名,过滤bt可以过滤整个设备,如果不方便也可以虚拟机运行桥接模式后过滤虚拟机
本机运行则不要开启本机代理

from shellcrash.

devioa avatar devioa commented on May 31, 2024

有时候内网设备也会有迅雷比特彗星之类的BT/P2P下载,那这种情况是没什么很好的办法解决吗?
那能否配合smartdns上游解析*.hath.network的 IP 然后加入 ipset 再供iptables处理?这种可行吗?

from shellcrash.

juewuy avatar juewuy commented on May 31, 2024

@devioa 那你也可以自己写iptabels,把相关IP直接转发给内核

from shellcrash.

devioa avatar devioa commented on May 31, 2024

我就是不熟悉iptables😂不知道怎么写

from shellcrash.

juewuy avatar juewuy commented on May 31, 2024

@devioa 那我建议你相关应用直接配置socks或者http代理还方便点

from shellcrash.

devioa avatar devioa commented on May 31, 2024

我用的ehviewer没有提供socks或http代理
我刚问Copilot,大概知道前半段是iptables -t nat -A PREROUTING -m set --match-set hathnet -p tcp ?后面我该怎么写呀?
-j REDIRECT --to-ports 7890?还是dst -j REDIRECT --to-ports clash
烦请指教

from shellcrash.

juewuy avatar juewuy commented on May 31, 2024

@devioa https://github.com/juewuy/ShellCrash/blob/b073c55d90fa68e2ffbde5096b7f6538ee0fa59f/scripts/start.sh#L525C1-L525C1

from shellcrash.

devioa avatar devioa commented on May 31, 2024

看了下源码明白了,已经配置成功,感谢!
生效规则为iptables -t nat -A PREROUTING -p tcp -m set --match-set hathnet dst -j clash

from shellcrash.

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.