Firewall: pvxe/nftables-geoip - filtered list of countries
Firewall: pvxe/nftables-geoip - filtered list of countries
Add an optional parameter to specify a list of countries from the location file (usually location.csv). The corresponding ipv4 and ipv6 subsets are written to additional files with "-interesti...
cross-posted from: https://lemmy.world/post/11162262
Hey,
For all of you that are running proper setups and use nftables to protect your servers be aware that
pvxe/nftables-geoip
now has the ability to generate IP lists by country.This can be used to, for instance, drop all traffic from specific countries or the opposite, drop everything except for your own country.
https://github.com/pvxe/nftables-geoip/commit/c137151ebc05f4562c56e6802761e0a93ed107a2
Here's how you can block / track traffic from certain countries:
- https://wiki.nftables.org/wiki-nftables/index.php/GeoIP_matching
- https://www.mybluelinux.com/nftables-and-geoip
Previously you had to load the entire geoip DB containing multiple GB and would end up using a LOT of RAM. Those guides aren't yet updated to use the country specific files but it's just about changing the
include
line to whatever you've generated withpvxe/nftables-geoip
.