From 2dfbc312e6ccb88f838170d8e777d48aacde2ff5 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 13 Nov 2022 14:13:35 +0000 Subject: deploy: 026d679006e5d470bacdc74bb3082072edf31e36 --- network/firewall-cmd.html | 211 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 211 insertions(+) create mode 100644 network/firewall-cmd.html (limited to 'network/firewall-cmd.html') diff --git a/network/firewall-cmd.html b/network/firewall-cmd.html new file mode 100644 index 0000000..831c66e --- /dev/null +++ b/network/firewall-cmd.html @@ -0,0 +1,211 @@ + + + + + + firewall-cmd - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+

firewall-cmd(1)

+

Command line interface to the firewalld(1) daemon.

+

List current status of the firewall

+
# List all services and ports for all zones.
+firewall-cmd --list-all
+# List all services.
+firewall-cmd --list-services
+# List all ports.
+firewall-cmd --list-ports
+
+
+

Add --zone <ZONE> to limit output to a given ZONE. Use --get-zones to +see all available zones.

+
+

Add entries

+
# Add a service to the firewall, use `--get-services` to list all available
+# service names.
+firewall-cmd --add-service <SERVICE>
+# Add a specific port.
+firewall-cmd --add-port 8000/tcp
+
+

Remove entries

+
# Remove service.
+firewall-cmd --remove-service <SERVICE>
+# Remove port.
+firewall-cmd --remove-port 8000/tcp
+
+

References

+ + +
+ + +
+
+ + + +
+ + + + + + + + + + + + -- cgit v1.2.3