Killing Time 2nd

備忘録、日々の徒然想いを残します。

proftpd on FreeNAS 8.01

FreeNAS8でftpdが起動できない。
proftpdなのだがどうもhostnameが解決できず、起動できず。もっともFreeNAS起動してるのにftpで接続するヒトも余りいないとは思うけど。

freenas: Starting proftpd.
freenas: - warning: unable to determine IP address of '***.***.dip.jp'
freenas: - error: no valid servers configured
freenas: - Fatal: error processing configuration file '/usr/local/etc/proftpd.conf'
root: /usr/local/etc/rc.d/proftpd: WARNING: failed to start proftpd
freenas: /usr/local/etc/rc.d/proftpd: WARNING: failed to start proftpd

0.7以前と大分変わったらしい。
解決法は下記の通り。

quickfix

1 on console choose Shell (7)
2 bash
3 mount -u -o rw /
4 cd /conf/base/etc/rc.d
5 ee ix-proftpd
6 go to line 141
7 replace string "#Default Adress $(hostname)" to "DefaultAdress xxx.xxx.xxx.xxx" (in "Default Adress" remove space, xxx.xxx.xxx.xxx - you ftp adress)
8 save file and exit (Esc ->a->a)
9 exit to main menu (exit + exit)
10 reboot NAS (8)
FTP Server work!