Network
Block IP trough Firewall
I had recent attacks on my server and so I was searching on how to add an IP drop with my firewall.
On my Sites I have a security system that blocks already many things but unfortunately not all.
And so here I show you an example on how to do it (at least how I did it).
#add the ip 91.92.252.176 to the connection reject list firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="91.92.252.176" reject' #reload the firewall with the new settings firewall-cmd --reload #see the state of the firewall engine firewall-cmd --state #see the current settings firewall-cmd --list-all
Subscribe
Login
0 Comments
Oldest