From owner-freebsd-questions@freebsd.org Mon Jan 4 03:42:03 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 26D954C9850 for ; Mon, 4 Jan 2021 03:42:03 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D8LzG1LcTz3hY9 for ; Mon, 4 Jan 2021 03:42:02 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-ej1-x62b.google.com with SMTP id ce23so35126010ejb.8 for ; Sun, 03 Jan 2021 19:42:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+AlsEpYssSL3VktHAD98ltOCL85hXkokgrRPxk3oTF8=; b=2IdesgzdmMF9Hmtv/u0Amh6xyYDC1a6yEiHFf+P/P5c0A4Roxvv3DGzdlDRudn8lEd knOgPwgIlLxx7T/1oB5J65HWVyfAlQM3UPHxTWFK6449TEyKYNFPVwr38tV++e0E8HHg XxmTzfrcfN7lcX4P5JBJF/3p2ogyOQYF0hFLWvCWzQ2WpszklFXvbsuZEVZdCGaizC0m uatfhn7ubExWZljeU+bIVJTq/4yhAzFx0EOT+J6w+niN4qR5JaYLQa5woEVsjHo9wjKw oXM1GbVMAwI5kcb+I0bCWbrtrKp5bvM3nsvbAclxlZuIu9Is9vQo356LKAHOjJEH7UI4 XP7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+AlsEpYssSL3VktHAD98ltOCL85hXkokgrRPxk3oTF8=; b=oi2Nevc9SRqscQUFMF+5Gv+dMl2OOD0u8u+pxCgyS2T+ycClQYvDxQ5aJeY1bJQmWr XL0T29Qsnn+/XOJxBfdLsTRqGEPx0+tSiIg/EBeI5rY3JA/KLBuvUUt9XwT6N3iCUjqV k9QAmdJNHejTdqonlJzsCfeRAnYLKRv+SFY0uN33eit7XMx6UJuWMm1NmcLrRRSMj7OH hRy5+u1QqN/bjznY1pep5HDnqIFLVsFSgdKyHf00oLtlNASoLXOIZyND73SqFBnVxeGT h44gGaeuw6JBR2zaLWfG/uOOQICZ+tw3bdbDK2VErqrL3EICKoAZLVDR1CdQrXNIuuAt 80XQ== X-Gm-Message-State: AOAM532Y5fcWehGtpH0jAEqIju8bTFMpgi8ag3zmy/MOAaqJm5vvoc7e R/LsmsmdV3J0but8CUAgZnSv0Uox+4cNbujWwLknLg== X-Google-Smtp-Source: ABdhPJwjhjWJscGUdAAA0AbMrNkljE+3UAjNteuMvexvPX+T6znmKMJ8UljF9LqlyCTMgZ57Xx4r6Uj+yK6luxMB2fo= X-Received: by 2002:a17:906:15c7:: with SMTP id l7mr66181835ejd.226.1609731720774; Sun, 03 Jan 2021 19:42:00 -0800 (PST) MIME-Version: 1.0 References: <20210102145727.GA62235@admin.sibptus.ru> <20210104023515.GB36180@admin.sibptus.ru> In-Reply-To: <20210104023515.GB36180@admin.sibptus.ru> From: Michael Sierchio Date: Sun, 3 Jan 2021 19:41:24 -0800 Message-ID: Subject: Re: FreeBSD does not reply to IPv6 Neighbor Solicitations To: "freebsd-net@freebsd.org" , FreeBSD Questions X-Rspamd-Queue-Id: 4D8LzG1LcTz3hY9 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tenebras-com.20150623.gappssmtp.com header.s=20150623 header.b=2Idesgzd; dmarc=none; spf=none (mx1.freebsd.org: domain of kudzu@tenebras.com has no SPF policy when checking 2a00:1450:4864:20::62b) smtp.mailfrom=kudzu@tenebras.com X-Spamd-Result: default: False [-3.30 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[tenebras-com.20150623.gappssmtp.com:s=20150623]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[tenebras.com]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::62b:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[tenebras-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62b:from]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::62b:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2021 03:42:03 -0000 On Sun, Jan 3, 2021 at 6:35 PM Victor Sudakov wrote: > > Why could it be that a FreeBSD 12.2 host does not reply to ICMPv6 > > Neighbor Solicitations from the router? > > Any ideas please? > > Are you permitting the required udp and icmp? These could be tighter, but ###########################################################################= ##### # dhcp / bootp $FW add 00128 allow udp from any 67,68,546,547 to any 67,68,546,547 ###########################################################################= ##### # Neighbor Discovery Protocol $FW add 00129 allow ipv6-icmp from any to any icmp6types 133,134,135,136,13= 7 The method I have found to be reliable is to use dhcp6c, which requires the pkg 'dhcp6' So for a FreeBSD host in ec2, for example: ifconfig_eth0=3D"SYNCDHCP" ipv6_activate_all_interfaces=3D"YES" ifconfig_eth0_ipv6=3D"inet6 accept_rtadv up" dhcp6c_enable=3D"YES" dhcp6c_interfaces=3D"eth0" and /usr/local/etc/dhcp6c.conf is simple interface eth0 { send ia-na 1; send rapid-commit; }; id-assoc na 1 { }; For a more complicated example, I have a firewall that gets its addresses from my cable company: ipv6_gateway_enable=3D"YES" ipv6_activate_all_interfaces=3D"YES" rtadvd_enable=3D"YES" rtadvd_interfaces=3D"eth1 eth2" dhcp6c_enable=3D"YES" dhcp6c_interfaces=3D"eth0" ipv6_default_interface=3D"eth1" and interface eth0 { send ia-na 1; send ia-pd 1; send rapid-commit; }; id-assoc pd 1 { prefix ::/64 1800; prefix-interface eth1 { sla-id 0; sla-len 0; }; prefix-interface eth2 { sla-id 1; sla-len 0; }; }; id-assoc na 1 { }; --=20 "Well," Brahm=C4=81 said, "even after ten thousand explanations, a fool is = no wiser, but an intelligent person requires only two thousand five hundred." - The Mah=C4=81bh=C4=81rata