Sign inSign up

bwalex/go-blackhole

By bwalex

•Updated over 9 years ago

go-blackhole docker image

Image
0

1.4K

bwalex/go-blackhole repository overview

⁠go-blackhole

Build Status

go-blackhole watches the systemd journal for failed SSH login/authentication attempts and automatically blacklists these IPs for a fixed duration by adding a blackhole route.

⁠Get it

Release binaries for linux amd64 platforms are built by default and can be downloaded from the Releases page⁠.

A Docker image is also available: bwalex/go-blackhole⁠. Check out example/k8s-blackhole.yaml⁠ for a usage example as a Kubernetes DaemonSet.

For other platforms or to build from source, clone the repository and just run make.

⁠Usage

Usage of dist/go-blackhole:
  -blacklist-duration duration
    	blacklist duration (default 30m0s)
  -db string
    	database file location (default "/var/lib/blackhole.db")
  -ipv4-prefix int
    	IPv4 prefix length to blacklist (default 32)
  -ipv6-prefix int
    	IPv6 prefix length to blacklist (default 64)
  -journal-path string
    	systemd journal path (default "/var/log/journal")

⁠License

go-blackhole is released under the MIT License⁠.

Tag summary

Content type

Image

Digest

Size

255.2 MB

Last updated

over 9 years ago

docker pull bwalex/go-blackhole