Servidor TFTP con inetd en Debian
Cómo instalar y configurar servidor y cliente en Debian GNU/Linux y derivados
Ingredientes
- inetutils-inetd
- tftpd
- tftp
Configuración
Crea el directorio /srv/tftp
y ponle permisos para nobody
. Aquí estarán los ficheros que gestionará el servidor.
# mkdir /srv/tftp
# chown nobody /srv/tftp
# chmod 0600 /srv/tftp
Edita el fichero /etc/inetd.conf
y asegurate de que contiene esta línea (o des-coméntala si ya la tiene):
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
Y reinicia/arranca el superserver:
# /etc/init.d/inetutils-inetd restart
Uso
Pruébalo con el cliente:
$ tftp example.org
tftp> binary
tftp> get loquesea.mp3
Received 2784015 bytes in 1.1 seconds
tftp> put otracosa.ogg
Sent 2784015 bytes in 0.4 seconds
tftp> quit
[ show comments ]
blog comments powered by Disqus