table inet blocklist {
set blocklist4 {
type ipv4_addr
flags interval
auto-merge
}
set blocklist6 {
type ipv6_addr
flags interval
auto-merge
}
chain input {
type filter hook input priority -10; policy accept;
ip saddr @blocklist4 drop
ip6 saddr @blocklist6 drop
}
}
nftables/blocklist.nft
Fichiers prêts à adapter
fail2ban/action.d/blocklist-report.confVisualiser fail2ban/action.d/blocklist-report.conf Télécharger fail2ban/action.d/blocklist-report.conffail2ban/jail.d/blocklist-report.local.exampleVisualiser fail2ban/jail.d/blocklist-report.local.example Télécharger fail2ban/jail.d/blocklist-report.local.examplenftables/blocklist.nftVisualiser nftables/blocklist.nft Télécharger nftables/blocklist.nftreporter/blocklist-report.pyVisualiser reporter/blocklist-report.py Télécharger reporter/blocklist-report.pyreporter/config.json.exampleVisualiser reporter/config.json.example Télécharger reporter/config.json.examplesync/blocklist-sync.pyVisualiser sync/blocklist-sync.py Télécharger sync/blocklist-sync.pysync/config-ipset.json.exampleVisualiser sync/config-ipset.json.example Télécharger sync/config-ipset.json.examplesync/config-nftables.json.exampleVisualiser sync/config-nftables.json.example Télécharger sync/config-nftables.json.examplesystemd/blocklist-ipset-prepare.serviceVisualiser systemd/blocklist-ipset-prepare.service Télécharger systemd/blocklist-ipset-prepare.servicesystemd/blocklist-sync.serviceVisualiser systemd/blocklist-sync.service Télécharger systemd/blocklist-sync.servicesystemd/blocklist-sync.timerVisualiser systemd/blocklist-sync.timer Télécharger systemd/blocklist-sync.timerwindows/Sync-Blocklist.ps1Visualiser windows/Sync-Blocklist.ps1 Télécharger windows/Sync-Blocklist.ps1