[Samba] Not really samba, but handy.. Geo ip with ufw country blocker.

L.P.H. van Belle belle at bazuin.nl
Fri Mar 11 16:01:04 UTC 2022


Totaly not samba related.. 

I create a geo IP filter that works with ufw. 

It catched the attacker IP adres, check it against in which country it coming from.
And if its not allowed by the settings, it blocks the complete CIDR of that IP. 
This prevent that hackers that are in a CIDR are filling your firewall with lots entries. 

Have a look. 
https://raw.githubusercontent.com/thctlo/debian-scripts/master/geo-filter-ufw.sh

Suggestions, comments, the good, the bad, the ugly.. Tell me.. 


Enjoy the weekend, 

Greetz, 

Louis




More information about the samba mailing list