$ ./guess_the_languageCybersecurity
Cybersecurity · medium · #311

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
  1. Accepted by rule 3
  2. Accepted by rule 1
  3. Logged, then accepted
  4. 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 ▸