I need to run the nuttcp tool, but facing difficulty in using xinetd. I have a remote access to the machine I'm working on, and looking to follow these steps. No idea about xinted! After finishing, how can I run the tool with xinetd?
To use as an inetd or xinetd daemon, do the following:
1. Add an entry similar to the following to the /etc/inetd.conf file (for an IPv4 server).
Code:
nuttcp stream tcp nowait root /usr/local/sbin/tcpd /usr/local/bin/nuttcp -S
2. Add entries like the following to the /etc/services file.
nuttcp 5000/tcp
nuttcp-data 5001/tcp
nuttcp6 5000/tcp
nuttcp6-data 5001/tcp
For inetd it may be necessary to run the IPv4 and IPv6 servers on
different ports.
3. Add a nuttcp entry to the /etc/hosts.allow file to control what hosts
you want to allow access to the nuttcp service.
4. Send a HUP signal to the inetd or xinetd process (older xinetd
requires USR2 signal).