Inetd and a service listening only on localhost

Karol Kwiatkowski freebsd at orchid.homeunix.org
Thu May 5 16:34:55 PDT 2005


Hello everyone,

I'm in the process of learning ports system. I've made some changes to
an existing port (in the Makefile and a patch) for my use but thought
about mailing them to the port maintainer. So now I need to be more
serious ;)

The port (popa3d) is a pop3 daemon which can be run from inetd or as
standalone. I've made a patch and added a knob to Makefile to make
popa3d listen only on localhost (I run it as standalone with stunnel).

I've never used inetd and I'm not sure what will happen if a
connection is made from outside to a service which is configured to
listen only on localhost.

Is  possible to run a service listening only on localhost with inetd?
 How to configure inetd in such case (an entry in /etc/hosts.allow?)
or should I disable such configuration?

Regards,

Karol

-- 
Karol Kwiatkowski  <freebsd at orchid dot homeunix dot org>


More information about the freebsd-questions mailing list