<div dir="ltr"><span style="color:rgb(33,33,33);font-size:13px">Hey,</span><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">I've been debugging the problem, that when I ssh from my desktop to my tunneled laptop's tunnel ip, the laptop receives it but replies to it over the local broadcast domain, instead of over the tunnel interface.</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">I eventually tracked it down to this rule added by `wg-quick`:</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">    32764:  from all lookup main suppress_prefixlength 0</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">That rule means, use routing table `main` for all prefixes bigger than 0 bits (default route).</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">But the local network, is there, bigger than 0 bit mask, and gets selected...</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">Even though the source ip is completely wrong!</div><div style="color:rgb(33,33,33);font-size:13px">So while the reply ends up on the connecting computer, it doesn't know it should use the local broadcast domain to continue the conversation and sends the next ACK packet to the default gateway, which drops it due to not having seen a SYN-ACK (asymmetric routing).</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">Solutions?</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">Delete that IP-rule?</div><div style="color:rgb(33,33,33);font-size:13px">Add an exception rule if the source ip is the tunnel interface ip?</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">p.s. when i got ssh working, it works, sometimes, but sometimes i get multi-second lagspikes. But i haven't debugged that at all yet.</div><div style="color:rgb(33,33,33);font-size:13px"><br></div><div style="color:rgb(33,33,33);font-size:13px">~ Gunnar</div></div>