This container makes the underlying host "magically" disappear during network attacks.
docker run -d --rm --network="host" --privileged --name shield [ -e "SSH_PORT=65000" -e "PORTSCAN=21,22,23,135,389,636,1433,3306,5432,8086,10000,25565" -e "INTERFACE=eth0" ] 300481/shield:0.3.0
Find more info on Artifact HUB
Code snippet for cloud-config.yml
rancher:
environment:
SSH_PORT: 65000
INTERFACE: eth0
repositories:
shield:
url: https://raw.githubusercontent.com/300481/shield/master
services_include:
shield: true
Variable | Description | Default Value |
---|---|---|
PORTSCAN |
The comma separated list of ports, which will be trapped, when scanned. Then the source IP will be blocked. | 21,22,23,135,389,636,1433,3306,5432,8086,10000,25565 |
SSH_PORT |
The SSH port. | 65000 |
INTERFACE |
The Network Interface to protect. | eth0 |
Everyone who likes, is welcomed to contribute to this project.
Just fork and make a pull request or open an issue.
I'll respond as soon as I can.
Find additional information on Medium.