สอบถามปัญหา เครือ่ง อยู่ๆ ก็ไม่สามารถ ftp ได้

คือมีปัญหาแปลกๆนะครับ คือ อยู่ๆ เครือ่งก็ ftp ไม่ทำงาน (ก่อนหน้านี้ก็ทำงานนะครับ) เผอิญไป restart named xineted httpd
แล้วมันก็ไม่ได้เลย ลองเช็ค netstat ก็ทำงาน firewall ก็ปิดแล้ว service named xineted ก็ทำงานปกติ
[root@ns2 network-scripts]# netstat -an |grep 21
tcp

ผมลอง ftp จาก ssh มันขึ้นแบบนี้นะครับ
[root@new network-scripts]# ftp 202.142.223.186
Connected to 202.142.223.186.
421 Service not available, remote server has closed connection

ดูใน /var/log/message ก็ได้ข้อความแบบนี้
Mar

restart proftp ยังครับ ดูจาก log มันหา hostname เครื่องไม่เจอมั้งเนี่ย

[quote author=thaiman2521 link=topic=18004.msg169642#msg169642 date=1236432635]
ผมลอง ftp จาก ssh มันขึ้นแบบนี้นะครับ
[root@new network-scripts]# ftp 202.142.223.186
Connected to 202.142.223.186.
421 Service not available, remote server has closed connection

ดูใน /var/log/message ก็ได้ข้อความแบบนี้
Mar

plesk ใช่ xinetd หรือเปล่าครับ ลองแล้วนะครับ
[root@ns2 init.d]# service xinetd restart
Stopping xinetd:

ผมเช็ค /etc/proftpd.conf

ลอง restart psa แล้วหายไหมคับ stop start ใหม่

ลองแล้ว ยังไม่ได้เลยครับ มีอย่างอื่นต้องเช็คอีกไหมครับ รบกวนหน่อยนะครับ

[root@ns2 psa]# service psa stop
/usr/local/psa/admin/bin/httpsdctl stop: httpd stopped
Stopping Plesk:

ขอดูไฟล์ /etc/hosts หน่อยครับ

[root@ns2 psa]# cat /etc/hosts

Do not remove the following line, or various programs

that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost
202.142.223.186

ผมลอง ping จากเครื่องอื่นตัวเองมันขึ้นแบบนี้
[root@202 ~]# ping inthanonresort.com
PING inthanonresort.com (202.142.223.186) 56(84) bytes of data.
64 bytes from ns2.intranonresort.com (202.142.223.186): icmp_seq=0 ttl=64 time=0.033 ms
64 bytes from ns2.intranonresort.com (202.142.223.186): icmp_seq=1 ttl=64 time=0.032 ms

แต่ถ้า ping จากเครื่องอื่นมันจะขึ้นแบบนี้นะครับ

[root@new root]# ping inthanonresort.com
PING inthanonresort.com (202.142.223.186) 56(84) bytes of data.
64 bytes from 202.142.223.186.colo.isp-thailand.com (202.142.223.186): icmp_seq=0 ttl=64 time=0.323 ms
64 bytes from 202.142.223.186.colo.isp-thailand.com (202.142.223.186): icmp_seq=1 ttl=64 time=0.169 ms

อยากรู้ว่า ns2.intranonresort.com กับ 202.142.223.186.colo.isp-thailand.com มัน set ค่าตรงไหนเหรอครับ ต้อง restart service อะไรบ้าง ขอบคุณครับ

รู้สึกว่ามันไม่ได้พลาดตรงนี้นะครับ
เดี่ยวขอหาที่นั่งเล่นเนตให้ดีๆก่อน

ขอบคุณมากครับ

ขั้นตอนที่ต้องทำนะครับ

  1. แจ้ง isp ขอแก้ไข reverse dns เป็นชื่อของเครื่อง
  2. เปิดไฟล์ /etc/hosts เพิ่ม
    202.142.223.186 202.142.223.186.colo.isp-thailand.com
    ลงไปในรายการ (ตามนี้เลยครับ

ใน proftpd.conf ลองแก้ AuthPAM เป็น off แล้วลอง service xinetd restart

ถ้าไม่ได้ก็ลองดูในนี้ อ่าครับ
/etc/hosts.deny
/etc/hosts.allow

ลองปิด autopam แล้วก็ได้แล้วนะครับ

Enable PAM authentication

AuthPAM off
AuthPAMConfig proftpd

ไม่ทราบว่ารบกวนถามนิดนึงว่ามันคืออะไรเหรอครับ เครือ่งอื่น ก็ตั้ง on นะครับ ก็สามารถทำ ftp ได้ปกติ เลยอยากรู้ว่ามันคืออะไรเหรอครับ
ขอบคุณมากๆครับ

ยินดีด้วยครับ

ลองหาใน google ครับมีคำอธิบายเยอะมากๆ