Thread View: news.software.nntp
6 messages
6 total messages
Started by Miasmal
Mon, 29 Jan 2001 03:55
Linux7.0 innd/leafnode config
Author: Miasmal
Date: Mon, 29 Jan 2001 03:55
Date: Mon, 29 Jan 2001 03:55
19 lines
1737 bytes
1737 bytes
I'm trying to get INN set up on my linux test box. When trying to run
'trn' I get the message:
no default: Unknown host
News server no default unavailable, try again later
I suppose I missed entering the news server name somewhere?
Which files in /etc/news do I need more work on?
Also, I'm also trying out leafnode (1.9.*) It compiles fine,
and when I run fetchnews it will pull the list of newsgroups, however
when I attempt to use trn I will get the above message.
--
-- . John Kutsuzawa, CFII // '94 Columbia Univ. ME //
.________|________. Commercial Pilot, Certified Flight Instructor //
--\(*)/-- miasmal+pabraw+wyatt of Epic // (N07) (HYW) //
o/ \o <a href="http://www.nic.com/~miasmal">homepage</a>
Re: Linux7.0 innd/leafnode config
Author: Jon Bell
Date: Mon, 29 Jan 2001 05:47
Date: Mon, 29 Jan 2001 05:47
25 lines
1899 bytes
1899 bytes
In article <952pjg$mfu$1@nic.com>, Miasmal <miasmal@nic.com> wrote: > >I'm trying to get INN set up on my linux test box. When trying to run >'trn' I get the message: > >no default: Unknown host >News server no default unavailable, try again later > >I suppose I missed entering the news server name somewhere? >Which files in /etc/news do I need more work on? 'trn' normally has the default news server compiled in by whoever compiled and installed it. Sometimes it looks in a file named something like /usr/local/lib/trn/server, but the path to *that* file has to be specified by whoever compiled the software. Your best bet is probably to set the NNTPSERVER environment variable to the name or IP address of whatever server you want to use. -- Jon Bell <jtbell@presby.edu> Presbyterian College Dept. of Physics and Computer Science Clinton, South Carolina USA [ Questions about newsgroups? Visit http://www.geocities.com/nnqweb/ ] [ or ask in news:news.newusers.questions ]
Re: Linux7.0 innd/leafnode config
Author: Miasmal
Date: Mon, 29 Jan 2001 13:48
Date: Mon, 29 Jan 2001 13:48
41 lines
3023 bytes
3023 bytes
In article <G7wtEy.MGn@presby.edu>, Jon Bell <jtbell@presby.edu> wrote:
>In article <952pjg$mfu$1@nic.com>, Miasmal <miasmal@nic.com> wrote:
>>I'm trying to get INN set up on my linux test box. When trying to run
>>'trn' I get the message:
>>
>>no default: Unknown host
>>News server no default unavailable, try again later
>>
>>I suppose I missed entering the news server name somewhere?
>>Which files in /etc/news do I need more work on?
>
>'trn' normally has the default news server compiled in by whoever compiled
>and installed it. Sometimes it looks in a file named something like
>/usr/local/lib/trn/server, but the path to *that* file has to be specified
>by whoever compiled the software.
>
>Your best bet is probably to set the NNTPSERVER environment variable to
>the name or IP address of whatever server you want to use.
>
>Jon Bell <jtbell@presby.edu> Presbyterian College
>Dept. of Physics and Computer Science Clinton, South Carolina USA
If I go "NNTPSERVER=news.telocity.com;export NNTPSERVER' I can use trn..
but I will be connecting to a remote server. I'm now trying to
concentrate on using leafnode to pull articles into my machine (static IP
dsl connection) so I can read locally and let the system fetch articles
on its free time.
In /etc/xinetd.d/leafnode I put in service=nntp, protocol=tcp, wait=no,
server=/usr/local/sbin/leafnode user=news (I'm going by memory here)
In my /var/log/messages I don't see xinetd complaining. However, when
I try to telnet to localhost port 119, I get connection refused, which
means that the service is not running or configured incorrectly (?).
--
-- . John Kutsuzawa, CFII // '94 Columbia Univ. ME //
.________|________. Commercial Pilot, Certified Flight Instructor //
--\(*)/-- miasmal+pabraw+wyatt of Epic // (N07) (HYW) //
o/ \o <a href="http://www.nic.com/~miasmal">homepage</a>
Re: Linux7.0 innd/leafnode config
Author: David E. Smith
Date: Mon, 29 Jan 2001 20:09
Date: Mon, 29 Jan 2001 20:09
42 lines
2497 bytes
2497 bytes
Last time, on the hit series news.software.nntp, Miasmal shocked the world by saying: > If I go "NNTPSERVER=news.telocity.com;export NNTPSERVER' I can use trn.. > but I will be connecting to a remote server. I'm now trying to Right. If you're setting up a local server, you'll want to set NNTPSERVER to 'localhost' or 'my.machine.com' or somethin'. > In /etc/xinetd.d/leafnode I put in service=nntp, protocol=tcp, wait=no, > server=/usr/local/sbin/leafnode user=news (I'm going by memory here) > In my /var/log/messages I don't see xinetd complaining. However, when This, I'll pass on. I'm only used to "old-school" inetd, where you just put everything on one line in /etc/inetd.conf, like this: nntp stream tcp nowait news /usr/sbin/tcpd /usr/local/sbin/leafnode (The above snipped from my working configuration.) > I try to telnet to localhost port 119, I get connection refused, which > means that the service is not running or configured incorrectly (?). Probably "not running." Did you restart xinetd after you made the changes mentioned above? ...dave ---- David E. Smith, POB 515045, St. Louis MO 63151 http://www.technopagan.org/ dave@technopagan.org http://www.bureau42.com/ http://metadave.net/ "Retail gets weirder every year." -- Too Much Espresso Guy
Re: Linux7.0 innd/leafnode config
Author: miasmal
Date: Tue, 30 Jan 2001 03:16
Date: Tue, 30 Jan 2001 03:16
37 lines
2153 bytes
2153 bytes
In article <3li459.i3p.ln@technopagan.org>,
David E. Smith <dave@technopagan.org> wrote:
>
>This, I'll pass on. I'm only used to "old-school" inetd, where you just
>put everything on one line in /etc/inetd.conf, like this:
>
>nntp stream tcp nowait news /usr/sbin/tcpd /usr/local/sbin/leafnode
>
>(The above snipped from my working configuration.)
I think I got it working.. I am posting now..
# description: leafnode
service nntp
{
socket_type = stream
wait = no
user = news
protocol = tcp
server = /usr/local/sbin/leafnode
}
Now, my next challenge is to restrict access..
Readme file says I should be using tcpd.. I think so, looking at above
configuration file, right?
I need to edit hosts.deny, the leafnode readme file says to use
leafnode: ALL EXCEPT LOCAL
This didn't work, so I tried:
leafnode: ALL EXCEPT localhost, which doesn't work either.
The /var/log/messages complain about being unable to resolve
localhost.localdomain.. hmm let dig deeper into hosts files..
Re: Linux7.0 innd/leafnode config
Author: David E. Smith
Date: Tue, 30 Jan 2001 10:29
Date: Tue, 30 Jan 2001 10:29
37 lines
2335 bytes
2335 bytes
Last time, on the hit series news.software.nntp, miasmal shocked the world by saying: > Now, my next challenge is to restrict access.. From the examples you provided, I assume your goal is to prevent access from everywhere except 'localhost'? Just put something like this in /etc/hosts.allow: leafnode: LOCAL It's generally better to exclude everyone, and then only permit specific connections, than to try to go the other way round. Or, if you feel really ambitious (and enabled ipchains in your kernel), you could try something like this: ipchains -A input -p tcp -s localhost -d localhost nntp -j ACCEPT ipchains -A input -p tcp -s localhost nntp -d localhost -j ACCEPT ipchains -A input -l -p tcp -s any/0 -d any/0 nntp -j REJECT Mind you, I'm verging WAY off-topic for this group here. And the above might not work anyway, since I'm typing from memory... ...dave ---- David E. Smith, POB 515045, St. Louis MO 63151 http://www.technopagan.org/ dave@technopagan.org http://www.bureau42.com/ http://metadave.net/ "Retail gets weirder every year." -- Too Much Espresso Guy
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