Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TCP_Wrappers & xinetd

Status
Not open for further replies.

d3funct

MIS
Jul 13, 2000
313
US
I have installed Redhat 7.0 which now uses xinetd instead of inetd. I installed TCP_Wrappers, but when I went to configure inetd.conf there is none. The xinetd.conf just points to an include directory "xinetd.d" which holds the files for the different services (tftp, telnet, etc..) but those files don't look anything like the old inetd.conf file. My question is, how do I edit those files to use tcpd to call the service? Has anyone setup TCP_Wrappers using xinetd? Thanks. d3funct
borg@pcgeek.net
The software required `Windows 95 or better', so I installed Linux.

 
Well, on /etc/xinetd.d there are several files with this structure:

service zzzz
{
type = INTERNAL
socket_type = stream
protocol = tcp
user = root
wait = no
port = xxx
server = /usr/sbin/zzzz
}

that is equivalent to
(inetd.conf's syntax)

zzzz stream tcp nowait.400 root /usr/sbin/zzzz zzzz

(/etc/services)

xxx/tcp zzzz

if you replace the
server = /usr/sbin/zzzz line
with
server = /usr/sbin/tcpd
and you add
server_args = /usr/sbin/zzzz
you should be ok...access control via tcp-wrappers enabled

but you can also rely on advanced features, adding for example

only_from = ip_list_or_networks_as_in_hosts_allow
no_access = ip_list_or_networks_as_in_hosts_deny
access_times = time_intervals_when_service_is_avail

and leaving only the line
server = /usr/sbin/zzzz
(not using server_args)

however, man 5 xinetd.conf should be an interesting reading...
 
Thanks for the response. I'll get it going now. You've been a big help. d3funct
vanya43@yahoo.com
The software required `Windows 95 or better', so I installed Linux.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top