Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 378 Bytes

Block unauthorized access by firewall.md

File metadata and controls

20 lines (14 loc) · 378 Bytes
title created modified
Block unauthorized access by firewall
2024-07-01T09:57:20.993Z
2024-07-02T08:57:49.403Z

Block unauthorized access by firewall

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'