🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #49812

Re: IP banning INN 2.2.3

#49812
From: Rasmus Bøg Hansen
Date: Fri, 12 Jan 2001 12:00
40 lines
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

Technical Details
Message-ID: <Pine.HPX.4.21.0101121255190.13991-100000@ask.diku.dk>
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!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!neel.uni2.net!news.net.uni-c.dk!munin.diku.dk!ask.diku.dk!moffe
References: <Pine.HPX.4.21.0101110840590.14416-100000@ask.diku.dk> <93kca6$u8u$1@feed.textport.net> <979287435.112452@virtual.nextra.sk>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.HPX.4.21.0101121255190.13991-100000@ask.diku.dk>
Subject: Re: IP banning INN 2.2.3
Date: Fri, 12 Jan 2001 13:00:14 +0100
From: Rasmus Bøg Hansen <moffe@diku.dk>
References: <Pine.HPX.4.21.0101110840590.14416-100000@ask.diku.dk> <93kca6$u8u$1@feed.textport.net> <979287435.112452@virtual.nextra.sk>
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!supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!neel.uni2.net!news.net.uni-c.dk!munin.diku.dk!ask.diku.dk!moffe
Newsgroups: news.software.nntp
Organization: Department of Computer Science, University of Copenhagen
Lines: 39
NNTP-Posting-Host: ask.diku.dk
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: 8BIT
X-Trace: munin.diku.dk 979300815 29640 130.225.96.225 (12 Jan 2001 12:00:15 GMT)
X-Complaints-To: news@diku.dk
NNTP-Posting-Date: 12 Jan 2001 12:00:15 GMT
In-Reply-To: <979287435.112452@virtual.nextra.sk>