From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: rost.bel@gmail.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id ace403f0 for ; Sun, 30 Apr 2017 11:34:23 +0000 (UTC) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 21670cfc for ; Sun, 30 Apr 2017 11:34:23 +0000 (UTC) Received: by mail-lf0-f44.google.com with SMTP id c80so51548761lfh.3 for ; Sun, 30 Apr 2017 04:43:39 -0700 (PDT) MIME-Version: 1.0 From: Rostislav Belotserkovski Date: Sun, 30 Apr 2017 14:43:17 +0300 Message-ID: Subject: do a client behind NAT needs to define listening port? To: wireguard@lists.zx2c4.com Content-Type: multipart/alternative; boundary=f403045fbf9a460581054e60d197 List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --f403045fbf9a460581054e60d197 Content-Type: text/plain; charset=UTF-8 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 --f403045fbf9a460581054e60d197 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 =C2=A0works (I g= uess the server-2-client connection works because of PersistentKeepalive )<= br>

server:

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

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

client:
[Interface]
PrivateK= ey =3D *********

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

Thanks in advance.

--
Rostislav Belotserkovski
--f403045fbf9a460581054e60d197--