From nobody Thu May 15 19:40:06 2025 X-Original-To: freebsd-current@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 4Zz0t171vxz5wpNs for ; Thu, 15 May 2025 19:40:09 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta003.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Zz0t14yX8z44Fn; Thu, 15 May 2025 19:40:09 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTPS id FXYxuEslw9JM2FeR7unIiB; Thu, 15 May 2025 19:40:09 +0000 Received: from spqr.komquats.com ([70.66.136.217]) by cmsmtp with ESMTPSA id FeR5ugkkVWbOaFeR6uYw38; Thu, 15 May 2025 19:40:09 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=Q5lx4J2a c=1 sm=1 tr=0 ts=68264319 a=h7br+8Ma+Xn9xscxy5znUg==:117 a=h7br+8Ma+Xn9xscxy5znUg==:17 a=kj9zAlcOel0A:10 a=dt9VzEwgFbYA:10 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=VxmjJ2MpAAAA:8 a=YxBL1-UpAAAA:8 a=6Cbi_aXJ5nWWgsB_0HUA:9 a=CjuIK1q_8ugA:10 a=LK5xJRSDVpKd5WXXoEvA:22 a=7gXAzLPJhVmCkEl4_tsf:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id B55E1230; Thu, 15 May 2025 12:40:06 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id A69EAB6; Thu, 15 May 2025 12:40:06 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Kristof Provost cc: Cy Schubert , ivy@freebsd.org, freebsd-current@freebsd.org Subject: Re: epair(4) In-reply-to: <406249F9-B0FC-4E22-9402-683531321E72@FreeBSD.org> References: <20250515162552.9209B20E@slippy.cwsent.com> <20250515185919.87008219@slippy.cwsent.com> <406249F9-B0FC-4E22-9402-683531321E72@FreeBSD.org> Comments: In-reply-to Kristof Provost message dated "Thu, 15 May 2025 21:21:08 +0200." List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 15 May 2025 12:40:06 -0700 Message-Id: <20250515194006.A69EAB6@slippy.cwsent.com> X-CMAE-Envelope: MS4xfC8/mQm6Sxbwx05muDVwKFt5dTAHJ0uk6/rKdK+hTWcrA2QBlA/IvpeiQz1TQjuUN0KUXqMwK4VsAvHMv/zCe+QgD5HQNgzdFx0Sk7bEuqzNJomBFK9V vNjhez/JUtUX38oNMTtE1gjh2ZXELUltA5y6b3Q4jE0dc4rm4qpam+AobgK1dTLbYFpzQAdp5OT06aaEqSuRXLTDiUiPqrQs2psuVksv72T2bAADolScGV8e UxhcUvZ7AR4Wn52fxru7J3kAbMib3B7C3rIx/VTczCA= X-Rspamd-Queue-Id: 4Zz0t14yX8z44Fn X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Spamd-Bar: ---- In message <406249F9-B0FC-4E22-9402-683531321E72@FreeBSD.org>, Kristof Provost writes: > On 15 May 2025, at 20:59, Cy Schubert wrote: > > In message <20250515162552.9209B20E@slippy.cwsent.com>, Cy Schubert wri= > tes: > >> Over the last couple of days epair(4) fails to set up when an IP addre= > ss is > >> specified. > >> > >> bob# service jail onestart test2 > >> Starting jails: cannot start jail "test2": > >> epair0a > >> ifconfig: ioctl (SIOCAIFADDR): Invalid argument > >> jail: test2: /sbin/ifconfig epair0a inet 10.1.1.70 netmask 0xffffff00 = > up: > >> failed > >> . > >> bob# ifconfig epair0a inet 10.1.1.70 netmask 0xffffff00 > >> ifconfig: ioctl (SIOCAIFADDR): Invalid argument > >> bob# ifconfig epair0a inet up > >> bob# > > > > This regression is caused by b61850c4e6f6. > > > Is epair0a a member of a bridge? If so, that=E2=80=99s a configuration er= > ror which is now prevented (by default). Yes, epair0a, member of bridge0 is prevented from coming up. My jail configuration: test2 { $if = "0"; # Jail ID number $ip_addr = "10.1.1.71"; # Jail ipv4 address $netmask = "0xffffff00"; $ip_host = "10.1.1.70"; # Gateway or host's ipv4 address $ip_route = "10.1.1.254"; # Gateway or host's ipv4 address $ip6_addr = "fc00:1:1:1::47"; # Jail ipv6 address $ip6_route = "fc00:1:1:1::fffe"; # Gateway or host's ipv6 address vnet; vnet.interface = "epair${if}b"; allow.set_hostname = "1"; exec.prestart = "/sbin/sysctl kern.sugid_coredump=1"; exec.prestart = "ifconfig epair${if} create up"; exec.prestart += "ifconfig bridge0 addm epair${if}a"; # exec.prestart += "ifconfig bridge0 addm sk0"; exec.prestart += "/sbin/ifconfig epair${if}a inet ${ip_host} netmask ${netmask} up"; # exec.prestart += "/sbin/route change -host ${ip_host} -iface epair${if}a"; # exec.prestart += "/sbin/route add -host ${ip_addr} -iface epair${if}a"; exec.start = "/sbin/ifconfig epair${if}b inet ${ip_addr} netmask ${netmask} up"; exec.start += "/sbin/ifconfig epair${if}b inet6 ${ip6_addr} up"; exec.start += "/sbin/route add default -gateway ${ip_route}"; exec.start += "/sbin/route add -inet6 default -gateway ${ip6_route}"; exec.start += "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.poststop = "ifconfig epair${if}a destroy"; # exec.poststop += "ifconfig bridge0 deletem sk0"; } -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0