include "/etc/nftables/geo-nft/countrysets/*"
define-ipv4 inet filter geo-inet4 AD
define-ipv6 inet filter geo-inet6 AQ
define-ipv4 inet filter geo-channel4 AD
define-ipv6 inet filter geo-channel6 AD
I'm trying to create a new set name for my region but when i add the line below I get an error.
define-ipv4 inet filter geo-channel4 AD
Geolocation for nftables v2.2.3
bash version 5.1.4(1)-release
nftables v0.9.8 (E.D.S.)
The latest database csv file already exists locally; using existing file:
/etc/nftables/geo-nft/dbip-country-lite-2021-08.csv
Creating country-specific nftables sets...
Creating a list of all country codes found in the database csv file.
Generating nftables geolocation sets in:
/etc/nftables/geo-nft/countrysets
This may take a moment, please wait...
Some countries may only have IPv4 addresses or IPv6 addresses.
No IPv4 addresses in database for country code BV, skipping...
No IPv4 addresses in database for country code CX, skipping...
No IPv4 addresses in database for country code EH, skipping...
No IPv4 addresses in database for country code HM, skipping...
No IPv4 addresses in database for country code SH, skipping...
No IPv4 addresses in database for country code TF, skipping...
No IPv4 addresses in database for country code UM, skipping...
Country set creation complete...
Checking for settings in /etc/nftables/geo-nft/refill-sets.conf
geo-nft.sh v2.2.3:
The following 'define-ipv4' line in /etc/nftables/geo-nft/refill-sets.conf
does not point to a valid nftables set:
define-ipv4 inet filter geo-channel4 AD
Invalid settings were found in 'refill-sets.conf'.
Automatic generation of /etc/nftables/geo-nft/refill-sets.nft will be skipped.
Your nftables version is at least version 0.9.4, so you
can include all geolocation sets in your configuration file
/etc/nftables/geo-nft/refill-sets.conf with:
include "/etc/nftables/geo-nft/countrysets/*"
Script run time: 17s
Finished!