能否借助 Xray 的 UDP fullnoce 特性,在路由器上面实现一个用户空间的 NAT1 模块? #4037
Closed
lxf1992521
started this conversation in
General
Replies: 1 comment
-
之前是在路由器上面测试端口的可达性,后来在互联网侧找了个机器测试了下 UDP 打洞的端口,发现是可以正常访问的,NAT1 没有问题。 可能不支持路由器本身访问,这是一个注意事项。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
如题,根据 #237 中讨论的内容,有如下一段:
`
完美支持 FullCone 的有:
`
那对于一个 Linux 路由器来说,是否可以使用 入站(Dokodemo-door)+出站(Freedom),实现一个用户空间的 UDP FullCone 呢?
我自己测试了下发现不行,从外部访问 Freedom 出站的 UDP 端口时,xray 会报错“proxy/dokodemo: fake: socket bind: address already in use”。
xray 的配置如下:
{ "log": { "loglevel": "info" }, "policy": { "levels": { "0": { "handshake": 1, "connIdle": 300, "uplinkOnly": 0, "downlinkOnly": 0, "bufferSize": 0 } } }, "routing": { "rules": [ { "inboundTag": [ "fullcone-in" ], "balancerTag": "fullcone" } ], "balancers": [ { "tag": "fullcone", "selector": [ "fullcone-out" ] } ] }, "inbounds": [ { "tag": "fullcone-in", "listen": "127.0.0.1", "port": 666, "protocol": "dokodemo-door", "settings": { "network": "udp", "followRedirect": true }, "streamSettings": { "sockopt": { "tproxy": "tproxy" } } } ], "outbounds": [ { "tag": "fullcone-out1", "protocol": "freedom", "sendThrough": "10.0.1.3" } ] }
Beta Was this translation helpful? Give feedback.
All reactions