Article View: news.software.nntp
Article #45442Re: How to limit access from range of ip addresses ?
From: Russ Allbery
Date: Fri, 31 Mar 2000 00:00
Date: Fri, 31 Mar 2000 00:00
28 lines
1576 bytes
1576 bytes
awarmanf <awarmanf@my-deja.com> writes: > I am a newbie and have installed a local news server on my linux box. I > want to give access (Read & Post) to some of ip addresses to my news > server. Their ip are 212.1.2.192/25 - 212.1.2.212/25. How to make a > rule on /etc/news/nnrp.access ? I'm not sure what you mean by those /25s that you're putting on the end of the addresses, since what you're describing is partway between a /27 and a /28 if I'm interpreting your address range correctly. If you really mean to give access to the whole /27, you can use: 212.1.2.192/27:Read Post:::* If you need to restrict it to literally just the range of hosts you specified, use: 212.1.2.19[2-9]:Read Post:::* 212.1.2.20?:Read Post:::* 212.1.2.21[012]:Read Post:::* which I believe will work. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<yln1ne7a38.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<8c3o7u$8ui$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
Message-ID: <yln1ne7a38.fsf@windlord.stanford.edu> Subject: Re: How to limit access from range of ip addresses ? Date: Fri, 31 Mar 2000 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <8c3o7u$8ui$1@nnrp1.deja.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 605102999 Content-Type: text/plain; charset=us-ascii Organization: The Eyrie Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Newsgroups: news.software.nntp