[Bug 290768] if_wg(4): handshake response has src and dst reverse

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290768

--- Comment #19 from Kyle Evans <[email protected]> ---
(In reply to relvy from comment #17)

I don't really see how that's possible at the moment; we get that addrerss one
of a few different ways:

1.) wg(8) set it via the ioctl interface, but it only does that for AF_INET /
AF_INET6
2.) When we receive a valid handshake initiation
3.) When we receive a valid handshake response
4.) When we receive a valid packet over the tunnel

For #2 - 4, those are pulled from the `pkt->p_endpoint`, which is populated in
wg_input().  If we didn't get an AF_INET / AF_INET6 address *there*, the packet
is dropped.  You say that IPv6 is disabled, but I don't think opnsense produces
any kernel configs with it completely ripped out, so EAFNOSUPPORT from it being
an AF_INET6 is likely not what's happened -- something presumably went wrong in
the sosend() path instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.