udppunch icon indicating copy to clipboard operation
udppunch copied to clipboard

结合wireguard之后,流量是不是都走的endpoints?

Open yjloong opened this issue 4 months ago • 4 comments

我看代码似乎没有地方拿peers的ISP分配公网ip+port,用的是wireguard VPN局域网的ip+port,这样流量不是还走的endpoints进行中转的吗?

yjloong avatar Aug 29 '25 00:08 yjloong

应该是wireguard配置问题和执行命令的问题: [Interface] PrivateKey = eEXE Address = 110.0.0.3/24

[Peer] PublicKey = Czi87 AllowedIPs = 110.0.0.0/24 Endpoint = 8x.7x.5x.1x:569 PersistentKeepalive = 25

然后我命令走的是: go run client\client.go -server 110.0.0.1:19333 -iface better

命令应该是公网IP的。 然后我客户端配置的wireguard,110.0.0.0/24这一个就保证了全部局域网,所以现在的代码我需要改一下再适用。

所以我感觉既然走wireguard了,带有公网IP的server完全可以把已有的,已申请punch的clients全部给出去,不用client要哪个再给哪个。

yjloong avatar Aug 29 '25 00:08 yjloong

还有,vscode奶奶的调试go,这个程序需要管理员权限,vscode本身以管理员权限打开的,里面的终端却不是管理员权限。而且现在的程序还不报错,搁那没反应。

yjloong avatar Aug 29 '25 00:08 yjloong

我看代码似乎没有地方拿peers的ISP分配公网ip+port,用的是wireguard VPN局域网的ip+port,这样流量不是还走的endpoints进行中转的吗?

这个应该是server ip,我应该用公网ip,而不是VPN的ip。

yjloong avatar Aug 29 '25 01:08 yjloong

然后就是udp,ISP最近不是在限制吗,这个有感觉没

yjloong avatar Aug 29 '25 01:08 yjloong