Article View: news.software.nntp
Article #82223Re: INN's readers.conf: CIDR with hostname?
From: D. Stussy
Date: Thu, 26 Nov 2009 22:37
Date: Thu, 26 Nov 2009 22:37
41 lines
3135 bytes
3135 bytes
"Bo Lindbergh" <blgl@hagernas.com> wrote in message news:hem1ve$b3a$1@aioe.org... > In article <87k4xdn54a.fsf@windlord.stanford.edu>, > Russ Allbery <rra@stanford.edu> wrote: > > If I understand correctly, he wants to write something like: > > > > foo.example.com/23 > > > > and have it do an IP address lookup for foo.example.com, figure out what > > the corresponding /23 network that contains it, and allow access to that > > network. > > > > That isn't currently supported. This is the first time anyone has > > mentioned doing such a thing. > > So what happens if foo.example.com has both A and AAAA records? > Using the same prefix length for both IPv4 and IPv6 addresses > is unlikely to be useful. 1) If the CIDR length is >32, it is obviously for IPv6. For exactly 32, there's no need for it to be specified in IPv4 (as opposed to omission), so that case can also be deemed for IPv6 only. "/0" won't matter which AF is chosen as that allows everything. As networks for IPv6 are assigned "/32's" as their largest unit of assignment by the regional RIRs, I don't see a problem with "/1" ... "/31" being assumed to be IPv4 when both types of addresses resolve. Ranges for IPv6 between "/1" and "/31" would probably have to use an address literal anyway, but if a hostname is desired, then it's up to the adminstrator to make certain that it does NOT resolve to any IPv4 address. 2) Multi-homed entries within the same address family would need to have the mask applied to each entry. (Some programs have a bug with this - selecting only the first entry and ignoring the others within the same AF). However, watch out for when the post-mask value is equal. (Iptables 1.4.5 has that bug - adding a rule N times for N addresses, even when after applying the subnet mask the network range is the same, thus adding N identical rules instead of just one).
Technical Details
Message-ID:
<hemvuq$dab$1@snarked.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mailReferences:
<hekh0d$21q$1@snarked.org> <hel838$p23$1@news.trigofacile.com> <87k4xdn54a.fsf@windlord.stanford.edu> <hem1ve$b3a$1@aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <hemvuq$dab$1@snarked.org> Subject: Re: INN's readers.conf: CIDR with hostname? Date: Thu, 26 Nov 2009 14:37:13 -0800 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <hekh0d$21q$1@snarked.org> <hel838$p23$1@news.trigofacile.com> <87k4xdn54a.fsf@windlord.stanford.edu> <hem1ve$b3a$1@aioe.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 41 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-118-30-21.lsanca.dsl-w.verizon.net X-Trace: snarked.org 1259275034 13643 71.118.30.21 (26 Nov 2009 22:37:14 GMT) X-Complaints-To: newsmaster+complaints@snarked.org NNTP-Posting-Date: Thu, 26 Nov 2009 22:37:14 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Original-Bytes: 2932