wangyu- / udp2raw

A Tunnel which Turns UDP Traffic into Encrypted UDP/FakeTCP/ICMP Traffic by using Raw Socket,helps you Bypass UDP FireWalls(or Unstable UDP Environment)
MIT License
6.95k stars 1.15k forks source link

可以通过不同的TCP端口来搭建多个udp隧道吗? #511

Open hhm-call opened 4 months ago

hhm-call commented 4 months ago

I have 4 virtual machines, which are R1, R2, R3, R4. Their IPs are ip1、ip2、ip3、ip4. I have wireguard on R1 and R4, udp2raw on R2 and R3. wg运行在R1和R4上,其中R1和R2都是作为服务端的存在。

A UDPtunnel is successfully built.

#R2
udp2raw -s -l ip2:4567 -r ip1:51820 -k "wireguard-udp2raw" --raw-mode faketcp -a 

#R3
udp2raw -c -l ip3:51821 -r ip2:4567 -k "wireguard-udp2raw" --raw-mode faketcp -a 

#R4
[Peer]
Endpoint = ip3:51821

我可以通过额外添加以下命令来搭建第二条隧道吗?或者是如何搭建? Can I set up another udptunnel between R2 and R3 by adding an additional command?

#R2
udp2raw -s -l ip2:1234-r ip1:51820 -k "wireguard-udp2raw" --raw-mode faketcp -a 

#R3
udp2raw -c -l ip3:51821 -r ip2:1234-k "wireguard-udp2raw" --raw-mode faketcp -a 

#R4
[Peer]
Endpoint = ip3:51821
wangyu- commented 2 weeks ago

So all you need is setuping 2 udp2raw channels pointing to the same ip:port?

This is pretty legit use case, I don't see any problems.