Development discussion of WireGuard
 help / color / mirror / Atom feed
* Configuring an endpoint with multiple listening ports
       [not found] <4a40d2e4-2ed8-7e79-cd8f-7ef71e731e38.ref@yahoo.com>
@ 2021-09-28 19:53 ` tlhackque
  0 siblings, 0 replies; only message in thread
From: tlhackque @ 2021-09-28 19:53 UTC (permalink / raw)
  To: wireguard

Recent discussions have suggested opening multiple UDP ports at the
"server" Endpoint of a tunnel to help overcome blocked ports, as
suggested in
https://lists.zx2c4.com/pipermail/wireguard/2018-November/003503.html.

As noted, it's fairly easy to redirect multiple ports on the server end
to a single ListenPort with NAT - whether with iptables or with
proprietary routers.

For the client (windows, android) as far as I can tell, the
configuration file syntax only allows a single Endpoint, with a single port.

This would indicate that either one should setup multiple peers (with
the same public key, AllowedIPs, etc) - one for each possible port - but
with different endpoint ports), or multiple tunnels (again duplicating
everything except the endpoint port).

If this is correct, it's awkward and error-prone.  It would be nice to
be able to specify something like [db8:123::10]:(51820,80,443,...) and
have the client try each port until it gets a response when it
(re-)initiates contact. It doesn't matter which port responds, since the
server's kernel sees the same listen port in every case.  (I guess the
client could even be aggressive and send the first packet to all ports -
since a quick reading of the protocol paper says that duplicates will be
discarded based on the timestamp.)

In any case, how do you recommend handling this configuration on the
client end?





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-28 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4a40d2e4-2ed8-7e79-cd8f-7ef71e731e38.ref@yahoo.com>
2021-09-28 19:53 ` Configuring an endpoint with multiple listening ports tlhackque

Development discussion of WireGuard

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://inbox.vuxu.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git