Skip to content

Whitelist mode #24

Answered by wirefalls
tbart asked this question in Q&A
Mar 26, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Hello,

Setting things up as you describe is pretty straightforward. You can use one of the example nftables.conf files in the Wiki to test your configuration. I’ll assume that you’re using IPv4 only, but you can adjust the instructions accordingly if using IPv6 or both. Start with the example IPv4 nftables.conf file from the Wiki. You can use the geo-ip4 nftables set in the ip filter table to store the IP address ranges for your country code. I’ll assume that your country code is AD, just like the example in the IPv4 nftables.conf file. The geo-ip4 nftables set will store IP address ranges for your country code, and your firewall rules will decide whether you accept or drop packets that m…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tbart
Comment options

You must be logged in to vote
2 replies
@tbart
Comment options

@wirefalls
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants