-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathTFTP_log
57 lines (39 loc) · 1.33 KB
/
TFTP_log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Source: http://askubuntu.com/questions/201505/how-do-i-install-and-run-a-tftp-server
-------------------------------------------------------
Requirements: xinetd tftpd tftp
0 - sudo apt-get install xinetd tftpd tftp
--------------------------------------------------------
TFTP Installation Instructions:
-> Create /etc/xinetd.d/tftp and put this entry
1 - sudo vim /etc/xinetd.d/tftp
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /tftpboot
disable = no
}
-> Create a folder /tftpboot this should match whatever you gave
in server_args. Most likely it will be tftpboot.
2 - sudo mkdir /tftpboot
3 - sudo chmod -R 777 /tftpboot
4 - sudo chown -R nobody /tftpboot
-> Restart the xinetd serviceo
5 - sudo /etc/init.d/xinetd restart
-> Now our tftp server is up and running
--------------------------------------------------------
TFTP Testing:
-> Create a file named test with some content in /tftpboot
path of the tftp server
-> Obtain the ip address of the tftp server using ifconfig
command
-> Now in some other system follow the following steps.
tftp <ipaddr>
tftp> get test
Sent 159 bytes in 0.0 seconds
tftp> quit
cat test