Ufw: Difference between revisions

From DWIKI
Line 7: Line 7:


= HOWTO =
= HOWTO =
==Allow SSH==
ufw allow from 12.3.4 to any app OpenSSH


==From host to port==
==From host to port==

Revision as of 12:56, 8 July 2024

UFW - Uncomplicated firewall

Links

HOWTO

Allow SSH

ufw allow from 12.3.4 to any app OpenSSH

From host to port

ufw allow from 198.51.100.0 to any port 22 proto tcp

From host to app

ufw allow from 192.168.3.4 to any app SSH

List rules

ufw status numbered


Stop logging

ufw logging off


Add allow rule with logging

ufw allow log-all from any to any port 113 proto tcp