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

วิธีป้องกัน Home Network Security (บ้าน) ให้ปลอดภัย

ทำไม Home Network Security สำคัญ?

Router ที่บ้านเป็น "ประตูหน้า" ของชีวิตดิจิทัล: โทรศัพท์, โน้ตบุ๊ก, Smart TV, IoT (กล้อง, หลอดไฟ, ล็อกประตู) หากไม่ปลอดภัย → แฮกเกอร์เข้ามองข้อมูล โจมตีอุปกรณ์ ใช้เป็น Botnet

10 ขั้นตอนป้องกัน Home Network ให้ปลอดภัย

1. เปลี่ยน Default Credentials ทันที

  • Router Admin Username/Password: เปลี่ยนจาก admin/admin, admin/password
  • Wi-Fi SSID: อย่าใช้ชื่อที่บ่งบอกตัวตน (เช่น "SmithFamily", "Apt302")
  • Wi-Fi Password: ยาว 12+ ตัวอักษร ผสมตัวเลข สัญลักษณ์

2. ใช้การเข้ารหัส Wi-Fi ที่แข็งแกร่งที่สุด

  • WPA3-Personal (SAE) - ดีที่สุด (Router ใหม่รองรับ)
  • WPA2-Personal (AES/CCMP) - มาตรฐานปัจจุบัน (รองรับทุกอุปกรณ์)
  • ห้ามใช้: WEP, WPA-TKIP, WPS (มีช่องโหว่)

3. อัปเดต Firmware Router เป็นประจำ

  • เช็คทุก 1-2 เดือน หรือเปิด Auto-update (ถ้ามี)
  • Firmware เก่า = ช่องโหว่ที่โดน Exploit (เช่น VPNFilter, KRACK, FragAttacks)

4. ปิด WPS (Wi-Fi Protected Setup)

  • WPS PIN สามารถ Brute-force ได้ภายในชั่วโมง
  • Router ใหม่หลายรุ่นเปิด WPS Default → ต้องปิดด้วยตนเอง

5. ปิด Remote Management / Web Access from WAN

  • ไม่ให้เข้าหน้าตั้งค่า Router จาก Internet ได้
  • ถ้าจำเป็นต้อง Remote ให้ใช้ VPN เข้าก่อน

6. เปิด Guest Network แยกจาก Main Network

  • แขก, IoT Devices (Smart Bulb, Camera, Vacuum) → Guest Network
  • Isolate: ไม่ให้เข้าถึง Main Network (NAS, PC, Printer)
  • บาง Router เรียกว่า "AP Isolation" หรือ "Client Isolation"

7. เปิด Firewall บน Router

  • ส่วนใหญ่ Router มี SPI Firewall (Stateful Packet Inspection) ให้เปิดไว้
  • บล็อก Inbound Traffic ที่ไม่ได้ Request (Unsolicited)

8. ใช้ DNS Security (Encrypted DNS / Filtering)

  • DoH (DNS over HTTPS) / DoT (DNS over TLS) บน Router หรือ Client
  • Public DNS ที่มี Filtering: Quad9 (9.9.9.9), NextDNS, Cloudflare 1.1.1.1 for Families, OpenDNS FamilyShield
  • บล็อก Malware, Phishing, Tracking, Ads ที่ระดับ DNS

9. ปิด UPnP (Universal Plug and Play)

  • UPnP ให้อุปกรณ์เปิด Port เองอัตโนมัติ → เสี่ยงต่อ Exploit
  • ถ้าจำเป็น (Gaming, P2P) ให้ Port Forward แบบ Manual เฉพาะ Port ที่ต้องการ

10. ตรวจสอบ Connected Devices เป็นประจำ

  • เข้า Router → Device List / Attached Devices
  • ดูอุปกรณ์แปลกปลอม → Block / Change Wi-Fi Password ทันที
  • ตั้งชื่ออุปกรณ์ให้รู้จัก (Rename: "John-iPhone", "LivingRoom-TV")

ขั้นตอนเพิ่มเติม (Advanced)

  • VLAN Segmentation: Router ที่รองรับ (Ubiquiti, MikroTik, OpenWrt, OPNsense) แยก VLAN: Trusted, IoT, Guest, Management
  • VPN on Router: WireGuard / OpenVPN Server บน Router → เข้าถึงบ้านจากนอกปลอดภัย
  • Network Monitoring: Pi-hole (DNS Sinkhole), Grafana + Prometheus, Netdata
  • Hardware Firewall: Protectli + OPNsense/pfSense (แทน Router ISP)
  • MAC Filtering: เพิ่ม Layer (แต่ Spoof ได้ง่าย ไม่ใช่หลัก)

IoT Security Checklist

  • เปลี่ยน Default Password ทุก IoT Device
  • อัปเดต Firmware IoT เป็นประจำ
  • แยก Network (Guest/IoT VLAN)
  • ปิด Feature ที่ไม่ใช้ (Telnet, SSH, FTP, UPnP)
  • ซื้อแบรนด์ที่มี Security Update (หลีกเลี่ยง No-name Cheap)

เครื่องมือช่วยตรวจสอบ

  • ShieldsUP! (GRC.com): ทดสอบ Port Exposure จาก Internet
  • F-Secure Router Checker: ตรวจสอบ DNS Hijacking
  • Nmap (Local): nmap -sS 192.168.1.0/24 สแกนอุปกรณ์ในเครือข่าย
  • Pi-hole: ดู DNS Queries, บล็อก Malware/Tracking

สรุป Checklist รายสัปดาห์/เดือน

  • [ ] สัปดาห์: เช็ค Connected Devices, ดู Logs Router
  • [ ] เดือน: อัปเดต Firmware Router, IoT Devices, เปลี่ยน Wi-Fi Password (ถ้าจำเป็น)
  • [ ] ไตรมาส: Review Security Settings, ทดสอบ ShieldsUP!, Backup Router Config