From owner-freebsd-pf@freebsd.org Wed Jun 5 15:45:14 2019 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB97415B1A7F for ; Wed, 5 Jun 2019 15:45:13 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A137884E4; Wed, 5 Jun 2019 15:45:01 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x55Fiq0W053438; Wed, 5 Jun 2019 08:44:52 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x55FiqJf053437; Wed, 5 Jun 2019 08:44:52 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201906051544.x55FiqJf053437@gndrsh.dnsmgr.net> Subject: Re: FreeBSD 12, pf, and Dual IP stack? In-Reply-To: To: David Mehler Date: Wed, 5 Jun 2019 08:44:52 -0700 (PDT) CC: Kurt Jaeger , freebsd-pf X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 2A137884E4 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.59 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.88)[0.883,0]; IP_SCORE(0.04)[ip: (0.15), ipnet: 69.59.192.0/19(0.07), asn: 13868(0.05), country: US(-0.06)]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.78)[0.785,0]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[gndrsh.dnsmgr.net,gndrsh.dnsmgr.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.986,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2019 15:45:14 -0000 > Hello, > > So your setup looks like mine except I only have one ipv4 and one ipv6 > interface, how do I alias the ipv6 address space I have? I don't know > how to hex split. > > Thanks. > Dave. > > > On 6/5/19, Kurt Jaeger wrote: > > Hi! > > > >> Yes, an ifconfig on my vtnet0 interface does show the ipv6 address and > >> it has prefixlen 64 I'm assuming that's what your refering to? Can you > >> clarify your meaning about ipv6 aliases? > > > > Here's one of my systems, with two IPv6 addresses, so it has an two > > IPv6 and two IPv4 addresses: > > > > igb0: flags=8843 metric 0 mtu 1500 > > > > options=e527bb > > ether 0c:9d:92:85:0f:7a > > inet 193.105.105.132 netmask 0xffffffc0 broadcast 193.105.105.191 > > inet 193.105.105.133 netmask 0xffffffff broadcast 193.105.105.133 > > inet6 fe80::e9d:92ff:fe85:f7a%igb0 prefixlen 64 scopeid 0x1 > > inet6 2001:14f8:200:4::4 prefixlen 64 > > inet6 2001:14f8:200:4::5 prefixlen 64 I am not sure if this well help you to understand the IPv6 range of addresses, but the two above short form numbers are in long form: 2001:14f8:0200:0004: 0000:0000:0000:0004 2001:14f8:0200:0004: 0000:0000:0000:0005 I have inserted the space to show you the break at "prefixlen 64, aka /64". You actaully have the lower 64 bits to play with other than the 2 that have been setup, one being your IP address, and the other being your default router on this segment. > > media: Ethernet autoselect (1000baseT ) > > status: active > > nd6 options=21 > > > > -- > > pi@opsec.eu +49 171 3101372 One year to go ! -- Rod Grimes rgrimes@freebsd.org