DomiStyle / docker-tor-browser

Tor Browser (in a browser)
https://hub.docker.com/r/domistyle/tor-browser
MIT License
75 stars 22 forks source link

create fail2ban config for novnc login #44

Open lawndoc opened 1 year ago

lawndoc commented 1 year ago

If this container is public facing it would be a good idea to have fail2ban configured to block brute force and password spray attacks.

It should be possible to add a fail2ban container to docker-compose.yml and mount the novnc logs from the tor-browser container. Not sure yet what would be the best way to ban IPs. I use CloudFlare as a proxy and they have a fail2ban action to block it at their frontend, but most people using this would probably need a local block action. I'll do some research and find a universal solution.