From owner-freebsd-pf@freebsd.org Thu Jun 6 06:15:51 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 6CAF515C55AC for ; Thu, 6 Jun 2019 06:15:51 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 324B786ACF for ; Thu, 6 Jun 2019 06:15:50 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by mail-oi1-x22c.google.com with SMTP id m206so751133oib.12 for ; Wed, 05 Jun 2019 23:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=cFa1QCkdsjR9+DxetsKvi0i3bYaK8fbjs3v9tXiETvo=; b=EFf5b3Qq5ax3iB16XNqidIvkEtHvAIlVRxwbnevn8RLNxfxJskRHokWsp3oSrH+x+O wPckFa/smyIDQswYvvSpLi+2ki/QDTF9OmyMcp/qE9Fweu52+xKyQdrFCtcLZFSU9hiU S+pbH0/MkgssxkiRWzbywU9WudzFxmFcU/lAUyVVvBkLtVJAie+WBU9vRTDHQcMHu0vs bR8+Gn83JQvGZiwL+224FpcXeyPnNVXlRra4+MIQxYphNfEQo/fD5vDT51nMf2hRVkf4 nh9GXx+0EaMPgzb20OKAQWl0plzBpWasf9tsVlhrpSKkdEG0BFnSnsgHCjJl+YKpFMZS +vgg== 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=cFa1QCkdsjR9+DxetsKvi0i3bYaK8fbjs3v9tXiETvo=; b=kyRIOcki+AB7FHPB1b0YjquVRiB5td/JwMkhglzlt5vrTvBjr9lU3T0pWPJvPgqF6z 77P3esfTeqjAvOHfkC6All5G6OISIWgAjmlaXlkuQf1KYW4LZJ2Pvn53xH0gxrvPmUNi NDBpFsvkJvAZazMWOVtN6B756z6QEzvbk6fTsddI95GQ3JUocziHKHRmGoeQyJReL9me NEQLc94MP1KU3fVVKhtrhuGuVmu0TLNX0pw9diotpEKCr69xp4g5lSV7YxbfVpBBTC+1 ROq/cYQeFBEUkWbHpz2ppyFx68h9FJcm2Edsmp1FDNaUWqcDacqnjiM4OKgXDLm5Mk3e Yozg== X-Gm-Message-State: APjAAAXv1CBPh+YVhYBxpWoQ6GprGn1EiTvFBZeJR5BRFq8qO8rJH28W 8d+p6JcE99n9Jhnyb+JzNJ/l+3hJ5lbPcfjD3QEfaf5n X-Google-Smtp-Source: APXvYqzbww+i6TCxHPhnh0frhC2E0QvN5F1Gnrm+6f/zhyvjB1AeW9ktq6rWqpAo+yCxllkOqOil1BZaGJ4BWMmhxl0= X-Received: by 2002:aca:b444:: with SMTP id d65mr6358874oif.102.1559801749021; Wed, 05 Jun 2019 23:15:49 -0700 (PDT) MIME-Version: 1.0 References: <201906051544.x55FiqJf053437@gndrsh.dnsmgr.net> In-Reply-To: From: "Kurt Buff - GSEC, GCIH" Date: Wed, 5 Jun 2019 23:15:36 -0700 Message-ID: Subject: Re: FreeBSD 12, pf, and Dual IP stack? To: freebsd-pf Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 324B786ACF X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=EFf5b3Qq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kurtbuff@gmail.com designates 2607:f8b0:4864:20::22c as permitted sender) smtp.mailfrom=kurtbuff@gmail.com X-Spamd-Result: default: False [-5.93 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.94)[-0.942,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pf@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-2.98)[ip: (-9.31), ipnet: 2607:f8b0::/32(-3.22), asn: 15169(-2.30), country: US(-0.06)]; RCVD_IN_DNSWL_NONE(0.00)[c.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Thu, 06 Jun 2019 06:15:51 -0000 The addresses: 2001:14f8:0200:0004: 0000:0000:0000:0004 2001:14f8:0200:0004: 0000:0000:0000:0005 may also be written as: 2001:14f8:0200:0004::4 2001:14f8:0200:0004::5 or even 2001:14f8:200:4::4 2001:14f8:200:4::5 See, for instance, this link: https://en.wikipedia.org/wiki/Ipv6#Address_representation Kurt On Wed, Jun 5, 2019 at 9:29 PM David Mehler wrote: > > Hello, > > Thanks everyone for your help so far. I have several questions. First, > from the numbers: > > 2001:14f8:0200:0004: 0000:0000:0000:0004 > 2001:14f8:0200:0004: 0000:0000:0000:0005 > > it looks like the address breaks at 4 the system is the first four > segments, and anything after is hostbased, is this true? > > If so, my ipv6 address is not like that, it has a double colon in it > and has only three hexes at the end. It is a /64 so how do I split it > and for instance I've got a jail on a cloned interface lo1 I'd like to > put one of the addresses on it then use pf to forward traffic bound to > that ip. > > Sorry if these are elementary questions this is new to me. > > Thanks. > Dave. > > > On 6/5/19, Rodney W. Grimes wrote: > >> 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 > > > _______________________________________________ > freebsd-pf@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org"