Moxa TC-6110-T-LX [29/117] Attention

Moxa TC-6110-T-LX [29/117] Attention
TC-6110 Linux User's Manual Managing Communications
3-11
ATTENTION
If you
would like to have auto dial-in service, you can launch the dial-in service in /etc/inittab with the
respawn
command
:
moxa@MOXA:~# sudo echo “p0:2345:respawn:pppd call dialin” >> /etc/inittab
Telnet/FTP/TFTP Server
For security reasons, the TC-6110-LX only supports SSH and SFTP. The Telenet, FTP, and TFTP are installed,
but have been disabled. Moxa strongly recommends against the use of Telnet or FTP, both of which are
considered deprectated, today. However, if you wish to use one of these services, you may follow the directions
below to enable or disable these services.
Enabling a Telnet, FTP, or TFTP Server
The following example shows the default content of the file /etc/inetd.conf. For security’s sake, the Telnet,
FTP, and TFTP servers are disabled by default. To enable these services, add the following content to
/etc/inetd.conf:
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/proftpd
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
Then restart the inetd service:
moxa@MOXA:~# sudo service openbsd-inetd restart
Disabling a Telnet/FTP/TFTP Server
If, after enabling one of these servers, you wish to disable it again you may do so by commenting out the
relevant line inserting a hash (#) as the line’s first character. Below, the TFTP server has been disabled using
this method.
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/proftpd
#tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
As with any other changes to the inet.d configuration, you must restart the inetd service for the changes to
take effect.
moxa@MOXA:~# sudo service openbsd-inetd restart
DNS Utilities
Basic DNS utilities are responsible for managing a system’s hostname, DNS resolver, and the name service
switch. The three configuration files associated with these services are
/etc/hostname,
/etc/resolv.conf
, and /etc/nsswitch.conf.
Configuring the OS Hostname
When remotely administrating large networks, it is desirable to provide each computer with a descriptive
hostname. This is set by changing the hostname file;
/etc/hostname is a file with a single line that contains

Содержание

Похожие устройства

Скачать