I can "show my work" but I wanted to shorten the post. If you want/need
that info I'd be more than happy to post.
here's the guide I followed: http://ubuntuforums.org/showthread.php?t=676837
I installed using yaourt
I do not have my firewall running
hosts.allow/deny have been disabled in case.
leafnode has been configured with user/pass, server address and port.
if I type "leafnode" I get this:
//
200 Leafnode NNTP Daemon, version 1.11.7 running at [dns] (my fqdn: [dns])
//
I found a News.log file in /var/log/ and it says connected to newsgroup
server with user/pass, no posts sent. If I do a fetchnews I get new
articles in /var/spool/news/ So I do NOT think its the server config but
if I do a telnet it says:
//
[root@Desktop log]# telnet localhost 119
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
//
Anybody have any ideas? I'd appreciate any help, I'll try any ideas and
if you need some more info or output let me know. And maybee I'm
overlooking something simple. :/
Thanks
Geo
--
"'Bill Gates can't guarantee Windows, so how in the HELL can you
guarantee our safety!' --John Crichton (Farscape)"
> here's the guide I followed:
> http://ubuntuforums.org/showthread.php?t=676837
A fine guide that one, although I will have to say that it is a guide I
wrote myself :).
> I installed using yaourt
> I do not have my firewall running
> hosts.allow/deny have been disabled in case.
I am not familiar with Arch, and most certainly not with yaourt, but
unless things are radically different you will need to place Leafnode in
both of these files as described in the guide to allow access to INET
services.
> if I type "leafnode" I get this:
>
> //
> 200 Leafnode NNTP Daemon, version 1.11.7 running at [dns] (my fqdn: [dns])
> //
Hmmm.... the guide is actually aimed at Leafnode _2_ rather than
Leafnode 1...
> [root@Desktop log]# telnet localhost 119
> Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Connection refused
> //
This is the heart of the problem and I suspect relates to an inetd
issue, possibly simply the hosts.deny and hosts.allow issue mentioned
previously. Are you running the openbsd inetd? If you are running xinetd
the setup will be a little different.
Andrew
--
Do you think that's air you're breathing?
haha nice! it was the best one I could find to be honest, glad I got in
touch with someone who definitely knows his sh-t
>> I installed using yaourt
>> I do not have my firewall running
>> hosts.allow/deny have been disabled in case.
>
> I am not familiar with Arch, and most certainly not with yaourt, but
> unless things are radically different you will need to place Leafnode in
> both of these files as described in the guide to allow access to INET
> services.
>
Yaourt is like an addon to deb/apt, it gives you the ability to compile
a package for arch and install regularly using sources.
>> if I type "leafnode" I get this:
>>
>> //
>> 200 Leafnode NNTP Daemon, version 1.11.7 running at [dns] (my fqdn: [dns])
>> //
>
> Hmmm.... the guide is actually aimed at Leafnode _2_ rather than
> Leafnode 1...
Is leafnode 2 not in development? I mean that doesn't necessarily mean
its bad but its not available in the normal arch repos
>
>> [root@Desktop log]# telnet localhost 119
>> Trying 127.0.0.1...
>> telnet: Unable to connect to remote host: Connection refused
>> //
>
> This is the heart of the problem and I suspect relates to an inetd
> issue, possibly simply the hosts.deny and hosts.allow issue mentioned
> previously. Are you running the openbsd inetd? If you are running xinetd
> the setup will be a little different.
>
Well. It IS "xinetd v2.3.14-5" so I'm guessing the setup is the problem
then. I was fairly sure allow/deny was ok, I used exactly what was shown
and other services work.
> Andrew
Hi, sorry to be impatient. But its close to bedtime here (3am). I went
to their site, and read the install. I have put
//
b. After you have figured which of the two files to edit (or
create), add
this to the xinetd configuration file:
service nntp
{
flags = NAMEINARGS NOLIBWRAP
socket_type = stream
protocol = tcp
wait = no
user = news
server = /usr/sbin/tcpd
server_args = /usr/local/sbin/leafnode
instances = 7
per_source = 3
}
//
as per guide. I stopped xinetd and started again. I get the same msg
about the daemon running but when I telnet into it I get
//
[freeballer@Desktop ~]$ telnet localhost 119
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[freeballer@Desktop ~]$
//
I'm going to go back tomorrow and remove everything from
hosts.deny/allow and see if that helps but any output on method so far
or information that may be useful is always welcome
thanks for replying btw :)
freeballer
> Is leafnode 2 not in development? I mean that doesn't necessarily mean
> its bad but its not available in the normal arch repos
Leafnode 2 has been 'in development' for many years but in my experience
the final release of 2008 has been quite stable.
> Well. It IS "xinetd v2.3.14-5" so I'm guessing the setup is the problem
> then. I was fairly sure allow/deny was ok, I used exactly what was shown
> and other services work.
I have not used xinetd but the documentation in the Leafnode 2 tarball
has a few words:
#v+
+ Alternative #2: If your system has xinetd instead. Add this to
your xinetd.conf (this example assumes xinetd 2.3.3 or newer):
service nntp
{
flags = NAMEINARGS NOLIBWRAP
socket_type = stream
protocol = tcp
wait = no
user = news
server = /usr/sbin/tcpd
server_args = /usr/local/sbin/leafnode
instances = 7
per_source = 3
}
Then send xinetd an USR2 signal to make it reread its
configuration. See the xinetd.conf(5) manual page for details.
Note: some systems install tcpd to a different path, but it's
uncommon. Change the first path accordingly if your tcpd
resides in /usr/etc or /usr/lbin.
#v-
But I have no experience with xinetd unfortunately :(. Mind you if this
does not get your server running the best place to direct queries about
Leafnode is actually news.software.readers.
All the best,
> [freeballer@Desktop ~]$ telnet localhost 119
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> Connection closed by foreign host.
> [freeballer@Desktop ~]$
Getting close :). What you should see is:
#v+
andrew@skamandros~$ telnet localhost 119
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 Leafnode NNTP daemon, version 2.0.0.alpha20081229a at skamandros.andrews-corner.org
quit
205 Always happy to serve!
Connection closed by foreign host.
#v-
with your own fqdn of course instead of skamandros.andrews-corner.org.
Just check that you have the correct paths to both tcpd and leafnode
in xinetd.conf:
#v+
server = /usr/sbin/tcpd
server_args = /usr/local/sbin/leafnode
#v-
as this might explain why leafnode is not loaded. Another thought is a
guide that actually deals in some depth with Leafnode 1 rather than 2
and also has a few words about xinetd:
Using Leafnode as a caching news proxy
http://homepage.ntlworld.com/garryknight/linux/leafnode.html
All the best,
Thank you, I needed another head to figure this out.
I hope the next few steps will work ok but seriously GREAT start.
Could I ask you two more things?
1) could I use your wiki entry and change the info for Arch linux
doc?(giving you permission for the majority of the document)?
2) does the second version give any benifit a normal user would
want/need (that you know of)? The only thing I could think of is if it
had ssl
[...]
> hosts.allow/deny have been disabled in case.
[...]
I don't know what you mean by "disabled". You need this line in
hosts.allow:
leafnode: 127.0.0.1
and in hosts.deny:
leafnode: ALL
(That will block any attempt to access your Leafnode apart from the
computer on which Leafnode is running).
--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
I mean for a short time, I commented ALL the entries including
/etc/hosts.allow BUT thats no longer the case and it seems to be working
ok so far. More time is needed to play, and get posting work
> Could I ask you two more things?
> 1) could I use your wiki entry and change the info for Arch linux
> doc?(giving you permission for the majority of the document)?
Feel free to use whatever you want from that guide. You may be
interested to know that I maintain a slightly more technical page on the
same subject for Slackware 13:
Slackware 13.0 and Leafnode-2
http://www.andrews-corner.org/leafnode.html
as a support for an installation script I wrote for slackbuilds.org,
perhaps this might be better to plunder than the Ubuntu page?
> 2) does the second version give any benifit a normal user would
> want/need (that you know of)? The only thing I could think of is if it
> had ssl
For my own usage Leafnode 2 offers better filtering (from the remote
NNTP server) and also allows 'expensive' scoring from within slrn. I am
sure there are other improvements but to tell the truth I have not used
leafnode 1 for some years so I am not completely clear on what now
represents better function in the development version :).
There does seems to be more info on this second page, and some info on
logging and local groups. Also gives me an excuse to look at
slackbuilds. <- ages since I used slackware
>> 2) does the second version give any benifit a normal user would
>> want/need (that you know of)? The only thing I could think of is if it
>> had ssl
>
> For my own usage Leafnode 2 offers better filtering (from the remote
> NNTP server) and also allows 'expensive' scoring from within slrn. I am
> sure there are other improvements but to tell the truth I have not used
> leafnode 1 for some years so I am not completely clear on what now
> represents better function in the development version :).
>
> Andrew
>
I think I'm going to go looking around for a dev version in arch. Our
build system SHOULD be fairly easy to change enough to compile it. Or
try and see if git will give me a pkg.
thanks for answering. I should be posting it before new years but not
entirely sure when, will help alot of arch users as well as slack/ubuntu