udptunnel is a small program which can tunnel UDP packets bi-directionally over a TCP connection. Its primary purpose (and original motivation) is to allow multi-media conferences to traverse a firewall which allows only outgoing TCP connections.
# udptunnel -s 443 127.0.0.1/51820
# udptunnel -c [SERVER PUBLIC IP]/443 127.0.0.1 50001
- Remember to open TCP port 443 on the server's firewall
- In the WireGuard client config file, replace the server's public IP (endpoint) with
127.0.0.1:50001
I've found what happens:
It tries to bind to target TCP port using
AF_INET
(ipv4) and to target TCP port usingAF_INET6
(ipv6). First attemt succeded and second one failed. I will try to investigate how to fix it.