Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> ความปลอดภัยเครือข่าย

ตั้งค่า Network Security บน Mac (macOS) ให้ปลอดภัย

ทำให้ Mac ปลอดภัยบนเครือข่าย (Network Security on macOS)

1. ปิด Sharing ที่ไม่จำเป็น (Reduce Attack Surface)

  1. System Settings (macOS Ventura+) / System Preferences (Monterey-) > General > Sharing
  2. ปิด (Uncheck) ทุกอย่างที่ไม่ได้ใช้:
    ☐ File Sharing
    ☐ Screen Sharing
    ☐ Remote Login (SSH)
    ☐ Remote Management (ARD)
    ☐ Printer Sharing
    ☐ Internet Sharing
    ☐ Bluetooth Sharing
  3. หากต้องเปิด: คลิก (i) / Options > จำกัด Users/Groups ที่อนุญาต > ตั้งรหัสผ่านแข็งแกร่ง

2. ตรวจสอบ Wi-Fi Security Type

  1. กด Option + คลิกไอคอน Wi-Fi ที่ Menu Bar
  2. ดู Security:
    ✅ WPA2 Personal (AES) / WPA3 Personal = ปลอดภัย
    ❌ WEP / WPA / WPA2 (TKIP) / None = ไม่ปลอดภัย → ต้องเปลี่ยนที่เราเตอร์

3. เปิด Firewall (macOS Built-in)

  1. System Settings > Network > Firewall
  2. เปิด Firewall: On
  3. กด 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)

  1. System Settings > General > Sharing > Internet Sharing
  2. Share your connection from: Ethernet / Thunderbolt Bridge
  3. To computers using: ✅ Wi-Fi
  4. กด 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: ใส่อีกครั้ง
  5. เปิด Internet Sharing (ติ๊กช่องถูก)

5. ใช้ AirPort Utility (สำหรับ AirPort/Time Capsule - Legacy)

  1. เปิด AirPort Utility (Applications > Utilities)
  2. เลือก Base Station > Edit
  3. แท็บ Wireless > Wireless Security: WPA2 Personal / WPA3 Personal
  4. Password: ตั้งแรง > Update

6. กำหนด DNS ที่ปลอดภัย (Secure DNS)

  1. System Settings > Network > Wi-Fi/Ethernet > Details > DNS
  2. เพิ่ม 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
  3. หรือใช้ Encrypted DNS (DoH/DoT) ผ่าน Profile / App (NextDNS, AdGuard, Cloudflare WARP)

7. จัดการ Known Networks (ลบเครือข่ายเก่า/ไม่ปลอดภัย)

  1. System Settings > Network > Wi-Fi > Details
  2. คลิก ... ถัดจากเครือข่าย > Remove from List / Forget This Network
  3. ปิด 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)

  1. Cmd + Space > Keychain Access
  2. Category: System หรือ iCloud
  3. ค้นหา SSID (ชื่อ Wi-Fi)
  4. ดับเบิลคลิก > ติ๊ก 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