From b0d378f84a309c6ede6ee4adb10bd94b011eb549 Mon Sep 17 00:00:00 2001 From: yuriskinfo Date: Sun, 16 May 2021 18:22:27 +0300 Subject: [PATCH] e --- Ubuntu-ufw-firewall-cookbook.adoc | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 Ubuntu-ufw-firewall-cookbook.adoc diff --git a/Ubuntu-ufw-firewall-cookbook.adoc b/Ubuntu-ufw-firewall-cookbook.adoc new file mode 100755 index 0000000..80f7342 --- /dev/null +++ b/Ubuntu-ufw-firewall-cookbook.adoc @@ -0,0 +1,43 @@ += Ubuntu Uncomplicated Firewall (ufw) cookbook of configuration examples + +<> + +<> + +<> + + + +== 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) +---- + +