Dangerous
iptables -P INPUT ACCEPTlinux · bash · Beginner
Sets the default policy for inbound traffic to ACCEPT. Any packet that does not match an explicit rule is now allowed, which quietly inverts a firewall built on the assumption that unmatched traffic is dropped.
Signals to notice
- -P changes the default policy, which applies to everything unmatched
- ACCEPT as a default turns a deny-by-default firewall into allow-by-default
Think you can spot these under time pressure?
Start Training