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

Re[2]: [leafnode-list] Connection refused for all but localhost



> > 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

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