title | created | modified |
---|---|---|
Block unauthorized access by firewall |
2024-07-01T09:57:20.993Z |
2024-07-02T08:57:49.403Z |
ufw
sudo ufw deny from <ip_range> port <port>
firewalld
sudo firewall-cmd --add-rich-rule='rule family="ipv4" source address="<ip_range>" port protocol="tcp" port="<port>" drop'