2009년 11월 12일 목요일

tftp 환경 설정

tftp 환경 설정

-xinetd 설치 후 설정 경우.
#apt-get install xinetd tftpd tftp
#vi /etc/xinetd.d/tftp

service tftp
{
    socket_type    = dgram
    protocol         = udp
    wait              = yes
    user             = root
    server           = /usr/sbin/in.tftpd
    server_args    = -s /tftpboot
    disable          = no


#/etc/init.d/xinetd restart
#netstat -a | grep tftp
udp        0      0 *:tftp                  *:*
#tftp localhost
tftp>get "연결한 폴더에 있는파일"


inetd 경우.
#apt-get install tftpd tftp
#vi /etc/inetd.conf
-inetd.conf파일 내부에서 다음과 같이 바꾼다.
tftp    dgram    udp    wait    root    /usr/sbin/tcpd    in.tftpd    <연결할 폴더>

#killall -HUP inetd
#netstat -a | grep tftp
udp        0      0 *:tftp                  *:*
#tftp localhost
tftp>get "연결한 폴더에 있는파일"

댓글 없음:

댓글 쓰기