<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 22, 2018, 19:27 ST <<a href="mailto:smntov@gmail.com">smntov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm new to networking in general and VPN in particular but need to setup<br>
infrastructure to be able to SSH easily to several people who are behind<br>
routers (NAT). After reading that WireGuard is super simple - I decided<br>
to give it try.<br>
<br>
It indeed turned out to be simple till now. I setup a Debian virtual<br>
server with a public IP and configure it as follows:<br>
<br>
Server:<br>
<br>
# wg<br>
interface: wg0<br>
  public key: QMwhCacViCKcTrkevg5NxLnTEJDU1bTNgQp43rp7BHM=<br>
  private key: (hidden)<br>
  listening port: 12000<br>
<br>
peer: hiUdjmCK+iZf8wGEB+rYxMYYBF8QoOsm3nkF3asllRY=<br>
  endpoint: 37.X.Y.Z:4488<br>
  allowed ips: <a href="http://10.8.8.9/32" rel="noreferrer noreferrer" target="_blank">10.8.8.9/32</a></blockquote></div></div><div dir="auto"><br></div><div dir="auto"></div><div dir="auto">Where is that port from?</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is everything OK here?... At the beginning everything worked as expected<br>
- I could ping/SSH in both directions via the private 10.8.8.8 and<br>
10.8.8.9 addresses. Later I put my desktop into "hibernate mode" and<br>
after turning it on again could no longer use the link...<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I guess the NAT router in between dropped your connection by timeout.</div><div dir="auto">You either need to ping from behind-NAT first, to re-establish the tunnel, or if you want to do it both-ways setup portforwarding on the NAT.</div><div dir="auto"><br></div><div dir="auto">Check the keepalive opions in wg, in case your NAT has only short memory.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Kalin.</div></div>