From nobody Thu Aug 01 16:17:19 2024 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WZYyc3Wxzz5T16k for ; Thu, 01 Aug 2024 16:17:28 +0000 (UTC) (envelope-from roy@marples.name) Received: from sender-of-o59.zoho.eu (sender-of-o59.zoho.eu [136.143.169.59]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4WZYyb1XRNz4hdy for ; Thu, 1 Aug 2024 16:17:27 +0000 (UTC) (envelope-from roy@marples.name) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=marples.name header.s=zmail header.b=PPtY0zDf; dmarc=pass (policy=quarantine) header.from=marples.name; spf=pass (mx1.freebsd.org: domain of roy@marples.name designates 136.143.169.59 as permitted sender) smtp.mailfrom=roy@marples.name; arc=pass ("zohomail.eu:s=zohoarc:i=1") ARC-Seal: i=1; a=rsa-sha256; t=1722529042; cv=none; d=zohomail.eu; s=zohoarc; b=gALxsHyKgX9YR5oB7Lk+FihzgLLieyUd9sFTJmqdfQTtPjxV9/X92ea+iBwKyeH5/bD5TA9yJ6jefu7g8GW51CfgUyoZk7AE9qVD7XSOkilFm8c9EAqQ/TXv3hepemG5wGVYDE++dTggpLznWfbahGe2d3Pun/TbhENNDhgXCJ0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1722529042; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=AvaK4ptXz0sSEloQNE3g7OZ1ciVPUCikdHwJEsPhJW4=; b=S24a7oRfjpYnNm0YT7b5glq+Hi6QI5KQ+vmMxTxBGzHuvgAOlCse4ALWBb5y1Sh8oqkRp78sacwMyFvrFAMv0srbUaqN5ZzYl+KACzrhyb/YsTunNjfwXr2KR2ZdHi8CyRH0DR+RASbylXSAhZlEYxBl7hSfAX4ckqiUk9GZHF4= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=marples.name; spf=pass smtp.mailfrom=roy@marples.name; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1722529042; s=zmail; d=marples.name; i=roy@marples.name; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=AvaK4ptXz0sSEloQNE3g7OZ1ciVPUCikdHwJEsPhJW4=; b=PPtY0zDfALIK12dDbri/5swWHPw5WssD4aFhS3o7ydXVWJo+reStf18jThOUEfV9 b4cQKP9QVAq9SePdP7sVIJivIdo1MyzqsQ9dT041dmfUX8LWHW+Ber9bo5Ib3lHSgYn sHk0SIfov2jCnlhAqaYOzvPJXRFW8nNBmZIbch0I= Received: from mail.zoho.eu by mx.zoho.eu with SMTP id 1722529039875461.4874296002182; Thu, 1 Aug 2024 18:17:19 +0200 (CEST) Date: Thu, 01 Aug 2024 17:17:19 +0100 From: Roy Marples To: "Chris Ross" Cc: "freebsd-net" Message-ID: <1910ebb450b.12aaf64fd662413.1019342414121790584@marples.name> In-Reply-To: References: <190e09e6c1a.11450232913849.654798645277119294@marples.name> <050440F8-B3D8-4B2C-85BD-D5C09C303037@distal.com> <190e3ccbd5b.da3f3460134031.7068469154065557677@marples.name> Subject: =?UTF-8?Q?Re:_=C2=A0DHCPv6_IA=5FPD_-_how-to?= List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.09 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[zohomail.eu:s=zohoarc:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[marples.name,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:136.143.168.0/22]; R_DKIM_ALLOW(-0.20)[marples.name:s=zmail]; RWL_MAILSPIKE_VERYGOOD(-0.20)[136.143.169.59:from]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; XM_UA_NO_VERSION(0.01)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:41913, ipnet:136.143.168.0/23, country:CH]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; TAGGED_RCPT(0.00)[freebsd]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[136.143.169.59:from]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[marples.name:+] X-Rspamd-Queue-Id: 4WZYyb1XRNz4hdy ---- On Thu, 01 Aug 2024 16:24:54 +0100 Chris Ross wrote ---=20 >=20 > [Long message, apologies. Thoughts mostly after the log output.] >=20 > > On Jul 24, 2024, at 04:12, Roy Marples roy@marples.name> wrote: > > dhcpcd can indeed setup the internal networks within the PD for you. > > If my answer to Kar's question is not enough, then please let me know. >=20 > Alright. Time passes, and I have a new system (FreeBSD 14.1) reach to > slot in in place of my old router (FreeBSD 11.4). With Roy=E2=80=99s he= lp > off-list, I have a config that I think will work: >=20 > duid > persistent > vendorclassid > option classless_static_routes > option rapid_commit > require dhcp_server_identifier > slaac private > noipv6rs > interface vlan0 > ipv6only > noipv4 > noipv4ll > ia_pd 0/::/56 vlan1/32 vlan2/42 vlan3/52 vlan4/62 vlan5/72 vlan6/82 vl= an7/92 >=20 > I brought the system up as an IPv4 router with no IPv6 configured, > then ran =E2=80=9Cdhcpcd --noconfigure -d -B=E2=80=9D. Output is long, b= ut select > bits (including top and bottom) show: >=20 > =E2=80=94=E2=80=948<=E2=80=94=E2=80=948<=E2=80=94=E2=80=948<=E2=80=94=E2= =80=948<---- > main: control_open: Connection refused > dhcpcd-10.0.8 starting > spawned privileged proxy on PID 43738 > spawned network proxy on PID 43930 > spawned controller proxy on PID 44915 > DUID 00:01:00:01:2e:3e:5e:7f:a4:53:0e:79:b9:82 > sandbox unavailable: capsicum OK, that's bad. This means that the cap_enter(3) failed so your kernel was not built with C= APABILITY_MODE enabled. > lo0: ignoring due to interface type and no config > pflog0: unsupported interface type 0xf6 > ix0: executing: /usr/local/libexec/dhcpcd-run-hooks PREINIT > ix0: executing: /usr/local/libexec/dhcpcd-run-hooks CARRIER > ix1: executing: /usr/local/libexec/dhcpcd-run-hooks PREINIT > vlan0: executing: /usr/local/libexec/dhcpcd-run-hooks PREINIT > vlan0: executing: /usr/local/libexec/dhcpcd-run-hooks CARRIER > vlan1: executing: /usr/local/libexec/dhcpcd-run-hooks PREINIT > vlan1: executing: /usr/local/libexec/dhcpcd-run-hooks CARRIER > vlan2: executing: /usr/local/libexec/dhcpcd-run-hooks PREINIT > vlan2: executing: /usr/local/libexec/dhcpcd-run-hooks CARRIER > vlan3: executing: /usr/local/libexec/dhcpcd-run-hooks PREINIT > [=E2=80=A6] > vlan0: IAID ff:00:00:06 > vlan0: IA type 25 IAID 00:00:00:00 > vlan0: reading lease: /var/db/dhcpcd/vlan0.lease6 > vlan0: rebinding prior DHCPv6 lease > vlan0: delaying REBIND6 (xid 0x329d93), next in 1.0 seconds > vlan0: multicasting REBIND6 (xid 0x329d93), next in 1.1 seconds > vlan0: REPLY6 received from fe80::3e8a:b0ff:fe3e:4dce > vlan0: renew in 3600, rebind in 5760, expire in 7200 seconds > vlan0: writing lease: /var/db/dhcpcd/vlan0.lease6 > vlan0: executing: /usr/local/libexec/dhcpcd-run-hooks REBIND6 > [=E2=80=A6] > vlan6: executing: /usr/local/libexec/dhcpcd-run-hooks BOUND > vlan5: DAD completed for 192.168.123.46 > vlan5: leased 192.168.123.46 for 3105 seconds > vlan5: renew in 1552 seconds, rebind in 2716 seconds > vlan5: writing lease: /var/db/dhcpcd/vlan5.lease > vlan5: executing: /usr/local/libexec/dhcpcd-run-hooks BOUND > vlan2: DAD completed for 172.31.83.42 > vlan2: leased 172.31.83.42 for 755 seconds > vlan2: renew in 377 seconds, rebind in 660 seconds > vlan2: writing lease: /var/db/dhcpcd/vlan2.lease > vlan2: executing: /usr/local/libexec/dhcpcd-run-hooks BOUND > ix0: ARP probing 169.254.156.162 (2 of 3), next in 1.8 seconds > ix1: ARP probing 169.254.188.53 (2 of 3), next in 1.7 seconds > ps_bpf_recvmsg: Network is down > vlan1: ARP probing 169.254.156.162 (3 of 3), next in 2.0 seconds > ix0: ARP probing 169.254.156.162 (3 of 3), next in 2.0 seconds > ix1: ARP probing 169.254.188.53 (3 of 3), next in 2.0 seconds > ps_bpf_recvmsg: Network is down > vlan1: using IPv4LL address 169.254.156.162 > zsh: segmvlan3ation fault sudo dhcpcd --noconfigure -d -B eek, that's worse! Fixed here: https://github.com/NetworkConfiguration/dhcpcd/commit/c6a8fa1e6= a68e46e89fef0f953f4c7bf4915e257 You can work around the issue by adding noipv4ll to your config. > I=E2=80=99m sure there are =E2=80=9Cstupid user tricks=E2=80=9D here. I= think the > primary problem is that it=E2=80=99s using more than the one interface > I want it to. It also looks like it=E2=80=99s picking up IPv4 addresses > from the local ISC dhcpd on all of the other interfaces. I=E2=80=99m > glad it wasn=E2=80=99t trying to configure them! Yes. You can limit what interfaces dhcpcd works with using a combination of allo= winterfaces and denyinterfaces directives as described in dhcpcd.conf(5). Or you can give the explicit list of interfaces on the command line. If onl= y one interface, you should use the -M option until dhcpcd-11 is finished. If PD needs any interfaces you have denied, they will be activated solely f= or PD. > Then, of course, the SEGV. So, first I guess I need to tell > it to not try interfaces other than the one I want. For my > case. However there are a few things I think may want to > be worked on: >=20 > 1. The SEGV, obviously > 2. It seems to be trying things on ix1, despite no carrier. > I understand keeping an eye on it, but not sending DISCOVER > and ARP et al. > 3. It seems it shouldn=E2=80=99t accept a DHCP address from it=E2=80=99s > local address. I question if it should try to _get_ an > address if there=E2=80=99s already an address, but. Maybe this > is a dhcpd problem, where it shouldn=E2=80=99t respond to requests > from the local address? >=20 1. Fixed with the referenced commit. Please apply to your version. 2. I don't see any carrier stuff as you snipped parts of the log. Email to = me privately no matter how large. Good you enabled debugging. 3. I don't understand the question or problem? Can you try to rephrase? Thanks Roy