Comments (8)
@devioa iptables不支持传递和检查域名,过滤bt可以过滤整个设备,如果不方便也可以虚拟机运行桥接模式后过滤虚拟机
本机运行则不要开启本机代理
from shellcrash.
有时候内网设备也会有迅雷比特彗星之类的BT/P2P下载,那这种情况是没什么很好的办法解决吗?
那能否配合smartdns
上游解析*.hath.network
的 IP 然后加入 ipset 再供iptables
处理?这种可行吗?
from shellcrash.
@devioa 那你也可以自己写iptabels,把相关IP直接转发给内核
from shellcrash.
我就是不熟悉iptables
😂不知道怎么写
from shellcrash.
@devioa 那我建议你相关应用直接配置socks或者http代理还方便点
from shellcrash.
我用的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.
@devioa https://github.com/juewuy/ShellCrash/blob/b073c55d90fa68e2ffbde5096b7f6538ee0fa59f/scripts/start.sh#L525C1-L525C1
from shellcrash.
看了下源码明白了,已经配置成功,感谢!
生效规则为iptables -t nat -A PREROUTING -p tcp -m set --match-set hathnet dst -j clash
from shellcrash.
Related Issues (20)
- [求助]如何将一个普通的linux系统设置为旁路由 HOT 8
- [Bug] 小米AX6000,打开shellclash后访问需要走代理的网站报错ERR_SSL_PROTOCOL_ERROR HOT 1
- 小米ax3600只能跑30M
- [求助] 云服务器安装shellcrash代理遇到的问题 HOT 3
- [Feature] 请问CrashCore.tar.gz解压了应该放哪里。未找到meta核心 下载1分钟才1%才熬人了 HOT 4
- [Feature] HOT 1
- [Question] Ubuntu 中 curl 无返回 HOT 1
- [Bug] 7621潘多拉固件,安装shellclash后三星手机无线没有网?电脑wifi有网 HOT 1
- [求助]mesh路由黑白名单失效 HOT 2
- [Feature] 希望增加节点过滤 HOT 1
- [Feature] Contribute ShellCrash-based containers
- [求助] 云服务器安装shellcrash,别的云服务器怎么使用 HOT 2
- [Bug] fake-ip 模式走 IPV4 DNS有效,走IPV6 DNS 无效 HOT 5
- [Bug] ipset v6.38: Error in line 1: Set cannot be created: set with the same name already exists HOT 3
- [Bug] 关于nft_tproxy内核模块报错的问题。 HOT 3
- [Bug] iptables/nftable 规则失效 HOT 6
- '*.mi.com'[Bug]
- [Feature] 人工智能分类域名提交
- 小米ax6000 mi.com无法访问[Bug] HOT 2
- [Bug] singboxp无法启动
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shellcrash.