https://github.com/aletheia7/banip
Watches journal and drops IP packets using regexp, dnsrbl, nftables, and sqlite. Similar to fail2ban.
https://github.com/aletheia7/banip
fail2ban go journal nft nftables rbl sqlite systemd
Last synced: 24 days ago
JSON representation
Watches journal and drops IP packets using regexp, dnsrbl, nftables, and sqlite. Similar to fail2ban.
- Host: GitHub
- URL: https://github.com/aletheia7/banip
- Owner: aletheia7
- License: bsd-2-clause
- Created: 2018-09-14T01:32:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T00:42:53.000Z (about 3 years ago)
- Last Synced: 2025-02-16T19:42:11.795Z (4 months ago)
- Topics: fail2ban, go, journal, nft, nftables, rbl, sqlite, systemd
- Language: Go
- Homepage:
- Size: 104 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://godoc.org/github.com/aletheia7/banip)
### Installation
- Rapid development is happening and docs are on the way.```
apt-get install libmnl-dev libnfnetlink-dev
git clone --recursive https://github.com/aletheia7/banip.git
go generate vendor/github.com/aletheia7/nfqueue/nfqueue.go
```
- add a line in nftables:
```
ct state new tcp dport { ? } queue num 77 bypass
```#### License
Use of this source code is governed by a BSD-2-Clause license that can be found
in the LICENSE file.