回文章列表
作者nsc89.bbs@ptt.cc (繼續....) 看板: linux
標題Re: [問題] PROFTPD的問題
時間批踢踢實業 (2008/10/03 Fri 16:59:32)
補充說明,
: : tcp6       0      0 :::21                   :::*                    LISTEN
應該是沒有開啟 ftp for ipv4, 所以你嘗試看看更改設定檔案

擷取鳥哥說明
# ServerType :啟動 proftpd 的方法,有兩種方式,分別是 standalone
#       與 inetd ,因為我們是以 super daemon 啟動的,所以
#       設定為 inetd 喔!如果您想獨立啟動(不透過 xinetd )
#       就需要設定為 standalone 了
ServerType                      inetd

所以你先注意這邊的設定



example(有開啟v4 and v6)
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
ftp     stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l


※ 引述《nsc89 (繼續....)》之銘言:
: (1)./var/log , 例如vsftpd, 會有vsftpd.log的檔案(還是要看是否有enable log)
: (2).netstat -an主要是讓你觀看你的tcp/udp port開啟狀態
: 若是你沒有特別更改, 應該是會跑 port 21
: 從你的結果來看, 似乎只有
: : tcp6       0      0 :::21
: 沒有類似 tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN
: 的紀錄
: (3).還有你下的 ps -aux | grep proftpd, 結果是有看到你的daemon在執行(第一行),
: (4).(2)和(3)的內容除了你漏掉,或是你的port有更改,或設定有改,否則應該是有問題
: (5).建議你所提出的內容, 盡量不要公布實際IP, 可以用代號或虛擬ip取代(安全問題)
: (6).請再check configuration
: 希望上述對你有幫助,
: best regards,
: ※ 引述《ficecmiraror (秘密ID)》之銘言:
: : 這個我不知要在那裡看@@~
: : 我查出來的結果:
: : Chain INPUT (policy ACCEPT)
: : target     prot opt source               destination
: : Chain FORWARD (policy ACCEPT)
: : target     prot opt source               destination
: : Chain OUTPUT (policy ACCEPT)
: : target     prot opt source               destination
: : 這個我不知要怎麼關@@~
: : 網路上查到都RH或FEDORA版的~
: : 但我是用UBUNTU
: : 應該是有在跑@@~
: : 因為出現這二行
: : 1001      5201  0.0  0.1   2888   608 ?        Ss   09:03   0:00 proftpd:
: : (accepting connections)
: : 1000      6159  0.0  0.1   3008   760 pts/0    R+   09:33   0:00 grep ftp
: : Proto Recv-Q Send-Q Local Address           Foreign Address         State
: : tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN
: : tcp        0      0 140.123.102.201:48451   140.112.172.11:23
: : ESTABLISHED
: : tcp        0      0 140.123.102.201:48726   209.85.143.19:80        TIME_WAIT
: : tcp        0      0 140.123.102.201:58874   209.85.143.83:80
: : ESTABLISHED
: : tcp6       0      0 :::5900                 :::*                    LISTEN
: : tcp6       0      0 :::21                   :::*                    LISTEN
: : tcp6       0      0 :::631                  :::*                    LISTEN
: : udp        0      0 0.0.0.0:46806           0.0.0.0:*
: : udp        0      0 0.0.0.0:5353            0.0.0.0:*
: : udp        0      0 0.0.0.0:631             0.0.0.0:*
: : 最下面還有一行
: : Active UNIX domain sockets (servers and established)
: : 但在裡頭我沒有找到FTP的@@~
: : 煩請教一下小弟@@~

--
※ 發信站: 批踢踢實業坊(ptt.cc) 
◆ From: 210.240.249.225
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻