From nobody Sat Mar 12 01:06:56 2022 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 32F581A19030 for ; Sat, 12 Mar 2022 01:06:58 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [192.147.25.65]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.lerctr.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KFl4x4QNzz4lTZ for ; Sat, 12 Mar 2022 01:06:57 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=ler2019; h=Content-Type:Message-ID:References:In-Reply-To:Subject:Cc:To: From:Date:MIME-Version:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=OnK+l6iZhNEuqVs+c15nOgE/r9HiUMnbsD+tyJ0vgWI=; b=syg/kdqtR8HE8ARy3Gt9MuXsXt U8ITlYNOT3xaY8Z5na4zIqyzpc+LE7HNJ+5MG42wOp36R3Wx9NoCSnfX8vQ54Dv8uegZx4+RlotXb amfWlknYRWDLL77IhEJ9J2+4tEpWDeasyW+as/GSUZb+Gn5EyF7UYbh/KyEPGIX6nPSjPP2lVasOa j7vPoaaJkDMWq6ZzgNMXf1sZYExvL/UG0jL+rTMvIs1cHcr+V2stzHNPioRS2ZJL3FfMBIw8tPV4k lYQsnRim5vBQ+lE0KaZhtYOj/7OJo675QStFzaSAk+d5tPKHnv55pn8kwcdSUIS6vXXIb3bydUSWG ofzK9REw==; Received-SPF: pass (thebighonker.lerctr.org: domain of lerctr.org designates 2001:470:1f0f:3ad:bb:dcff:fe50:d900 as permitted sender) client-ip=2001:470:1f0f:3ad:bb:dcff:fe50:d900; envelope-from=ler@lerctr.org; helo=webmail.lerctr.org; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:bb:dcff:fe50:d900]:43681 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1nSqDg-000Jkj-DF; Fri, 11 Mar 2022 19:06:56 -0600 Received: from 2600:1700:210:b18f:6187:1bb5:b26c:8ca2 by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Fri, 11 Mar 2022 19:06:56 -0600 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 Date: Fri, 11 Mar 2022 19:06:56 -0600 From: Larry Rosenman To: Michael Sierchio Cc: Freebsd net Subject: Re: IPv6: How does one have the system use a prefix gotten from rtsol with a static host part? In-Reply-To: References: Message-ID: <9d7847539e02bfb55e2739cb67f02ee2@lerctr.org> X-Sender: ler@lerctr.org Content-Type: multipart/alternative; boundary="=_05cd0c5f5b1c1537694d2c1d93944e80" X-Rspamd-Queue-Id: 4KFl4x4QNzz4lTZ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=lerctr.org header.s=ler2019 header.b="syg/kdqt"; dmarc=pass (policy=none) header.from=lerctr.org; spf=pass (mx1.freebsd.org: domain of ler@lerctr.org designates 192.147.25.65 as permitted sender) smtp.mailfrom=ler@lerctr.org X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[lerctr.org:s=ler2019]; FREEFALL_USER(0.00)[ler]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[lerctr.org:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[lerctr.org,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-net]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:8166, ipnet:192.147.25.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --=_05cd0c5f5b1c1537694d2c1d93944e80 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 03/11/2022 6:55 pm, Michael Sierchio wrote: > On Fri, Mar 11, 2022 at 4:45 PM Larry Rosenman wrote: > >> Greetings, >> I'm moving my colo to a new provider, and was wondering what the >> /etc/rc.conf looks like for >> getting a prefix-delegation via my FireWall, and then using a static >> host part on the interface? >> >> I.E., im a purely static setup, I have ::53:1 set for a host. >> What do I put in /etc/rc.conf >> to use the prefix that I get from my router, but using the ::53:1 host >> address? > > I have a fixed ipv6 address on my firewall, but use dhcp6c (pkg / > ports) to get a delegated /64 for my internal networks. > > ifconfig_eth0_ipv6="inet6 2001:558:6045:52:b85f:5149:d333:a02a > prefixlen 128 accept_rtadv" > > ifconfig_eth1_ipv6="inet6 -accept_rtadv" > > ipv6_gateway_enable="YES" > > ipv6_activate_all_interfaces="YES" > > rtadvd_enable="YES" > > rtadvd_interfaces="eth1" > > dhcp6c_enable="YES" > > dhcp6c_interfaces="eth0" ipv6_default_interface="eth1" that's not exactly what I want. I'll be getting a prefix delegated to my UniFi USG, and I want the FreeBSD host to be able to assign addresses in that Prefix (not SLAAC, but static host part). I don't know that what I want is possible, but figured I'd ask. I.E. the router assigns 2001:aa:bb:cc::/64 as the prefix, an I want the host to wind up at 2001:aa:bb:cc::53:1 what do I need to do to make that happen? -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106 --=_05cd0c5f5b1c1537694d2c1d93944e80 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

On 03/11/2022 6:55 pm, Michael Sierchio wrote:

 
On Fri, Mar 11, 2022 at 4:45 PM Lar= ry Rosenman <ler@le= rctr.org> wrote:
Greetings,
  &nb= sp;  I'm moving my colo to a new provider, and was wondering what the =
/etc/rc.conf looks like for
getting a prefix-delegation via my F= ireWall, and then using a static
host part on the interface?
I.E., im a purely static setup, I have <prefix>::53:1 set for a ho= st. 
What do I put in /etc/rc.conf
to use the prefix that I= get from my router, but using the ::53:1 host
address?
 
I have a fixed ipv6 address on my firewall, but use dhcp6c (pkg / port= s) to get a delegated /64 for my internal networks. 

ifco= nfig_eth0_ipv6=3D"inet6 2001:558:6045:52:b85f:5149:d333:a02a prefixlen 128 accept_rt= adv"

 

ifco= nfig_eth1_ipv6=3D"inet6 -accept_rtadv"

&nbs= p;

ipv6= _gateway_enable=3D"YES"

ipv6= _activate_all_interfaces=3D"YES"

 

rtad= vd_enable=3D"YES"

rtad= vd_interfaces=3D"eth1"

 

dhcp= 6c_enable=3D"YES"

dhcp= 6c_interfaces=3D"eth0"

ipv6_default_interface=3D"et= h1" 

that's not exactly what I want.  I'll be getting a prefix delegated= to my UniFi USG, and I want the FreeBSD host to be able to assign
add= resses in that Prefix (not SLAAC, but static host part).

I don't know that what I want is possible, but figured I'd ask.

I.E. the router assigns 2001:aa:bb:cc::/64 as the prefix, an I want the = host to wind up at 2001:aa:bb:cc::53:1 
what do I need to do to m= ake that happen?

= -- 
Larry Rosenman     &n= bsp;            = ;   http://www.lerctr.org/~ler
Phone: +1 = 214-642-9640           &n= bsp;     E-Mail: ler@lerctr.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106=
--=_05cd0c5f5b1c1537694d2c1d93944e80--