2024-07-01
Block Unauthorized Access By Firewall

ufw

1
2
sudo ufw deny from <ip_range> port <port>

firewalld

1
2
sudo firewall-cmd --add-rich-rule='rule family="ipv4" source address="<ip_range>" port protocol="tcp" port="<port>" drop'

Read More