From 5a64b4e5d2ab908cef1ac48925e329ecb4044d7e Mon Sep 17 00:00:00 2001 From: yuriskinfo Date: Fri, 18 Sep 2020 13:12:39 +0300 Subject: [PATCH] committing ... --- Linux-and-BSD-firewalls-cheat-sheet.adoc | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Linux-and-BSD-firewalls-cheat-sheet.adoc diff --git a/Linux-and-BSD-firewalls-cheat-sheet.adoc b/Linux-and-BSD-firewalls-cheat-sheet.adoc new file mode 100644 index 0000000..3ccaf7b --- /dev/null +++ b/Linux-and-BSD-firewalls-cheat-sheet.adoc @@ -0,0 +1,38 @@ += Linux and PF firewalls commands cheat sheet +Yuri Slobodyanyuk +v1.0, 2020-09-01 +:homepage: https://yurisk.info + +== Firewalld management (Red Hat based distributions) +.firewall-cmd commands +[cols=2, options="header"] +|=== +|Command +|Description + +|*firewall-cmd --state* +|Show firewall daemon status + +|*firewall-cmd --list-all* +|List currently active rules + +|*firewall-cmd --reload* +|Reload firewall keeping the state table. Active sessions do not disconnect. On finishing reload will output `success`. + +|*firewall-cmd --get-default-zone* +| Show the default zone for interfaces. + +|*firewall-cmd --get-zones* +|List all available zones + +|*firewall-cmd --get-active-zones* +| Show active zones, including to which zone each interface belongs. + +|*firewall-cmd --list-all-zones* +|List all zones with their rules and associated interfaces. + +|*firewall-cmd -add-service * +|Add predefined service by name to the default zone, with action ACCEPT. + + +|===