Thread View: news.software.nntp
4 messages
4 total messages
Started by awarmanf
Sat, 01 Apr 2000 00:00
How to limit access from range of ip addresses ?
Author: awarmanf
Date: Sat, 01 Apr 2000 00:00
Date: Sat, 01 Apr 2000 00:00
20 lines
1166 bytes
1166 bytes
Hi ... 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 ? Thanks in advance. ~yudi Sent via Deja.com http://www.deja.com/ Before you buy.
Re: How to limit access from range of ip addresses ?
Author: 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/>
Re: How to limit access from range of ip addresses ?
Author: Russ Allbery
Date: Sat, 01 Apr 2000 00:00
Date: Sat, 01 Apr 2000 00:00
28 lines
1667 bytes
1667 bytes
awarmanf <awarmanf@hotmail.com> writes: > Russ Allbery <rra@stanford.edu> wrote: >> 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 ? To INN, I'm pretty sure 212.1.2.192/27 is exactly equivalent to listing all IP addresses betwen 212.1.2.192 and 212.1.2.223 inclusive (although I admit I haven't looked at the source to be sure). > And I just see now that the rule is a simple perl pattern substituting. Well, wildmat actually, which is similar but not the same. See the man page for wildmat. > Any docs in innd which can explain more rules ? man nnrp.access. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: How to limit access from range of ip addresses ?
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads