mirror of
https://github.com/yuriskinfo/cheat-sheets.git
synced 2025-12-23 22:18:11 +01:00
e
This commit is contained in:
43
Ubuntu-ufw-firewall-cookbook.adoc
Executable file
43
Ubuntu-ufw-firewall-cookbook.adoc
Executable file
@@ -0,0 +1,43 @@
|
|||||||
|
= Ubuntu Uncomplicated Firewall (ufw) cookbook of configuration examples
|
||||||
|
|
||||||
|
<<Disable/unload the firewall>> +
|
||||||
|
<<Verify status of the ufw firewall>> +
|
||||||
|
<<Enable ufw firewall>> +
|
||||||
|
|
||||||
|
|
||||||
|
== Disable/unload the firewall
|
||||||
|
Beware: after running this command all access restrictions imposed by ufw rules will be gone.
|
||||||
|
|
||||||
|
|
||||||
|
*ufw disable*
|
||||||
|
|
||||||
|
|
||||||
|
== Verify status of the ufw firewall
|
||||||
|
|
||||||
|
*ufw status* - Show short status. +
|
||||||
|
----
|
||||||
|
Status: active
|
||||||
|
|
||||||
|
To Action From
|
||||||
|
-- ------ ----
|
||||||
|
22 ALLOW Anywhere
|
||||||
|
Anywhere ALLOW 10.10.10.0/24
|
||||||
|
22 (v6) ALLOW Anywhere (v6)
|
||||||
|
----
|
||||||
|
|
||||||
|
|
||||||
|
*ufw status verbose* - Show all rules, including the default ones, and logging level.
|
||||||
|
----
|
||||||
|
Status: active
|
||||||
|
Logging: on (low)
|
||||||
|
Default: deny (incoming), allow (outgoing), allow (routed)
|
||||||
|
New profiles: skip
|
||||||
|
|
||||||
|
To Action From
|
||||||
|
-- ------ ----
|
||||||
|
22 ALLOW IN Anywhere
|
||||||
|
Anywhere ALLOW IN 10.10.10.0/24
|
||||||
|
22 (v6) ALLOW IN Anywhere (v6)
|
||||||
|
----
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user