การจัดการ Network Security Group (NSG) สำหรับการควบคุม Traffics
สามารถ Deny Traffic ใดๆ ใน Security Group ได้ไหม?
Security Group Rules = Implicit Denies = ทุก Traffic ถูก Deny เว้นแต่จะ Allow ผ่าน Inbound/Outbound Rules อย่างชัดเจน แก้ไขได้เฉพาะ "Allow" Rules - ไม่ต้องแก้ "Deny" Rules
เครื่องมือควบคุมความปลอดภัยอะไรที่ Deny Traffic จาก IP เฉพาะได้?
ACLs และ Security Group Rules = Firewalls ควบคุมการเข้าถึงทรัพยากรด้วย IP Addresses Network ACLs ควบคุม Traffic เข้า/ออก Subnet
วิธีตั้งค่า NSG (Network Security Group)
Azure Portal Home > Create a Resource > Networking > Network Security Group > เลือก Subscription > Resource Group (มีอยู่หรือ Create New)
Protocol อะไรที่ต้องเพิ่มใน Inbound Rules เพื่อ Remote เข้า Server?
Security Groups = Firewall สำหรับ Instances ที่เกี่ยวข้อง Allow/Deny ตามเงื่อนไข ต้องเพิ่ม Rules ใน Security Group เพื่อ RDP เข้า Windows Instance จาก IP Address
Security Groups ลบได้ไหม?
Default Security Groups ลบไม่ได้ ตรวจสอบใน Amazon VPC Console > Security Groups ใน Navigation Pane
Security Group Rules คืออะไร?
กรอง Traffic: ระบุ Protocol และ Port ที่ยอมรับ Default: Stateful Rules = Response Traffic ไหลเข้าได้แม้ Inbound Rules จะบล็อก
วิธี Block IP Address บน AWS Security Group
EC2 Instances: ใช้ Network ACLs หรือ Security Group Rules ใน VPC ทั้งคู่ควบคุมการเข้าถึงทรัพยากรด้วย IP Addresses
วิธี Block Traffic ไป IP เฉพาะ
2 วิธี: 1. Filter Rules: Config > Network > Filter Rules > Condition: Source Address = IP ที่ต้องการบล็อก 2. Security Group Rules
Network Security Tool ใดควบคุม Traffic In/Out ของ EC2 Instances?
ACL (NACL) = กฎ Inbound/Outbound สำหรับ Subnet ใน AWS = Network Security Extension
วิธี Whitelist IP Address ใน Security Group
Create Security Group > ใส่ Info/Rules > Inbound Tab > Add Rule > Type: All Traffic, Source: Custom, IP/Host Address ที่จะ Whitelist
วิธีตั้งค่า NSG (ซ้ำ)
Azure Portal Menu > Create a Resource > Networking > Network Security Group > Subscription > Resource Group
วิธี Apply NSG ใน Azure
Azure Portal: Create NSG > Associate กับ Subnet Create Resource > Networking > Network Security Group
NSG ใช้ทำอะไร?
Azure NSG = กรอง Traffic ไป/มา Azure Resources ใน Azure VNet NSG = ชุด Security Rules ใช้กับหลาย Azure Resources บังคับใช้ Inbound/Outbound Rules
วิธีเพิ่ม Security Group ให้ Inbound Rules
Navigation > Security Groups > Select SG > Actions > Edit Inbound/Outbound Rules > Add Rule > Type: Protocol ที่ Allow > Save
วิธีเพิ่ม Security Group ให้ Security Group
Instances > Actions > Security > Change Security Groups > Add Associated Security Groups > Save
วิธีเพิ่ม Inbound Rules ให้ AWS Instance
Security Groups > Actions > Edit Inbound Rules > Add Rule > ใส่ข้อมูลที่ต้องการ