mirror of
https://github.com/yuriskinfo/cheat-sheets.git
synced 2025-12-24 14:31:49 +01:00
ongoing additions, changes, and fixes
This commit is contained in:
@@ -36,3 +36,33 @@ v1.0, 2020-09-01
|
||||
|
||||
|
||||
|===
|
||||
|
||||
|
||||
== Ubuntu Uncomplicated Firewall (ufw)
|
||||
.ufw management commands
|
||||
[cols=2, options="header"]
|
||||
|===
|
||||
|Command
|
||||
|Description
|
||||
|
||||
|*ufw status*
|
||||
|Show whether the firewall is on and if on, list the active rules.
|
||||
|
||||
|*ufw enable*
|
||||
|Enable firewall.
|
||||
|
||||
|*ufw disable*
|
||||
|Disable firewall
|
||||
|
||||
|*ufw reload*
|
||||
|Reload firewall and rules.
|
||||
|
||||
|*ufw allow <predefined service name>*
|
||||
| Allow some service in aany direction from/to any IP address using so called `simple` rule syntax. The service names are as per `/etc/services`. E.g. to allow ssh from any: `ufw allow ssh`.
|
||||
|
||||
|*/etc/ufw/before.rule*
|
||||
|Some rules are pre-allowed by default, to change them edit the above file and reload firewall.
|
||||
|
||||
|===
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user