Article View: news.software.nntp
Article #45476Re: How to limit access from range of ip addresses ?
From: awarmanf
Date: Sun, 02 Apr 2000 00:00
Date: Sun, 02 Apr 2000 00:00
55 lines
2522 bytes
2522 bytes
In article <yln1ne7a38.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: > 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. Oh God ! I made a mistake what I mean is netmask of 27. FYI, our link is in network 212.1.2.128/25 then I want to allow access from ip addresses range of 212.1.2.192 - 212.1.2.212. > If you really mean to give access to the whole /27, you can use: > > 212.1.2.192/27:Read Post:::* But the ip 212.1.2.192 is a network itself with netmask /27. I wonder is it possible that a computer which has the ip address same as the ip network can open connection with the news server ? > 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. That's truly amazing. You know I am a newbie perl too. And I just see now that the rule is a simple perl pattern substituting. > -- > Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/> > Any docs in innd which can explain more rules ? I installed package innd belong to CD-ROM Red Hat 6.1. TIA ~yudi Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<8c6bmf$uos$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-mailReferences:
<8c3o7u$8ui$1@nnrp1.deja.com> <yln1ne7a38.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <8c6bmf$uos$1@nnrp1.deja.com> Subject: Re: How to limit access from range of ip addresses ? Date: Sun, 02 Apr 2000 00:00:00 +0000 From: awarmanf@hotmail.com References: <8c3o7u$8ui$1@nnrp1.deja.com> <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-mail X-Deja-AN: 605491172 X-Http-Proxy: 1.0 x41.deja.com:80 (Squid/1.1.22) for client 202.134.1.252 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sun Apr 02 02:35:59 2000 GMT X-MyDeja-Info: XMYDJUIDawarmanf Newsgroups: news.software.nntp X-Http-User-Agent: Lynx/2.8.2rel.1 libwww-FM/2.14