<div dir="auto">UDP is a bit strange like that. Everything implicitly must "listen" when using UDP, even when the source port is ephemeral. So the listening port and the source port concepts get smushed into one thing.</div><div class="gmail_extra"><br><div class="gmail_quote">On May 4, 2017 20:47, "Ryan Whelan" <<a href="mailto:rcwhelan@gmail.com">rcwhelan@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I believe you- I didn't understand that it used the same port number for both ingress and egress traffic. I managed to miss that.<div><br></div><div>thank you much!</div><font color="#888888"><div><br></div><div>ryan</div></font></div><div class="elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 4, 2017 at 2:43 PM, Jason A. Donenfeld <span dir="ltr"><<a href="mailto:Jason@zx2c4.com" target="_blank">Jason@zx2c4.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">My answer remains correct. Use the listen port to control the source port. If you don't believe me, try running tcpdump and you'll see.</div><div class="m_601787192263130671HOEnZb"><div class="m_601787192263130671h5"><div class="gmail_extra"><br><div class="gmail_quote">On May 4, 2017 20:41, "Ryan Whelan" <<a href="mailto:rcwhelan@gmail.com" target="_blank">rcwhelan@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If i'm not mistaken that sets the listing port on one end (Peer 'A') of the connection. Peer 'B' needs to know what the listening port is set to, to be able to setup the handshake. So from peer 'B's perspective, the dst port is the "listen-port' on Peer 'A'.... How do I set the src port for peer 'B' so all traffic from B will come from a predicable source port?<div><br></div><div>I'm sorry if i'm not being clear- I very well might not be using the right terminology</div><div><br></div><div>ryan </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 4, 2017 at 2:35 PM, Jason A. Donenfeld <span dir="ltr"><<a href="mailto:Jason@zx2c4.com" target="_blank">Jason@zx2c4.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>"ListenPort", " listen-port"<br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_601787192263130671m_7922488072485641131m_5377503442994895593h5">On May 4, 2017 20:21, "Ryan Whelan" <<a href="mailto:rcwhelan@gmail.com" target="_blank">rcwhelan@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="m_601787192263130671m_7922488072485641131m_5377503442994895593m_-5814849043790190054quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_601787192263130671m_7922488072485641131m_5377503442994895593h5"><div dir="ltr">Hello!<div><br></div><div>When specifying an endpoint, you have to tell wg which dst port the peer is listening on- is it possible to tell wg which source port to send traffic from? I've looked over the documentation and if its in there, I managed to miss it.</div><div><br></div><div>Thanks!</div><font color="#888888"><div><br></div><div>ryan</div></font></div>
<br></div></div>______________________________<wbr>_________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailma<wbr>n/listinfo/wireguard</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>
</blockquote></div></div>
</div></div></blockquote></div><br></div>
</div></blockquote></div><br></div>