Welcome to My Blog, It is my First Blog I hope I will continue with more topics on Linux, HP-UX, Oracle, WebLogic Server, Oracle Secure Backup and much more.
What is TFTP-Server
Trivial File Transfer Protocol (TFTP) is an Internet software utility for transferring ãles that is simpler to use than the File Transfer Protocol (FTP) but less capable. It is used where user authentication and directory visibility are not required. TFTP uses the User Datagram Protocol (UDP) rather than the Transmission Control Protocol (TCP).
1. Install tftp-server and xinetd is also required
# yum install -y tftp tftp-server* xinetd*
2. Edit "/etc/xinetd.d/tftp" – set disable to no and add -c option into server_args to upload files to TFTP-Server from clients.
# vim /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
disable = no
per_source = 15
cps = 80 2
flags = IPv4
}
3. Enable and Start TFTP Service
# systemctl start xinetd
# systemctl start tftp
# systemctl enable xinetd
# systemctl start tftp
After these two commands, permanent links will be made for xinetd and TFTP services.
4. Configure SELinux for TFTP service.
check the tftp permissions in SELinux
# getsebool -a | grep tftp
tftp_anon_write –> off
tftp_home_dir –> off
If the TFTP write is off as shown above, enable it with setsebool command as below
# setsebool -P tftp_anon_write 1
# setsebool -P tftp_home_dir 1
5. Configure Firewall for TFTP Service
# firewall-cmd --permanent --add-service=tftp -zone=public
# firewall-cmd --permanent --add-port=69/udp
# firewall-cmd --reload
6. Restart TFTP Service
# systemctl restart xinetd
# systemctl restart tftp
How to download and upload files to TFTP Server
From Windows system, with CMD
Download Files
[192.168.1.100 is TFTP-Server]
c:\> tftp -i 192.168.1.100 get filename
Upload Files
c:\> tftp -i 192.168.1.100 put filename
Share My Blog & offer your comments and suggestions !!
Thank You !!
What is TFTP-Server
Trivial File Transfer Protocol (TFTP) is an Internet software utility for transferring ãles that is simpler to use than the File Transfer Protocol (FTP) but less capable. It is used where user authentication and directory visibility are not required. TFTP uses the User Datagram Protocol (UDP) rather than the Transmission Control Protocol (TCP).
1. Install tftp-server and xinetd is also required
# yum install -y tftp tftp-server* xinetd*
2. Edit "/etc/xinetd.d/tftp" – set disable to no and add -c option into server_args to upload files to TFTP-Server from clients.
# vim /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
disable = no
per_source = 15
cps = 80 2
flags = IPv4
}
3. Enable and Start TFTP Service
# systemctl start xinetd
# systemctl start tftp
# systemctl enable xinetd
# systemctl start tftp
After these two commands, permanent links will be made for xinetd and TFTP services.
4. Configure SELinux for TFTP service.
check the tftp permissions in SELinux
# getsebool -a | grep tftp
tftp_anon_write –> off
tftp_home_dir –> off
If the TFTP write is off as shown above, enable it with setsebool command as below
# setsebool -P tftp_anon_write 1
# setsebool -P tftp_home_dir 1
5. Configure Firewall for TFTP Service
# firewall-cmd --permanent --add-service=tftp -zone=public
# firewall-cmd --permanent --add-port=69/udp
# firewall-cmd --reload
6. Restart TFTP Service
# systemctl restart xinetd
# systemctl restart tftp
How to download and upload files to TFTP Server
From Windows system, with CMD
Download Files
[192.168.1.100 is TFTP-Server]
c:\> tftp -i 192.168.1.100 get filename
Upload Files
c:\> tftp -i 192.168.1.100 put filename
Share My Blog & offer your comments and suggestions !!
Thank You !!
Thanks You.... Bro It is working
ReplyDelete