<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Adrian,<div class=""><br class=""></div><div class="">As SIDE_B has a public IP address, the example you give should work fine. In this case, SIDE_A will establish a connection with SIDE_B which effectively punches a NAT hole for return traffic from SIDE_B to SIDE_A.</div><div class=""><br class=""></div><div class="">When configuring the SIDE_A peer on SIDE_B, just leave EndPoint unset.</div><div class=""><br class=""></div><div class="">Inversely, when configuring the SIDE_B peer on SIDE_A, use the dynamic DNS name (and the port that SIDE_B is listening on).</div><div class=""><br class=""></div><div class="">The NAT Hole Punching example Jason provided is more applicable to situations where both WireGuard peers are NATed. In your example it sounds like this is only the case for SIDE_A.</div><div class=""><br class=""></div><div class=""><div class="">Cheers,</div><div class="">Steven</div></div><div><br class=""><blockquote type="cite" class=""><div class="">On 3 Sep 2018, at 5:51 am, Adrián Mihálko <<a href="mailto:adriankoooo@gmail.com" class="">adriankoooo@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Is there any way to connect to Wireguard behind a Carrier-grade NAT? <div class=""><br class=""></div><div class="">On SIDE_A I have a backup LTE connection, without proper public ip, only dynamic ip and I server with Wireguard. </div><div class=""><br class=""></div><div class="">SIDE_A = mobile LTE connection, without public IP, behind carrier grade NAT </div><div class="">SIDE_A_SERVER = WIREGUARD (connecting to <a href="http://sideb.dyndns.org/" class="">sideb.dyndns.org</a>) </div><div class=""><br class=""></div><div class="">SIDE_B = VDSL with public ip + ddns (<a href="http://sideb.dyndns.org/" class="">sideb.dyndns.org</a>) </div><div class="">SIDE_B_SERVER = WIREGUARD (cannot connect to SIDE_A, because no public ip on SIDE_A) </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Best regards, </div><div class="">Adrian</div></div>
_______________________________________________<br class="">WireGuard mailing list<br class=""><a href="mailto:WireGuard@lists.zx2c4.com" class="">WireGuard@lists.zx2c4.com</a><br class="">https://lists.zx2c4.com/mailman/listinfo/wireguard<br class=""></div></blockquote></div><br class=""></body></html>