2 ################################################
 
   3 ### Managed by someone's ansible provisioner ###
 
   4 ################################################
 
   5 # Part of: https://git.somenet.org/root/pub/somesible.git
 
   6 # 2017-2025 by someone <someone@somenet.org>
 
   9 # only filter outside-in connections. (allow initiating connections to banned ips)
 
  11 rule_stat = ct mark == 2 %(match)s <addr_family> saddr @<addr_set> <blocktype>
 
  15 # by default uses "input" (=localhost only), use this for firewalls/netwide-bans.
 
  16 chain_hook = prerouting
 
  18 # block all from src-IP, not just all tcp ports.
 
  21 # count and/or log verbosely
 
  22 blocktype  = "counter log prefix \"NFT:f2b-chain:REJECT-banned; \" reject with icmpx type host-unreachable"