Archivo de la etiqueta: tftp

Instalar tftpd-hpa en Ubuntu

Instalar tftpd-hpa en Ubuntu

Instalamos con
sudo apt-get install tftpd-hpa

El archivo de configuración esta en /etc/default/tftpd-hpa
TFTP_USERNAME=»tftp»
TFTP_DIRECTORY=»/tftpboot»
TFTP_ADDRESS=»[0.0.0.0:69]»
TFTP_OPTIONS=»–secure –create -l»

TFTP_DIRECTORY es el directorio raiz del server tftpd
TFTP_OPTIONS: create permite a los usuarios escribir en el servidor

Reiniciamos con
sudo service tftpd-hpa restart

En el archivo /etc/xinet.d/tftp agregamos
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
disable = no
}

y reiniciamos con
sudo service xinetd restart

Abrimos el puerto 69 en Iptables
sudo iptables -I INPUT -s 192.168.2.0/24 -p udp –dport 69 -j ACCEPT

Instalamos el cliente con
sudo apt-get install tftp

Para conectar tftp direccion_ip