What is a firewall's default-deny principle?
BeginnerConceptNAT, Firewalls & VPN
Answer
Block everything, then explicitly allow only what is needed. Security groups already do this for inbound traffic; the discipline is to apply it to outbound traffic too, and to avoid 0.0.0.0/0 on admin ports like 22, 3389 and database ports.
Restrict egress for sensitive workloads: it limits data exfiltration and callbacks after a compromise.
More on NAT, Firewalls & VPN
What is NAT and why is it used?BeginnerWhat is the difference between SNAT, DNAT and PAT?AdvancedHow does an AWS NAT gateway work, and what are its limits?AdvancedWhy is NAT gateway cost a common surprise and how do you reduce it?IntermediateWhat is conntrack and what happens when its table fills up?AdvancedWhat is the difference between a stateful and a stateless firewall?Beginner