aramperes/onetun

Add ListenPort support (source port for WireGuard socket)

ValdikSS opened this issue · 3 comments

This program lacks support for ListenPort option of WireGuard, which, in case of client, binds outgoing UDP socket to the supplied source port.
This is necessary to bypass NAT. Would appreciate this option.

I think --endpoint-bind-addr is what you're looking for? It sets the port of the local UDP socket for Wireguard. #34

Indeed, sorry, I totally missed it.
The README.md does not mention this option though.

Added to README in aef90a5