Ufw: Difference between revisions

From DWIKI
Tony (talk | contribs)
mNo edit summary
Tag: wikieditor
Tony (talk | contribs)
Tag: wikieditor
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
*[https://help.ubuntu.com/community/UFW UFW]
*[https://help.ubuntu.com/community/UFW UFW]
*[https://www.linode.com/docs/security/firewalls/configure-firewall-with-ufw/ Use UFW to Manage Firewall Rules]
*[https://www.linode.com/docs/security/firewalls/configure-firewall-with-ufw/ Use UFW to Manage Firewall Rules]
=Documentation=
==Logging==


= HOWTO =
= HOWTO =
Line 20: Line 22:
  ufw status numbered
  ufw status numbered


== Stop logging ==
ufw logging off




Line 33: Line 32:
==Where do application files come from?==
==Where do application files come from?==
For example "Apache Full" gets installed with the apache2 package.
For example "Apache Full" gets installed with the apache2 package.
==Add comment to UFW rule==
ufw allow from 1.2.3.4 to any comment "comment test"
==Logging==
=== Stop logging ===
ufw logging off
===Keep logging out of dmesg===
Check /etc/rsyslog.d/20-ufw.conf

Latest revision as of 14:32, 9 January 2026

UFW - Uncomplicated firewall

Links

Documentation

Logging

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


Add allow rule with logging

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

Allow port range

ufw allow from any to any port 60000:60010 proto udp

Where do application files come from?

For example "Apache Full" gets installed with the apache2 package.

Add comment to UFW rule

ufw allow from 1.2.3.4 to any comment "comment test"


Logging

Stop logging

ufw logging off

Keep logging out of dmesg

Check /etc/rsyslog.d/20-ufw.conf