Xinetd
XinetdIP6M uses Xinetd for some services needed by DOCSIS specification. The installer enables the following services:
- UDP Time Server
- Atftpd daemon
After installing xinetd package:
apt install xinetd
time server can be enabled in the
/etc/xinetd.d/time
file at the UDP section:
# This is the udp version. service time { disable = no type = INTERNAL id = time-dgram socket_type = dgram protocol = udp user = root wait = yes }
setting the "disable" variable to "no" and restarting the xinetd service:
$ sudo service xinetd restart
Service can be tested with the "rdate" command:
$ sudo apt install rdate $ sudo rdate -u localhost Tue Oct 8 20:42:34 CEST 2019
Rdate has to return current server time.
Tftp
TftpIP6M uses Atftpd package for tftp service. Since Atftpd doesn't support IPv6, we need Xinetd to run it.
Installing atftpd:
sudo apt install atftpd
Xinetd configuration (/etc/xinetd.d/tftp) for Atftpd is the following:
service tftp { socket_type = dgram protocol = udp port = 69 wait = yes user = www-data server = /usr/sbin/in.tftpd server_args = /var/www/drupal8/private/tftp disable = no }
Most interesting option is the "server_args" option, that points to the private files directory under the Drupal instance. This is where the Drupal application creates the cable modem configuration files, and atftpd serves them to cable modems.