Listens to a Linux interface via pcap and prints out connection attempts. It will block via iptables source IP addresses outside the host that try to connect too quickly to different host ports.
To run: sudo docker run --rm --net=host --name scanblocker scanblocker .
Notes:
eth0, to change to for example to ens4, pass it as the environment variable SB_DEVICE: sudo docker run --rm --env SB_DEVICE=ens4 --net=host --name scanblocker scanblocker --net=host option is needed since we are listening on the host's device.sudo update-alternatives --set iptables /usr/sbin/iptables-legacy/usr/sbin/iptables -A INPUT -s $srcip -j DROP. To list do sudo iptables -L INPUT and to delete (flush) do sudo iptables -F INPUTContent type
Image
Digest
Size
6.9 MB
Last updated
over 4 years ago
docker pull fduran/scanblocker