udp punch for wireguard, inspired by natpunch-go
server side
./punch-server-linux-amd64 -port 56000
client side
make sure wireguard is up
./dist/punch-client-linux-amd64 -server xxxx:56000 -iface wg0
- natpunch-go (because of #7 not support macOS, so I build this)
- wireguard-vanity-address generate keypairs with a given prefix
- UDP hole punching
./punch-server-linux-arm64 -port 56000
wg-quick up ./conf/w1.conf
wg-quick down ./conf/w1.conf
./punch-client-linux-arm64 -server w0:56000 -iface w1
wg-quick up ./conf/w2.conf
wg-quick down ./conf/w2.conf
./punch-client-linux-arm64 -server w0:56000 -iface w2
先执行 client 的是 从端