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

Udpblocked,要怎么定位UDP数据转发错误所在? #180

Open
hdstar2009 opened this issue Jan 28, 2018 · 4 comments
Open

Udpblocked,要怎么定位UDP数据转发错误所在? #180

hdstar2009 opened this issue Jan 28, 2018 · 4 comments
Labels

Comments

@hdstar2009
Copy link

最近换了路由器后,路由器固件是Lede的系统,不管是用人家集成好的ss还是自己从这里下载ipk来安装,tcp的代理都正常;但是UDP数据转发都失败,nat类型测试软件(NatTypeTester.exe)测试结果是Udpblocked。
因为同样的ss线路服务器和用以前BB固件的路由器,同样的NatTypeTester.exe软件测试UDP转发就是正常的。
现在就想问问,udp转发要怎么来定位错误?谷歌和看了不少论坛网友的“经验”,ipset,ip-full,等等都有,也尝试过删除相应,客户端也没有任何错误提示,现在完全没有头绪来。

@hdstar2009
Copy link
Author

实际以前也问过这个问题,一直没解决。#123
现在就想知道,有没有办法去定位udp转发不成功在哪个步骤没成功吗

@love4taylor
Copy link

lean 的 lede 上 开启 udp 转发后连 dns 都解析不了 dig/ping 超时 很迷

@WordlessEcho
Copy link

service shadowsocks restart

@edison0354
Copy link

唔,好像跟lz的问题关系不大,不过之前某个版本的ss-libev是有udp的bug的,更新到最新版就好了
另外转发规则我的是这样的:

ip rule add fwmark 1 lookup 100
ip route add local default dev lo table 100
iptables -t mangle -A PREROUTING -m mac --mac-source xx:xx:xx:xx:xx:xx -p udp -j TPROXY --on-port 1090 --tproxy-mark 0x01/0x01

顺便再lsmod |grep TPROXY看下有没有tproxy的module?

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

No branches or pull requests

5 participants