With first-match processing, what happens to SSH from 203.0.113.5?
1 ACCEPT tcp dport 22 src 10.0.0.0/8 2 DROP tcp dport 22 src 0.0.0.0/0 3 ACCEPT tcp dport 22 src 203.0.113.5
- Accepted by rule 3
- Accepted by rule 1
- Logged, then accepted
- Dropped by rule 2
Rules are checked top-down and the first match wins. 203.0.113.5 is not in 10.0.0.0/8, so rule 2 drops it before rule 3 is ever reached.
Play Cybersecurity ▸