Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教脚本中iptables的规则 #7

Open
hujiao80 opened this issue Sep 16, 2018 · 6 comments
Open

请教脚本中iptables的规则 #7

hujiao80 opened this issue Sep 16, 2018 · 6 comments

Comments

@hujiao80
Copy link

iptables -t nat -I PREROUTING -p udp -d 8.8.4.4 --dport 53 -j REDIRECT --to-port 53
iptables -t nat -I PREROUTING -p udp -d 8.8.8.8 --dport 53 -j REDIRECT --to-port 53

正在学习你的思路,请教这两条规则的目的是什么?没太看懂

@bettermanbao
Copy link
Owner

劫持内网发给4个8的dns请求到er-x,有些google设备dns不是自动获取,不这么做会发生dns污染

@hujiao80
Copy link
Author

明白了,另外在同一端口跑了两个ss-local和ss-redire,是有多线程的效果吗?

@bettermanbao
Copy link
Owner

是的,跑2个可以把mt7621的双核心全部利用起来。

@hujiao80
Copy link
Author

速度会有提升吗?搬瓦工速度不太好,上kcp网速好很多,但似乎dns解析不是太稳定,不定期的会出问题,只用ss就很稳,几乎不出问题,如果双线对网速有提高我就可以不用kcptun了

@hujiao80
Copy link
Author

hujiao80 commented Sep 20, 2018

回家测试了一下,双线对网速没有改善,还是得继续用kcptun

@bettermanbao
Copy link
Owner

双开是解决本地cpu瓶颈,对网速确实没有帮助

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants