Blocking IP addresses based on geographic location using nftables. Timeline below.
NFTABLES WIKI
https://wiki.nftables.org/wiki-nftabl...
Redhat nftables
https://access.redhat.com/documentati...
Ip2location lists
https://www.ip2location.com/free/visi...
My Raw Notes:
https://randomtech.joebeasley.org/geo...
Timestamps for the Good Parts. (Around 15 minutes total)
4:11 - 6:05 - Create Sample Set
9:41 - 11:07 - Download U.S. Country list of ip addresses from ip2location.com
21:30 - 23:08 - Convert downloaded file to nftables format.
23:15 - 24:40 - Import file into nftables.
43:06 - 46:24 - Add Rule to block SSH.