Re: ipv6 gateway on different subnet

Tobias Nygren <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <[email protected]>
Hi,

I'm not 100% sure it's the same problem but I have this patch that
works around the problem for me on a different provider.
Maybe there needs to be a sysctl to disable the non-neighbor check.

-Tobias

--- sys/netinet6/nd6_nbr.c	13 Nov 2024 09:25:52 -0000	1.185
+++ sys/netinet6/nd6_nbr.c	18 Jan 2025 18:41:30 -0000
@@ -161,12 +161,14 @@ nd6_ns_input(struct mbuf *m, int off, in
 		 * Make sure the source address is from a neighbor's address.
 		 */
 		sockaddr_in6_init(&ssin6, &saddr6, 0, 0, 0);
+#if 0
 		if (nd6_is_addr_neighbor(&ssin6, ifp) == 0) {
 			nd6log(LOG_INFO,
 			    "NS packet from non-neighbor %s on %s\n",
 			    IN6_PRINT(ip6buf, &saddr6), if_name(ifp));
 			goto bad;
 		}
+#endif
 	}

 	if (IN6_IS_ADDR_MULTICAST(&taddr6)) {
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.