Thread View: news.software.nntp
10 messages
10 total messages
Started by Rasmus Bøg Hansen
Thu, 11 Jan 2001 07:46
IP banning INN 2.2.3
Author: Rasmus Bøg Hansen
Date: Thu, 11 Jan 2001 07:46
Date: Thu, 11 Jan 2001 07:46
26 lines
1846 bytes
1846 bytes
Hi
I have setup a Redhat 7.0 machine with INN 2.2.3 for my subnet. However I
do not want people from outside to connect - I see lots of 'Curious NNTP
explorers' - and I want to disallow all connections from non-local IP's.
I am familiar with nnrp.access - but it only (dis-)allows access to
newsgroups - how bout totally banning access ('You have no permission to
talk').
I have tried RTFM for some time, but I haven't been able to find anything
useful yet.
Btw. When setting up an incoming newsfeed, will it automatically create
groups in the feed - or is it still up to the administrator?
Thx in advance from an INN newbie.
Rasmus B�g Hansen
---
He has his own opinions
- just like the others.
-- Burnin' Red Ivanhoe
Re: IP banning INN 2.2.3
Author: Russ Allbery
Date: Thu, 11 Jan 2001 09:00
Date: Thu, 11 Jan 2001 09:00
23 lines
1780 bytes
1780 bytes
Rasmus B�g Hansen <moffe@diku.dk> writes:
> I have setup a Redhat 7.0 machine with INN 2.2.3 for my subnet. However
> I do not want people from outside to connect - I see lots of 'Curious
> NNTP explorers' - and I want to disallow all connections from non-local
> IP's.
> I am familiar with nnrp.access - but it only (dis-)allows access to
> newsgroups - how bout totally banning access ('You have no permission to
> talk').
That's exactly what it should be doing. nnrpd will drop the connection
right away if it doesn't match anything in nnrp.access. Those connections
will still show up as a "Curious NNTP explorer" in the report, though.
> Btw. When setting up an incoming newsfeed, will it automatically create
> groups in the feed - or is it still up to the administrator?
It's up to the administrator.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: IP banning INN 2.2.3
Author: Curious Charlie
Date: Thu, 11 Jan 2001 10:35
Date: Thu, 11 Jan 2001 10:35
34 lines
3049 bytes
3049 bytes
:: > I do not want people from outside to connect - I see lots of 'Curious
:: > NNTP explorers' - and I want to disallow all connections from non-local
::
:: > I am familiar with nnrp.access - but it only (dis-)allows access to
:: > newsgroups - how bout totally banning access ('You have no permission to
::
:: That's exactly what it should be doing. nnrpd will drop the connection
:: right away if it doesn't match anything in nnrp.access. Those connections
:: will still show up as a "Curious NNTP explorer" in the report, though.
No, they are curious explorers only if they make a connection and
disconnect without doing anything useful. The summary lists them
as permission denied if they truly are denied access.
The reason for sites being able to connect without getting an
immediate 502 GO AWAY message is that there is some line in the
nnrp.access file that allows AUTHINFO authentication. The default
INN k0deZ will allow any IP to give this AUTHINFO if it is specified;
we've hacked it here so it doesn't do this but only allows the listed
IPs to give this AUTHINFO information. Of course, if you have the
ability to give AUTHINFO, you can't be denied access right away.
If you do not have a specific AUTHINFO username/password combo in
your nnrp.access file, then you probably have a default `deny access'
line that says to use spaces to make it impossible to authenticate,
which is the default given in the config file as distributed.
Replace this line with its equivalent without this AUTHINFO junk
and then all connections outside the permitted range of hosts that
you specify below will then be dropped with `permission denied, bucko'
I'd point to stats that list curious nnrpd explorers separate from
nnrpd permission denied immediately following, but if i were to do
that, they'd have to kill me
Re: IP banning INN 2.2.3
Author: Russ Allbery
Date: Thu, 11 Jan 2001 11:58
Date: Thu, 11 Jan 2001 11:58
22 lines
1896 bytes
1896 bytes
Curious Charlie <autocyberretributionmeowbot@plonk.invalid> writes: > If you do not have a specific AUTHINFO username/password combo in your > nnrp.access file, then you probably have a default `deny access' line > that says to use spaces to make it impossible to authenticate, which is > the default given in the config file as distributed. Replace this line > with its equivalent without this AUTHINFO junk and then all connections > outside the permitted range of hosts that you specify below will then be > dropped with `permission denied, bucko' Oh, right, that. Thanks, I forgot about that. > I'd point to stats that list curious nnrpd explorers separate from > nnrpd permission denied immediately following, but if i were to do > that, they'd have to kill me Thanks for the correction. I've never entirely understood the point of that portion of the report or what anyone would do with it. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: IP banning INN 2.2.3
Author: Rich Skrenta
Date: Thu, 11 Jan 2001 13:26
Date: Thu, 11 Jan 2001 13:26
18 lines
1604 bytes
1604 bytes
=?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <moffe@diku.dk> writes: > I have setup a Redhat 7.0 machine with INN 2.2.3 for my subnet. However I > do not want people from outside to connect - I see lots of 'Curious NNTP > explorers' - and I want to disallow all connections from non-local IP's. In this case I would use ipchains to install firewall rules for the port, in addition to the protection that INN provides by itself. Something possibly like: /sbin/ipchains -A input -p tcp -s 127.0.0.1 -d 0/0 119 -j ACCEPT /sbin/ipchains -A input -p tcp -s some.local.host -d 0/0 119 -j ACCEPT /sbin/ipchains -A input -p tcp -s another.local.host -d 0/0 119 -j ACCEPT /sbin/ipchains -A input -p tcp -d 0/0 119 -j DENY installed in /etc/rc.d/rc.local prior to innd start should do it.
Re: IP banning INN 2.2.3
Author: bill davidsen
Date: Thu, 11 Jan 2001 16:13
Date: Thu, 11 Jan 2001 16:13
25 lines
2134 bytes
2134 bytes
In article <Pine.HPX.4.21.0101110840590.14416-100000@ask.diku.dk>,
=?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <moffe@diku.dk> wrote:
| I have setup a Redhat 7.0 machine with INN 2.2.3 for my subnet. However I
| do not want people from outside to connect - I see lots of 'Curious NNTP
| explorers' - and I want to disallow all connections from non-local IP's.
|
| I am familiar with nnrp.access - but it only (dis-)allows access to
| newsgroups - how bout totally banning access ('You have no permission to
| talk').
|
| I have tried RTFM for some time, but I haven't been able to find anything
| useful yet.
Wrong tools for the job. I assume you have internal and external NICs,
so just DENY packets to the NNTP port from the external interface.
Actually, you should DENY everything, and then decide what to allow,
like mail.
--
bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
Linux is a feedback loop. People use it because it has support for all
the neat hardware and applications they want, and implement all the
neat hardware and applications because they want to use Linux.
Re: IP banning INN 2.2.3
Author: Eric Edwards
Date: Thu, 11 Jan 2001 17:19
Date: Thu, 11 Jan 2001 17:19
16 lines
1748 bytes
1748 bytes
On Thu, 11 Jan 2001 08:46:30 +0100, Rasmus B�g Hansen <moffe@diku.dk> wrote: >Hi > >I have setup a Redhat 7.0 machine with INN 2.2.3 for my subnet. However I >do not want people from outside to connect - I see lots of 'Curious NNTP >explorers' - and I want to disallow all connections from non-local IP's. Assuming that your machine has separate interfaces for external and internal traffic, one solution is to use bindaddr in inn.conf to explicitly bind innd to only the internal interface. (Does this exist in 2.2.3? It's in 2.3...) -- Real courtesy requires human effort and understanding. Never let your machine or your habit send courtesy copies.
Re: IP banning INN 2.2.3
Author: uhlar
Date: Fri, 12 Jan 2001 08:17
Date: Fri, 12 Jan 2001 08:17
37 lines
2925 bytes
2925 bytes
Rich Skrenta <skrenta@textport.net> wrote: -> =?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <moffe@diku.dk> writes: ->> I have setup a Redhat 7.0 machine with INN 2.2.3 for my subnet. However I ->> do not want people from outside to connect - I see lots of 'Curious NNTP ->> explorers' - and I want to disallow all connections from non-local IP's. -> In this case I would use ipchains to install firewall rules for the port, -> in addition to the protection that INN provides by itself. -> Something possibly like: -> /sbin/ipchains -A input -p tcp -s 127.0.0.1 -d 0/0 119 -j ACCEPT -> /sbin/ipchains -A input -p tcp -s some.local.host -d 0/0 119 -j ACCEPT -> /sbin/ipchains -A input -p tcp -s another.local.host -d 0/0 119 -j ACCEPT -> /sbin/ipchains -A input -p tcp -d 0/0 119 -j DENY I'd recommend use REJECT instead of deny, will bring down incoming ip traffic a little (and brings up outgoing, but much less) and ppl will know thay don't have to try it. you can also use some.local.net/netmask of course. IF freeBSD use something like ipfw add 10000 allow tcp from local.net/mask to any 119 in ipfw add 10010 unreach port tcp from any to any 119 in -- Matus "fantomas" Uhlar, sysadmin at NEXTRA, Slovakia; IRCNET admin of *.sk uhlar@fantomas.sk ; http://www.fantomas.sk/ ; http://www.nextra.sk/ I feel like I'm diagonally parked in a parallel universe. --- Odchoz� zpr�va obsahuje viry. Zkontrolov�no antivirov�m syst�mem AVG (http://www.grisoft.cz). Verze: 6.0.217 / Virov� b�ze: 102 - datum vyd�n�: 1/12/2000
Re: IP banning INN 2.2.3
Author: Rasmus Bøg Hansen
Date: Fri, 12 Jan 2001 12:00
Date: Fri, 12 Jan 2001 12:00
40 lines
2835 bytes
2835 bytes
On 12 Jan 2001 uhlar@fantomas.sk wrote: > Rich Skrenta <skrenta@textport.net> wrote: > > -> =?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <moffe@diku.dk> writes: > ->> I have setup a Redhat 7.0 machine with INN 2.2.3 for my subnet. However I > ->> do not want people from outside to connect - I see lots of 'Curious NNTP > ->> explorers' - and I want to disallow all connections from non-local IP's. > > -> In this case I would use ipchains to install firewall rules for the port, > -> in addition to the protection that INN provides by itself. > > -> Something possibly like: > > -> /sbin/ipchains -A input -p tcp -s 127.0.0.1 -d 0/0 119 -j ACCEPT > -> /sbin/ipchains -A input -p tcp -s some.local.host -d 0/0 119 -j ACCEPT > -> /sbin/ipchains -A input -p tcp -s another.local.host -d 0/0 119 -j ACCEPT > -> /sbin/ipchains -A input -p tcp -d 0/0 119 -j DENY > > I'd recommend use REJECT instead of deny, will bring down incoming ip > traffic a little (and brings up outgoing, but much less) and ppl will know > thay don't have to try it. > > you can also use some.local.net/netmask of course. IF freeBSD use something > like > > ipfw add 10000 allow tcp from local.net/mask to any 119 in > ipfw add 10010 unreach port tcp from any to any 119 in I have only one interface running with IP-aliasing (thus having two IP's). However it is serving news clients from both IP's (that is our global IP's and our masqueraded addresses). Right now I rely on the 'no rule - no acces' thing - perhaps I will look at ipchains (linux 2.2) some day, shen I get the time. Thanks for all the answers. Rasmus B�g Hansen
Re: IP banning INN 2.2.3
Author: bill davidsen
Date: Mon, 22 Jan 2001 20:59
Date: Mon, 22 Jan 2001 20:59
34 lines
2717 bytes
2717 bytes
In article <Pine.HPX.4.21.0101121255190.13991-100000@ask.diku.dk>, =?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <moffe@diku.dk> wrote: | On 12 Jan 2001 uhlar@fantomas.sk wrote: | | > Rich Skrenta <skrenta@textport.net> wrote: | > I'd recommend use REJECT instead of deny, will bring down incoming ip | > traffic a little (and brings up outgoing, but much less) and ppl will know | > thay don't have to try it. You can always start a firewall argument on tat, with people who say that even a REJECT gives information. | I have only one interface running with IP-aliasing (thus having two | IP's). However it is serving news clients from both IP's (that is our | global IP's and our masqueraded addresses). Right now I rely on the 'no | rule - no acces' thing - perhaps I will look at ipchains (linux 2.2) some | day, shen I get the time. I highly commend going to the 2.4 kernel and using iptables when you upgrade. The capabilities are far better. I stop here because we are drifting off the news topic, but c.o.l.networking is a good place to drop a post when you are ready to change. I went to 2.4 with the test5 release, and have had stable operation. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc The line from the immutable past to the desired future is useful to justify continuing to tack into the wind, making a major change in course, or coasting into safe harbor. It is not a map of where you are going, just how to get where you want to go.
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