Development discussion of WireGuard
 help / color / mirror / Atom feed
* do a client behind NAT needs to define listening port?
@ 2017-04-30 11:43 Rostislav Belotserkovski
  2017-04-30 12:07 ` Jason A. Donenfeld
  0 siblings, 1 reply; 6+ messages in thread
From: Rostislav Belotserkovski @ 2017-04-30 11:43 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 574 bytes --]

Hi!

Wanted to ask you a question: do a client behind the NAT needs to declare a
listening port?

here is my conf w/o listening port and it obviously  works (I guess the
server-2-client connection works because of PersistentKeepalive )

server:

[Interface]
PrivateKey = *********
ListenPort = 500

[Peer]
PublicKey = *********
AllowedIPs = 192.168.4.2
PersistentKeepalive = 25

client:
[Interface]
PrivateKey = *********

[Peer]
PublicKey = *********
Endpoint = serverip:500
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25

Thanks in advance.

-- 
Rostislav Belotserkovski

[-- Attachment #2: Type: text/html, Size: 1021 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-04-30 14:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-30 11:43 do a client behind NAT needs to define listening port? Rostislav Belotserkovski
2017-04-30 12:07 ` Jason A. Donenfeld
2017-04-30 12:33   ` Rostislav Belotserkovski
2017-04-30 12:35     ` Jason A. Donenfeld
2017-04-30 14:53       ` Rostislav Belotserkovski
2017-04-30 14:54         ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).