ทำให้ Mac ปลอดภัยบนเครือข่าย (Network Security on macOS)
1. ปิด Sharing ที่ไม่จำเป็น (Reduce Attack Surface)
- System Settings (macOS Ventura+) / System Preferences (Monterey-) > General > Sharing
- ปิด (Uncheck) ทุกอย่างที่ไม่ได้ใช้:
☐ File Sharing
☐ Screen Sharing
☐ Remote Login (SSH)
☐ Remote Management (ARD)
☐ Printer Sharing
☐ Internet Sharing
☐ Bluetooth Sharing - หากต้องเปิด: คลิก (i) / Options > จำกัด Users/Groups ที่อนุญาต > ตั้งรหัสผ่านแข็งแกร่ง
2. ตรวจสอบ Wi-Fi Security Type
- กด Option + คลิกไอคอน Wi-Fi ที่ Menu Bar
- ดู Security:
✅ WPA2 Personal (AES) / WPA3 Personal = ปลอดภัย
❌ WEP / WPA / WPA2 (TKIP) / None = ไม่ปลอดภัย → ต้องเปลี่ยนที่เราเตอร์
3. เปิด Firewall (macOS Built-in)
- System Settings > Network > Firewall
- เปิด Firewall: On
- กด Options / Firewall Options:
☑ Block all incoming connections (ยกเว้น signed apps)
☑ Automatically allow built-in software to receive incoming connections
☑ Automatically allow downloaded signed software to receive incoming connections
☑ Enable stealth mode (ไม่ตอบ Ping/Probe)
4. เปลี่ยน Wi-Fi Password / Security บน Mac (ถ้า Mac เป็น Hotspot / Host Network)
- System Settings > General > Sharing > Internet Sharing
- Share your connection from: Ethernet / Thunderbolt Bridge
- To computers using: ✅ Wi-Fi
- กด Wi-Fi Options...:
Network Name: ตั้งชื่อ SSID
Channel: Auto / 1,6,11 (2.4G) / 36-48 (5G)
Security: WPA2 Personal หรือ WPA3 Personal
Password: ตั้งรหัสแรง 12+ chars
Verify: ใส่อีกครั้ง - เปิด Internet Sharing (ติ๊กช่องถูก)
5. ใช้ AirPort Utility (สำหรับ AirPort/Time Capsule - Legacy)
- เปิด AirPort Utility (Applications > Utilities)
- เลือก Base Station > Edit
- แท็บ Wireless > Wireless Security: WPA2 Personal / WPA3 Personal
- Password: ตั้งแรง > Update
6. กำหนด DNS ที่ปลอดภัย (Secure DNS)
- System Settings > Network > Wi-Fi/Ethernet > Details > DNS
- เพิ่ม DNS Servers:
Cloudflare:1.1.1.1,1.0.0.1(Malware Blocking:1.1.1.2,1.0.0.2)
Quad9:9.9.9.9,149.112.112.112(Security)
Google:8.8.8.8,8.8.4.4 - หรือใช้ Encrypted DNS (DoH/DoT) ผ่าน Profile / App (NextDNS, AdGuard, Cloudflare WARP)
7. จัดการ Known Networks (ลบเครือข่ายเก่า/ไม่ปลอดภัย)
- System Settings > Network > Wi-Fi > Details
- คลิก ... ถัดจากเครือข่าย > Remove from List / Forget This Network
- ปิด Auto-join สำหรับ Public/Open Networks
8. Lockdown Mode (macOS Sonoma 14+ / iOS 16+)
สำหรับผู้ที่เสี่ยงสูง (Journalists, Activists, Politicians):
System Settings > Privacy & Security > Lockdown Mode > Turn On
จำกัด: Web fonts, JIT, Incoming FaceTime, Wired Accessories, Configuration Profiles, etc.
9. แก้ "This Connection Is Not Private" / "Not Secure" บน Safari
- Hard Refresh: Cmd + Shift + R
- ลอง Private Browsing (Cmd + Shift + N)
- เช็ค Date & Time ให้ถูกต้อง (System Settings > General > Date & Time)
- Clear Cache/Cookies: Safari > Settings > Privacy > Manage Website Data > Remove All
- เช็ค Antivirus/VPN/Proxy ที่ Intercept TLS (บางตัวติดตั้ง Root CA)
- เว็บไซต์ใช้ Self-signed Cert / Expired Cert → ไม่ควรเข้าถึงข้อมูลสำคัญ
10. หา Wi-Fi Password บน Mac (Keychain Access)
- Cmd + Space > Keychain Access
- Category: System หรือ iCloud
- ค้นหา SSID (ชื่อ Wi-Fi)
- ดับเบิลคลิก > ติ๊ก Show password > ใส่รหัสผ่าน Mac / Touch ID
สรุป Checklist macOS Network Security
- ☐ Sharing: ปิดทุกอย่างที่ไม่ใช้
- ☐ Wi-Fi Security: WPA2-AES / WPA3 (ตั้งที่เราเตอร์)
- ☐ Firewall: On + Stealth Mode + Block All Incoming
- ☐ DNS: Secure DNS (1.1.1.1 / 9.9.9.9) + DoH/DoT
- ☐ Known Networks: ลบเก่า ปิด Auto-join Public
- ☐ Lockdown Mode: เปิดถ้าคุณ High-risk User
- ☐ Updates: macOS, Safari, Apps ทั้งหมด Latest
- ☐ FileVault: On (Disk Encryption) - System Settings > Privacy & Security