เปลี่ยน FTP Username/Password ใน Windows 10
- Right-click This PC > Manage > Local Users and Groups > Users
- Right-click FTP User > Set Password
- ใส่รหัสผ่านใหม่ 2 ครั้ง > OK
เปิดใช้งาน FTP Server บน Windows 10
- Control Panel > Programs > Turn Windows features on or off
- ขยาย Internet Information Services > FTP Server
- ติ๊ก FTP Service และ FTP Extensibility > OK
ทำให้ FTP ปลอดภัยขึ้น (Best Practices)
- ใช้ Strong Passwords (ยาว ≥12 ตัวอักษร, ผสมพิมพ์ใหญ่/เล็ก/ตัวเลข/สัญลักษณ์)
- จัดการบัญชีอย่างต่อเนื่อง (Disable/Delete บัญชีไม่ใช้)
- ใช้ SFTP (SSH File Transfer Protocol) แทน FTP ธรรมดา - เข้ารหัสทั้ง Command และ Data Channel
- บังคับ FTPS (FTP over SSL/TLS) หากต้องใช้ FTP
- ใช้ Hashing Algorithm แข็งแกร่ง (SHA-256+)
- เข้ารหัสไฟล์ก่อนถ่ายโอน (PGP/GPG)
- ใช้ IP Allowlist/Blocklist
เปิด FTP ผ่าน Windows Firewall
- Start > ค้นหา "Windows Defender Firewall"
- Allow an app through firewall > Change settings
- หา "FTP Server" ติ๊ก Private และ Public > OK
ตั้งค่า FTP Server บน Windows 10 (IIS)
- Turn Windows Features On/Off > IIS > FTP Server
- IIS Manager > Sites > Add FTP Site
- ตั้งค่า IP, Port (21), SSL, Authentication (Basic/Anonymous), Authorization Rules
- ตั้งค่า FTP Firewall Support (Passive Mode Port Range) สำหรับการทำงานผ่าน NAT/Firewall
ค่า Default FTP Username/Password
ไม่มีค่า Default มาตรฐาน ขึ้นอยู่กับการตั้งค่าของ Admin ทั่วไปจะสร้าง User เองใน Local Users หรือ IIS Manager
ทำไม FTP ไม่แนะนำสำหรับข้อมูลสำคัญ?
FTP ส่งข้อมูล Username, Password, และ Data เป็น Plain Text (Clear Text) โดน Sniffing/Interceptor ได้ง่าย ควรใช้ SFTP หรือ FTPS แทน
Active FTP vs Passive FTP Security Risk
Active FTP: Server ต่อกลับ Client Port > 1024 มักถูก Firewall บล็อก และมีความเสี่ยงจาก Port Prediction Attacks
Passive Mode: Client เริ่มต้น Connection ทั้งคู่ ปลอดภัยกว่าและทำงานผ่าน NAT/Firewall ได้ดีกว่า