[leafnode-list] Connection refused for all but localhost

Gundemarie Scholz spamyousilly at inbox.ru
Wed Oct 6 13:39:51 CEST 2004


> > 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
> 
> AFAIK, tcpd doesn't understand ip1.ip2.ip3.ip4/prefix notation, you'll
> have to "spell out" the netmask:
> 
> leafnode: 127.0.0.1 172.20.128.0/255.255.248.0 172.20.0.0/255.255.248.0:ALLOW

Ah ok. I assumed it would work as in 2.17 of the README it is written:

| leafnode: 127.0.0.1 192.168.0.42: ALLOW
| leafnode: 192.168.0.0/24: setenv NOSUBSCRIBE 1
| leafnode: ALL: DENY

I have changed the entry, and tadaa:
Oct  6 11:53:08 gunde leafnode[1181]: connect from 172.20.128.90 (172.20.128.90)
Oct  6 11:58:49 gunde leafnode[1190]: connect from 172.20.128.100 (172.20.128.100)
Oct  6 12:04:58 gunde leafnode[1216]: connect from 172.20.128.91 (172.20.128.91)

Thanks a lot!

Gunde




More information about the leafnode-list mailing list