Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Leafnode not connecting

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
bdonlan
n00b
n00b
Posts: 44
Joined: Tue Jan 21, 2003 12:44 am

Leafnode not connecting

  • Quote

Post by bdonlan » Tue Jun 17, 2003 9:28 pm

I'm trying to set up leafnode, but neither xinetd or inetd will allow connections to ie. daemon.log shows them being configured, but it does not print a banner when I telnet localhost nntp. I've followed the instructions in /usr/share/doc/leafnode*/INSTALL.gz to set it up.
Top
Chris W
l33t
l33t
User avatar
Posts: 972
Joined: Tue Jun 25, 2002 11:38 am
Location: Brisbane, Australia

  • Quote

Post by Chris W » Tue Jun 17, 2003 9:55 pm

But you do get a connection rather than a "Connection refused" message?

Try typing LIST when the connection is made.
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Top
bdonlan
n00b
n00b
Posts: 44
Joined: Tue Jan 21, 2003 12:44 am

  • Quote

Post by bdonlan » Tue Jun 17, 2003 11:07 pm

Chris W wrote:But you do get a connection rather than a "Connection refused" message?

Try typing LIST when the connection is made.

Code: Select all

bd-home-comp root # telnet localhost nntp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
list
Connection closed by foreign host.
Top
daftz
n00b
n00b
Posts: 11
Joined: Sun Dec 01, 2002 3:14 pm

  • Quote

Post by daftz » Tue Jun 17, 2003 11:14 pm

Post your configuration file (leave out any auth. info :twisted: )
Top
bdonlan
n00b
n00b
Posts: 44
Joined: Tue Jan 21, 2003 12:44 am

  • Quote

Post by bdonlan » Tue Jun 17, 2003 11:19 pm

daftz wrote:Post your configuration file (leave out any auth. info :twisted: )
/etc/inetd.conf:

Code: Select all

nntp stream tcp nowait news /usr/sbin/tcpd /usr/local/sbin/leafnode
/etc/hosts.allow:

Code: Select all

leafnode: 127.0.0.1
/etc/hosts.deny:

Code: Select all

leafnode: ALL
/etc/leafnode/config:

Code: Select all

## This is the NNTP server leafnode fetches its news from.
## You need read and post access to it. Mandatory.

server = news-server
nopost = 1

## Unread articles will be deleted after this many days if
## you don't define special expire times. Mandatory.
expire = 20

##
## All the following parameters are optional
##

## Important and recommended setting:
## Fetch only a few articles when we subscribe a new newsgroup. The
## default is to fetch all articles.
## As leafnode forgets the article numbers of its upstream server when
## a group is marked as uninteresting, and later marked interesting
## again, you may end up downloading ALL articles from the upstream
## in that group. So uncomment and adjust this line:
# initialfetch = 100

## I have free access to my news server. If you don't have, comment out
## the following two lines and change them accordingly.
# username = gulbrandsen
# password = secret

## By default, leafnode only serves connections from addresses in the
## local networks and drops those from outside. An IPv4 address is
## considered local if it is within the networks (IP/netmask) of the local
## interfaces. An IPv6 address is considered local if it is site-local,
## link-local or the loopback address (::1).
## If you do have working AND TESTED access restriction in place, and if your
## leafnode is wrapped with tcpd and you have selected remote users you
## still want to let in, uncomment this, capitalize the "strangers" part
## of the name and set this to 42. Yes, I know, this is ugly. But most
## users will not need it. And it's dangerous.
## AGAIN: ONLY SET THIS WHEN WORKING AND TIGHT ACCESS CONTROL
## (hosts.deny, tcpd) IS IN PLACE. USING THIS OPTION WITHOUT ACCESS CONTROL
## WILL OPEN LEAFNODE TO ABUSE, SPAMMING, SUBSCRIBE YOU TO GROUPS YOU DO
## NOT WANT ETC. ## YOU REALLY DO NOT WANT TO ENABLE THIS OPTION. TRUST ME.
# allowstrangers = 0

## Standard news servers run on port 119. If your newsserver doesn't, comment
## out the following line and change it accordingly.
# port = 8000

## If you want to guarantee that the stdout/stderr are line buffered
## (GNU libc sets them to full buffering if they are redirected to
## files), then set this:
# linebuffer = 1

## This is another news server which stores some groups that are not
## available on the first one. You can define username, password and port
## for each server separately.
server = news.cis.dfn.de
username = ********
password = ********

server = news-server
noread = 1
## This is a news server which does not understand the
## "LIST NEWSGROUP news.group" command. For this reason, we don't try to
## download newsgroups descriptions when getting new newsgroups. This is
## achieved by putting "nodesc = 1" somewhere behind the server
## line.
# server = broken.upstream.server
# nodesc = 1

## Here we have another news server which has a very slow connection. For
## that reason, we wait a full minute before we give up trying to connect.
## The default is 10 seconds.
# server = really.slow.snail
# timeout = 60

## Disable the updating of the active file unless specifically requested
## in order to minimise network usage as much as possible.  The active
## file can be updated manually with the "-f" option to fetchnews.
# server = even.slower
# noactive = 1

## And this is a news server you only want to pull news from, but never
## post to. You can also use this as a workaround if you do not have posting
## permission on the server while it still greets you with a 200 code.
## The default is: nopost = 0
# server = lurk-only.example.com
# nopost = 1

## And this is a news server you only want to post to, but never
## fetch messages from. If set, noactive = 1 is also assumed.
## The default is: noread = 0
# server = post-only.example.com
# noread = 1

## This shows how a server is configured that only has specific news
## groups. Note that this parameter is a PCRE, not a wildmat! See
## pcre(3) or pcre(7), depending on your PCRE version.
# server = cnews.corel.com
# only_groups_pcre = corel\.

## Non-standard expire times (glob(7) wildcard constructs possible)
#
# groups too big to hold articles 20 days:
# groupexpire comp.os.linux.* = 5
#
# very interesting, hold articles longer:
# groupexpire any.local.newsgroup = 100
#
# archive this group (fetchnews uses the global expire to figure the
# maxage, but texpire will skip it):
# groupexpire my.archived.group = -1

## Never fetch more than this many articles from one group in one run.
## Be careful with this; setting it much below 1000 is probably a bad
## idea.
# maxfetch = 2000

## If you want to use leafnode like an offline newsreader (e.g. Forte
## Agent) you can download headers and bodies separately if you set
## delaybody to 1. In this case, fetch will only download the headers
## and only when you select an article, it will download the body.
## This can save a huge amount of bandwith if only few articles are really
## read from groups with lots of postings.
## This feature works not very well with Netscape, though (which is not
## a fault of Leafnode).
# delaybody = 0

## To avoid spam, you can select the maximum number of crosspostings
## that are allowed in incoming postings. Setting this below 5 is
## probably a bad idea. The default is unlimited crossposting.
# maxcrosspost = 5

## If you suffer from repeatedly receiving old postings (this happens
## sometimes when an upstream server goes into hiccup mode) you can
## refuse to receive them with the parameter "maxage" which tells the
## maximum allowed age of an article in days. A value of 0 indicates that
## no checking should be performed. The default maxage is 10 days.
## WARNING: maxage can be overridden by expire! See the clamp_maxage
## parameter below.
# maxage = 10

## By default, maxage is limited to groupexpire (if applicable) or
## expire (otherwise). On some rare occasions, this limit may be
## undesirable. To avoid this maxage manipulation, uncomment this line:
# clamp_maxage = 0

## maxlines will make fetch reject postings that are longer than a certain
## amount of lines.
# maxlines = 100

## minlines will make fetch reject postings that are shorter than a certain
## amount of lines.
# minlines = 2

## maxbytes will make fetch reject postings that are larger
# maxbytes = 50000

## timeout_short determines how many days fetch gets a newsgroup which
## has been accidentally opened. The default is two days.
# timeout_short = 1

## timeout_long determines how many days fetch will wait before not getting
## an unread newsgroup any more. The default is seven days.
# timeout_long = 6

## timeout_active determines how many days fetch will wait before re-reading
## the whole active file. The default is 90 days.
# timeout_active = 365

## timeout_client determines how many seconds of inactivity to allow before
## a client is forcibly disconnected. The default is 15 mins (900s). Optional.
# timeout_client = 900

## If you want to have your newsreader score/kill on Xref: lines, you might
## want to uncomment this.
# create_all_links = 1

## If you want to filter out certain regular expressions in the header,
## create a "filterfile" (how this is done is explained in the README)
## and set
# filterfile = /etc/leafnode/filters

## Note that filtering usually means HEAD and BODY are downloaded
## separately, so fetchnews has to wait for the packets TWICE to travel
## to the server and back. If you have a fast link with high latencies
## (for example a DSL line with interleaving or a satellite link), it
## may be faster to request header and body in a single command and
## discard the body. Note that the filter applies to the header only in
## either case because PCRE matching is expensive.
##
## If you have one of the high-latency high-throughput links and have
## enough free traffic left or a flat rate (no per-MByte billing), uncomment
## this:
# article_despite_filter = 1

## If your newsreader does not supply a Message-ID for your postings
## Leafnode will supply one, using the hostname of the machine it is
## running on.  If this hostname is not suitable, this parameter can be
## used to override it.  Do not use a fantasy name, it may interfere with
## the propagation of your messages.  Most modern newsreaders do provide
## a Message-ID.
hostname = bd-home-comp.no-ip.org

## If in your local Usenet hierarchy, posting unencoded 8-bit data in
## headers is condoned, uncomment this option to allow this. 8-bit data
## in headers is officially illegal, although the header character set
## may change to UTF-8 soon.
# allow_8bit_headers = 1
fetchnews seems to work.
Top
daftz
n00b
n00b
Posts: 11
Joined: Sun Dec 01, 2002 3:14 pm

  • Quote

Post by daftz » Tue Jun 17, 2003 11:30 pm

/etc/leafnode/config:

Code: Select all

## This is the NNTP server leafnode fetches its news from.
## You need read and post access to it. Mandatory.

server = news-server
nopost = 1
maybe this is the problem... I think this has to be a full hostname ? What happens when you leave it out ?
Top
bdonlan
n00b
n00b
Posts: 44
Joined: Tue Jan 21, 2003 12:44 am

  • Quote

Post by bdonlan » Tue Jun 17, 2003 11:32 pm

daftz wrote:/etc/leafnode/config:

Code: Select all

## This is the NNTP server leafnode fetches its news from.
## You need read and post access to it. Mandatory.

server = news-server
nopost = 1
maybe this is the problem... I think this has to be a full hostname ? What happens when you leave it out ?
No effect. Note that news-server does resolve, here.
Top
daftz
n00b
n00b
Posts: 11
Joined: Sun Dec 01, 2002 3:14 pm

  • Quote

Post by daftz » Tue Jun 17, 2003 11:35 pm

Strange...I got about the same config running on Debian with no problems... I'd suggest you try the leafnode mailing list for this. Good support over there.

Good luck :)
Top
bdonlan
n00b
n00b
Posts: 44
Joined: Tue Jan 21, 2003 12:44 am

  • Quote

Post by bdonlan » Tue Jun 17, 2003 11:36 pm

daftz wrote:Strange...I got about the same config running on Debian with no problems... I'd suggest you try the leafnode mailing list for this. Good support over there.

Good luck :)
I know - I copied this right off my debian setup. Ah, well. I'll try the leafnode list.
Top
Chris W
l33t
l33t
User avatar
Posts: 972
Joined: Tue Jun 25, 2002 11:38 am
Location: Brisbane, Australia

  • Quote

Post by Chris W » Wed Jun 18, 2003 2:07 am

Inetd is working properly because you are getting the connection to leafnode's daemon - you can ignore that part as a potential problem.

Out of interest, why haven't you used the ebuild?
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Top
Post Reply

10 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic