- The nftables firewall keeps rules in tables and chains;
hook inputis for packets addressed to the machine itself. - A packet goes through the rules from top to bottom until the first verdict; if none decides, the chain policy applies.
countervalues show which rule fired on a request.- Rules are changed in the file, checked with
nft -c -f, loaded withnft -fand tested from both sides: the allowed source gets an answer, the others do not. - At the start of the lesson the client waited until the timeout: the permission for
192.0.2.20was for port8081, so the request to8080reached the last rule,drop.
Step 8 of 8 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson