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

Network Security: ควร Block Ports ไหน?

ดู Ports ที่ถูก Block บน Network อย่างไร?

  1. เปิด Command Prompt
  2. รัน netstat -a -n
  3. ถ้า Port อยู่ในรายการ = Server กำลัง Listen

Ports ที่ควร Block เพื่อความปลอดภัย

เช็คว่า Firewall Block Port อย่างไร?

  1. netstat -ano | findstr SYN_SENT
  2. No Hits = No Blocked Connections
  3. มีรายการ = Port ถูก Block
  4. ถ้า Windows ไม่ Block -> เช็ค Router หรือ ISP

Port Blocking คืออะไร?

ISP ดู Port Number และ Transport Protocol แล้ว Block Traffic ทั้งหมด ใช้มาหลายทศวรรษทั้ง Wireline และ Wireless

Unblock Network Port (Windows Firewall)

  1. Control Panel -> System and Security -> Windows Firewall
  2. Advanced Settings -> Inbound Rules
  3. Right-click -> New Rule -> Port

Unblock Ports บน Router

  1. Browser -> Router Settings
  2. Login -> Port Forwarding Tab
  3. Device Name + Port (เช่น 8080)

เช็ค Firewall Block Port (วิธีอื่น)

  1. cmd (Run as Administrator)
  2. netsh firewall show state
  3. ดู Blocked Ports และ Active Ports ทั้งหมด

ควร Block Port 21 (FTP) ไหม?

ควร Block ให้ Inbound Access ไม่เข้า FTP Server หากไม่จำเป็นต้องเปิด

ควร Block Port 113 (IDENT) ไหม?

Hard Stealthing Port 113 ด้วย Personal Firewall พอแล้ว (เกือบไม่ได้ใช้) ทำให้ระบบ Invisible บน Internet

Open Ports ที่เป็น Security Risk

PortProtocolServiceหมายเหตุ
135TCP/UDPMS RPCBlock
137-139TCP/UDPNetBIOS/IPBlock
445TCPSMB/IPBlock
69UDPTFTPBlock
514UDPSyslogBlock
PortServiceRisk
20,21FTPเก่า ไม่มี Encryption
22SSHBrute Force Risk
23TelnetPlaintext
25SMTPSpam/Relay
53DNSAmplification Attacks
139NetBIOSInfo Disclosure
80,443HTTP/HTTPSWeb Attacks
445SMBEternalBlue, Ransomware

ควร Block Port 80 ไหม?

Port 80 เปิดไม่เสี่ยงโดยตรง เสี่ยงก็ต่อเมื่อ Web Server Serve Sensitive Data ผ่าน Unencrypted Connection Redirect 301 บน Port 80 ปลอดภัย

Firewall Block Port ได้ไหม?

ได้ Windows Firewall Block/Open Ports ได้ ตั้งค่าผิดอาจ Block ต้องการโดยไม่ได้ตั้งใจ

Unblock Port บน Firewall

  1. Control Panel -> System and Security -> Windows Firewall
  2. Advanced Settings -> Inbound Rules -> New Rule -> Port

เช็ค Port เปิดอยู่ไหม?

  1. Command Prompt (Admin) -> netstat -ab
  2. หา Port Number -> State: LISTENING = เปิดอยู่

Port Blocking ทำอะไร?

ปิด Port ไม่ให้ใช้งาน Ports ที่โจมตีเครือข่ายมักใช้ -> เพิ่มความปลอดภัยลูกค้า

Firewall Port Blocking คืออะไร?

ควบคุม Network Traffic ไป/มา Application หรือ TCP/IP Port บน Windows ควบคุม User และจำกัด Network Access

Port Blocking with LAN

LAN Strategy ป้องกัน Data ผ่าน Physical Ports: USB, Removable Devices, DVD/CD, Windows Mobile, Smartphones, FireWire, PCMCIA, WiFi, Bluetooth

NBN Port Blocking

ป้องกัน Virus/Spam: Block Port 80 (HTTP) และ Port 25 (SMTP) บ่อย ถ้า Block Port 80 -> Web Server ต้องใช้ Port อื่น