[soft]TFTP tftp-hpa



贊助商連結


repsol
2006-10-17, 12:04 PM
tftp 很少用,不過如果會比較常使用cisco switch的人,會有機會使用到tftp。

/usr/ports/ftp/tftp-hpa
http://freshmeat.net/projects/tftp-hpa/

in.tftpd -s /tmp/tftproot -l -c

OPTIONS
-l Run the server in standalone (listen) mode, rather than run from
inetd. In listen mode, the -t option is ignored, and the -a
option can be used to specify a specific local address or port
to listen to.
       用 standalone 的方式啟動                    
-a [address][:port]
Specify a specific address and port to listen to when called
with the -l option. The default is to listen to the tftp port
specified in /etc/services on all local addresses.
listen 的 ip address 和 Port
-c Allow new files to be created. By default, tftpd will only
allow upload of files that already exist. Files are created
with default permissions allowing anyone to read or write them,
unless the -p or -U options are specified.
允許 file 建立。
-s Change root directory on startup. This means the remote host
does not need to pass along the directory as part of the trans-
fer, and may add security. When -s is specified, exactly one
directory should be specified on the command line. The use of
this option is recommended for security as well as compatibility
with some boot ROMs which cannot be easily made to include a
directory name in its request.
       決定 tftp 根目錄

更多參數請 man in.tftpd