Date: Fri, 25 Jun 1999 18:49:29 +0100 (BST) From: Kiril Mitev <kiril@ideaglobal.com> To: freebsd-questions@freebsd.org Subject: configuring/enabling hosts.allow in 3.2 Message-ID: <199906251749.SAA24793@ideaglobal.com>
next in thread | raw e-mail | index | archive | help
Okay, I give up :-) I need to configure inetd/tcpd/whatever to setup an environment variable before firing up an inet.conf - controlled service... here are the settings: # grep testport /etc/services testport 8888/tcp # grep testport /etc/inetd.conf testport stream tcp nowait root /var/qmail/bin/printenv printenv # cat /etc/hosts.allow printenv : ALL : setenv DAMNENV yes : allow ALL : ALL : allow this is /var/qmail/bin/printenv for the curious: ------------------ #!/usr/bin/perl5 open ( LOG , ">>/var/tmp/tcp-env" ) or exit; print LOG "-------------------------\n"; while (($key, $val) = each %ENV) { print LOG "$key = $val\n"; } ------------------ and no, thers is no DAMNENV in its output... having said that, if I change hosts.allow to be like this: ALL : ALL : deny all services promptly fall over, so it does seem to work. tcpdchk -v says: Using network configuration file: /etc/inetd.conf >>> Rule /etc/hosts.allow line 1: daemons: printenv warning: /etc/hosts.allow, line 1: printenv: service possibly not wrapped clients: ALL command: setenv DAMNENV yes : allow access: granted >>> Rule /etc/hosts.allow line 2: daemons: ALL clients: ALL command: allow access: granted So, questions: 1. Is there anything else that needs "enabling" (does not seem so) 2. What does "service possibly not wrapped" mean ? exactly ? 3. Does hosts_options(5) apply or not ? (seems not to) 4. If, perchance, hosts_options(5) does not apply, why is it referred to in the default /etc/hosts_allow ? 5. How do I fix this :-) ? please cc: me on replies, TIA. Kiril To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906251749.SAA24793>