TFTP

From AlphaBook
Jump to: navigation, search

Install

  • yum install tftp tftp-server xinetd -y

Configure

  • vi /etc/xinetd.d/tftp
  • server_args = -c -s /var/lib/tftpboot
  • disable = no

Configure Permission

  • chmod 777 /var/lib/tftpboot

Configure Service

  • systemctl enable tftp xinetd
  • systemctl restart tftp xinetd

Configure Firewall

  • firewall-cmd --permanent --add-service=tftp
  • firewall-cmd --reload
  • firewall-cmd --list-service

SELinux

  • getsebool -a | grep tftp
  • setsebool -P tftp_anon_write on
  • setsebool -P tftp_home_dir on
  • getsebool -a | grep tftp