Article View: news.software.nntp
Article #15735Re: How to prevent INN from allowing connections from disallowed hosts ?
From: Darrell Fuhriman
Date: Tue, 11 Mar 1997 00:00
Date: Tue, 11 Mar 1997 00:00
33 lines
2003 bytes
2003 bytes
Karl Kleinpaste <karl@jprc.com> writes: > Nope. INN has control of the NNTP port -- readers connect via innd, > not inetd. Innd in turn hands off to nnrpd when it finds that the > connecting client is not known to hosts.nntp (that is, fails the check > for being a feed host), and thereafter nnrpd checks against > nnrp.access and should fail there as well if the host is not welcome > at all. > > The solution is only and exactly nnrp.access. This is Unix, there is never only one way. The way I've done it is to create virtual interface (le0:whatever on solaris). Say "news" and "nntp" then modify innd to bind only to a specific interface (nntp) rather than INADDR_ANY. Next, you write a short inetd-like program to bind to the other interface (news) and fork off nnrpds. (Alternatively you may be able to do it by starting innd before inetd then run nnrpd out of inetd, though I've never tested that.) Have your feeders change to use nntp.whatever for incoming feeds, and your readers to use news.whatever for reading.[1] Problem solved. BTW, I've done exactly this on two servers. Darrell [1] This is a good thing to do anyway
Technical Details
Message-ID:
<m2sp22xj75.fsf@xian.grumblesmurf.net>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:
<MPG.d8f476d5680deb9989682@news.kraft.com> <vxku3micql3.fsf@pocari-sweat.jprc.com> <33259412.5D31610A@spinne.com> <vxkpvx6clta.fsf@pocari-sweat.jprc.com>Show Full Headers
Complete Article Headers
Message-ID: <m2sp22xj75.fsf@xian.grumblesmurf.net> Subject: Re: How to prevent INN from allowing connections from disallowed hosts ? Date: Tue, 11 Mar 1997 00:00:00 +0000 From: Darrell Fuhriman <darrell@grumblesmurf.net> References: <MPG.d8f476d5680deb9989682@news.kraft.com> <vxku3micql3.fsf@pocari-sweat.jprc.com> <33259412.5D31610A@spinne.com> <vxkpvx6clta.fsf@pocari-sweat.jprc.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: 224753222 Distribution: inet Sender: darrell@xian.grumblesmurf.net To: Karl Kleinpaste <karl@jprc.com> Organization: Structured Network Systems, Inc. Newsgroups: news.software.nntp