Answer the question
In order to leave comments, you need to log in
TFTP server. Ubuntu keeps empty files for some reason?
Greetings!
There is a TFTP server atftpd running as a daemon on Ubuntu 12.04.
Set to a standard port - udp 69, the port is listening:
[email protected]:~$ sudo netstat -tulpn | grep :69
udp 0 0 0.0.0.0:69 0.0.0.0:* 364/atftpd
Answer the question
In order to leave comments, you need to log in
You're lucky that at least a file is being created, you might have guessed.
In order to transfer something to the Tftp server, it is necessary that SUCH a file is already there, and even with the right to write to the anonymus, i.e. 777.
Create a sw1-office.cfg file, or if there is one cmod 777 sw1-office.cfg
. For example, files with switch configs that upload backups to tftp.
/tftpboot$ ls -l
итого 2864
-rwxrwxrwx 1 root root 16424 янв. 12 10:55 config_1228_base
-rwxrwxrwx 1 root root 47237 янв. 12 10:45 config_172.16.1.10
-rwxrwxrwx 1 root root 3091 янв. 12 10:46 config_172.16.1.11
-rwxrwxrwx 1 root root 3745 янв. 15 14:40 config_172.16.1.12
-rwxrwxrwx 1 root root 42900 янв. 12 10:47 config_172.16.1.13
-rwxrwxrwx 1 root root 54131 янв. 12 10:44 config_172.16.1.2
-rwxrwxrwx 1 root root 2811 янв. 12 10:50 config_172.16.2.2
I tried to download a file from TFTP and see what happens, it gives some error under code 5, Google did not save:
The contents of the TFTP directory:
-rwxrwxrwx 1 nobody nogroup 0 февр. 6 14:13 sw1-office.cfg
-rwxrwxrwx 1 nobody nogroup 0 февр. 6 14:34 sw1-office
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:69
ACCEPT udp -- anywhere anywhere udp dpt:tftp
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:tftp
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question