Article View: news.software.readers
Article #205179leafnode configuration
From: 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
Technical Details
Message-ID:
<1188864065.366323.54510@d55g2000hsg.googlegroups.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <1188864065.366323.54510@d55g2000hsg.googlegroups.com> Subject: leafnode configuration Date: Tue, 04 Sep 2007 00:01:05 -0000 From: Thufir <hawat.thufir@gmail.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail Newsgroups: news.software.readers Organization: http://groups.google.com Lines: 191 NNTP-Posting-Host: 24.86.149.50 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1188864065 30242 127.0.0.1 (4 Sep 2007 00:01:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 4 Sep 2007 00:01:05 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en; Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=24.86.149.50; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0