[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Connection refused for all but localhost



Hello,

yesterday I downloaded 2.0.0.alpha20040920a.tar.bz2 from Matthias Andree's web site as in school I am supposed to set up a news server. We don't have access to any outside news server, so in order to be able to present some results I went for that version as it supports local newsgroups. I followed the installation instructions:

1. sh ./configure (as user news)

2. make (as user news)

3. make install (as root)

4. cp /etc/leafnode/config.example /etc/leafnode/config
   server = 62.153.159.134
   (just in case the admin lets us gain access after all)

5. vi /etc/inetd.conf
   nntp stream tcp nowait news /usr/sbin/tcpd /usr/local/sbin/leafnode

6. vi /etc/hosts.allow
   leafnode: 127.0.0.1 172.20.128.0/21 172.20.0.0/21: ALLOW
   leafnode: ALL: DENY
   (we have two subnets for testing purposes)

7. vi /etc/hosts.deny
   leafnode: ALL

8. vi /etc/nntpserver
   localhost
   (it was set to news before)

9. vi /etc/leafnode/local.groups
   and added some local groups with descriptions

10. restart inetd


Now I get a connection to localhost, either via telnet or with Pine. I can see the local groups, and i can post to them. But as soon as I use the computer name or its IP rather than localhost I get a "connection refused" message (sorry for any bad linebreaks):

# less /var/log/messages | grep leafnode
[repetitions snipped]
Oct  6 10:32:28 gunde leafnode[11438]: connect from 127.0.0.1 (127.0.0.1)
Oct  6 10:44:52 gunde leafnode[11475]: refused connect from 172.20.128.100 (172.20.128.100)



I went through the FAQ and got following results:

# ps axu |grep inetd
root     11406  0.0  0.2  1360  552 ?        S    10:21   0:00 /usr/sbin/inetd

# inetd -d
ADD: nntp proto=tcp, wait.max=0.256 user:group=news.wheel builtin=0 server=/usr/sbin/tcpd

# less /etc/hosts.allow |grep leafnode
leafnode: 127.0.0.1 172.20.128.0/21 172.20.0.0/21: ALLOW
leafnode: ALL: DENY

# less /etc/hosts.deny |grep leafnode
leafnode: ALL

# less /etc/passwd |grep news
news:x:9:13:News system:/etc/news:/bin/bash

# less /etc/group |grep news
news:x:13:news


I read through http://www.fredi.de/maillist/archiv/2001/msg00648.html, but the hints there didn't help me; do you have any further advice for me?

Regards,
Gunde
-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
http://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/