Thread View: news.software.readers
2 messages
2 total messages
Started by Thufir
Tue, 04 Sep 2007 00:01
leafnode configuration
Author: Thufir
Date: Tue, 04 Sep 2007 00:01
Date: Tue, 04 Sep 2007 00:01
191 lines
6457 bytes
6457 bytes
I'm trying to setup leafnode. It seems to be running, in that
fetchnews works, but isn't allowing a connection from, for example,
"telnet localhost 119". Why?
Here's what I have so far:
arrakis ~ #
arrakis ~ # cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
iface_eth1="dhcp"
dhcpcd_eth1=""
arrakis ~ #
arrakis ~ # cat /etc/conf.d/hostname
#HOSTNAME="livecd"
#HOSTNAME="localhost arrakis.doesntexist.org"
HOSTNAME="arrakis"
#HOSTNAME="localhost"
arrakis ~ #
arrakis ~ # cat /etc/hosts
# /etc/hosts: Local Host Database
#
# This file describes a number of aliases-to-address mappings for the
for
# local hosts that share this file.
#
# In the presence of the domain name service or NIS, this file may not
be
# consulted at all; see /etc/host.conf for the resolution order.
#
# IPv4 and IPv6 localhost aliases
#127.0.0.1 localhost
127.0.0.1 localhost.localdomain localhost
192.168.2.110 arrakis.doesntexist.org arrakis
::1 localhost
#
# Imaginary network.
#10.0.0.2 myname
#10.0.0.3 myfriend
#
# According to RFC 1918, you can use the following IP networks for
private
# nets which will never be connected to the Internet:
#
# 10.0.0.0 - 10.255.255.255
# 172.16.0.0 - 172.31.255.255
# 192.168.0.0 - 192.168.255.255
#
# In case you want to be able to connect directly to the Internet
(i.e. not
# behind a NAT, ADSL router, etc...), you need real official assigned
# numbers. Do not try to invent your own network numbers but instead
get one
# from your network provider (if any) or from your regional registry
(ARIN,
# APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
arrakis ~ #
arrakis ~ # cat /etc/xinetd.conf
#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.
defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
enabled = nntp
# disabled =
# Define general logging characteristics.
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT
# Define access restriction defaults
#
# no_access =
only_from = localhost
# max_load = 0
cps = 50 10
instances = 50
per_source = 10
# Address and networking defaults
#
# bind =
# mdns = yes
v6only = no
# setup environmental attributes
#
# passenv =
groups = yes
umask = 002
# Generally, banners are not used. This sets up their global defaults
#
# banner =
# banner_fail =
# banner_success =
}
includedir /etc/xinetd.d
arrakis ~ #
arrakis ~ # cat /etc/xinetd.d/leafnode-nntp
# default: off
# description: Leafnode - accepts connections on port 119 (NNTP)
service nntp
{
socket_type = stream
protocol = tcp
wait = no
user = news
server = /usr/sbin/leafnode
disable = no
}
arrakis ~ #
arrakis ~ # hostname
arrakis
arrakis ~ #
arrakis ~ # /etc/init.d/xinetd restart
* Stopping
xinetd ...
[ ok ]
* Starting
xinetd ...
[ ok ]
arrakis ~ #
arrakis ~ # fetchnews -fvv
leafnode 1.11.5: verbosity level is 2, debugmode is 0
Forced active fetch requested from command-line (option -f).
try_lock(timeout=5), fqdn="arrakis.doesntexist.org"
news.gmane.org: connecting to port nntp...
news.gmane.org: connected.
news.gmane.org: using STAT <message-ID> command.
news.gmane.org: 0 articles posted.
news.gmane.org: getting all newsgroups (debug: active: nil,
forceactive: true)
news.gmane.org: getting newsgroup descriptions
news.gmane.org: reading server info from /var/spool/news/leaf.node/
news.gmane.org
news.gmane.org: conversation completed, disconnected.
wrote active file with 9773 lines
Started process to update overview data in the background.
Network activity has finished.
arrakis ~ #
arrakis ~ # telnet localhost 119
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
arrakis ~ #
arrakis ~ #
arrakis ~ # nmap localhost -p 119
Starting Nmap 4.01 ( http://www.insecure.org/nmap/ ) at 2007-09-03
16:56 PDT
Interesting ports on localhost.localdomain (127.0.0.1):
PORT STATE SERVICE
119/tcp open nntp
Nmap finished: 1 IP address (1 host up) scanned in 0.070 seconds
arrakis ~ #
arrakis ~ #
arrakis ~ # cat /etc/gentoo-release
Gentoo Base System release 1.12.9
arrakis ~ #
arrakis ~ # date
Mon Sep 3 16:52:59 PDT 2007
arrakis ~ #
arrakis ~ #
thanks,
Thufir
Re: leafnode configuration
Author: Troy Piggins
Date: Tue, 04 Sep 2007 00:38
Date: Tue, 04 Sep 2007 00:38
26 lines
2391 bytes
2391 bytes
* Thufir is quoted & my replies are inline below :
> I'm trying to setup leafnode. It seems to be running, in that
> fetchnews works, but isn't allowing a connection from, for example,
> "telnet localhost 119". Why?
[snip]
Have you read the followups to your question on the leafnode
mailing list? What are your leafnode logs saying? You may need
to enable logging on your system.
Matthias also recommended checking your /etc/hosts.allow file
that you are allowing leafnode there. He is the maintainer of
leafnode and is very responsive to questions asked on the
leafnode mailing list. You won't get any better help than there,
and especially when dealing with him directly.
PS - If, when, you do find a solution may I suggest you post your
findings to both the mailing list /and/ this group since you have
now asked the same question both places. Just to make it easier
for others searching archives etc. Thanks.
--
Troy Piggins | http://piggo.com/~troy
___ | __ __ ,-O (o- O
slrn macros and howto: |___ | |/ |/ | O ) //\ O
http://piggo.com/~troy/slrn ___| | | | | `-O V_/_ OOO
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