Tftp-Server: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „==Installation tftp-Server== root@xinux-desktop:/# apt-get install tftpd-hpa ===Start über inetd=== * /etc/inetd.conf : udp -> udp4 ändern tftp…“)
 
Zeile 1: Zeile 1:
==Installation tftp-Server==
+
=Installation tftp-Server=
root@xinux-desktop:/# apt-get install tftpd-hpa
+
*apt tftpd-hpa
 
+
==Start als alleinstehender Server==
===Start über inetd===
+
*cat  /etc/default/tftpd-hpa
* /etc/inetd.conf : udp -> udp4 ändern
 
tftp          dgram  udp4    wait    root  /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot
 
 
 
===Start als alleinstehender Server===
 
* /etc/default/tftpd-hpa
 
 
  TFTP_USERNAME="tftp"
 
  TFTP_USERNAME="tftp"
 
  TFTP_DIRECTORY="/srv/tftp"
 
  TFTP_DIRECTORY="/srv/tftp"

Version vom 15. Februar 2023, 16:18 Uhr

Installation tftp-Server

  • apt tftpd-hpa

Start als alleinstehender Server

  • cat /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/srv/tftp"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -s"

=Starten=== ==Installation tftp-Server

root@xinux-desktop:/# apt-get install tftpd-hpa

Start über inetd

  • /etc/inetd.conf : udp -> udp4 ändern
tftp           dgram   udp4     wait    root  /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot

Start als alleinstehender Server

  • /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -s"

Starten

root@xinux-desktop:~# service tftpd-hpa restart

Kontrolle

  • Ist der tftp Port geöffnet
root@ubuntu-server:/etc/dhcp3# netstat -lnu | grep 69
udp        0      0 0.0.0.0:69              0.0.0.0:*
  • Installation tftp Client
root@lydia:~# apt-get install tftp
  • Kann man einen Datei ziehen?
root@lydia:~# tftp 192.168.11.50
tftp> get 1545_sender
Received 900983 bytes in 0.6 seconds
tftp> quit


root@xinux-desktop:~# service tftpd-hpa restart

Kontrolle

  • Ist der tftp Port geöffnet
root@ubuntu-server:/etc/dhcp3# netstat -lnu | grep 69
udp        0      0 0.0.0.0:69              0.0.0.0:*
  • Installation tftp Client
root@lydia:~# apt-get install tftp
  • Kann man einen Datei ziehen?
root@lydia:~# tftp 192.168.11.50
tftp> get 1545_sender
Received 900983 bytes in 0.6 seconds
tftp> quit