Summary: | sys-apps/xinetd services reject connections from localhost when "only_from = localhost" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Noah Sheppard <nlshep> |
Component: | [OLD] Server | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Noah Sheppard
2009-02-05 19:01:13 UTC
I've been doing some more investigating today and discovered that neither gentoo's nor arch linux's xinetd versions' echo-stream services work properly. However, RHEL5's version does. After more testing, I've determined that the vanilla xinetd sources do not work, but one of the patches that redhat applies makes it work. I will determine which patch makes it work and what the fix is and then comment again. Please ignore my previous comment that vanilla xinetd sources' echo-stream does not work. This is not the case; they do work. I am not sure what was happening, but will investigate more. It appears that the setting "only_from = localhost" in /etc/xinetd.conf (this is the default as installed by portage) is preventing me from connecting. However, I am attempting to connect from the same server on which xinetd is running. Any ideas why connections on localhost would be getting rejected? works fine for me # emerge xinetd -qpv [ebuild R ] sys-apps/xinetd-2.3.14 USE="perl tcpd" 295 kB # grep -v -e '^#' -e '^$' /etc/xinetd.d/echo-stream service echo { disable = no id = echo-stream type = INTERNAL wait = no socket_type = stream only_from = localhost } # /etc/init.d/xinetd -q start # netstat -napt | grep xinetd tcp 0 0 0.0.0.0:7 0.0.0.0:* LISTEN 19447/xinetd # nc -q 5 localhost 7 <<< "moo" moo # |