]> git.proxmox.com Git - pve-docs.git/commitdiff
add auto-generated cluster firewall options
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 1 Apr 2016 10:39:20 +0000 (12:39 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 1 Apr 2016 10:39:20 +0000 (12:39 +0200)
Makefile
gen-pve-firewall-cluster-opts.pl [new file with mode: 0755]
pve-firewall-cluster-opts.adoc [new file with mode: 0644]
pve-firewall.adoc

index e7b9ad2b3d0c3d2c2203d27f490702826ae25859..d22045cc4a5da20ea6b15715ea617d53734868dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ RELEASE=4.1
 PVESM_SOURCES=attributes.txt pvesm.adoc pvesm.1-synopsis.adoc $(shell ls pve-storage-*.adoc)
 PVEUM_SOURCES=attributes.txt pveum.adoc pveum.1-synopsis.adoc
 VZDUMP_SOURCES=attributes.txt vzdump.adoc vzdump.1-synopsis.adoc
-PVEFW_SOURCES=attributes.txt pve-firewall.adoc pve-firewall-rules-opts.adoc pve-firewall-macros.adoc pve-firewall.8-synopsis.adoc
+PVEFW_SOURCES=attributes.txt pve-firewall.adoc pve-firewall-rules-opts.adoc pve-firewall-cluster-opts.adoc pve-firewall-macros.adoc pve-firewall.8-synopsis.adoc
 QM_SOURCES=attributes.txt qm.adoc qm.1-synopsis.adoc
 PCT_SOURCES=attributes.txt pct.adoc pct.1-synopsis.adoc
 PVEAM_SOURCES=attributes.txt pveam.adoc pveam.1-synopsis.adoc
@@ -79,6 +79,10 @@ all: pve-admin-guide.html
        asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ $*.adoc
        test -z "$${NOVIEW}" && $(BROWSER) $@ &
 
+pve-firewall-cluster-opts.adoc:
+       ./gen-pve-firewall-cluster-opts.pl >$@.tmp
+       mv $@.tmp $@
+
 pve-firewall-rules-opts.adoc:
        ./gen-pve-firewall-rules-opts-adoc.pl >$@.tmp
        mv $@.tmp $@
diff --git a/gen-pve-firewall-cluster-opts.pl b/gen-pve-firewall-cluster-opts.pl
new file mode 100755 (executable)
index 0000000..2d4a04c
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use PVE::Firewall;
+use PVE::RESTHandler;
+
+my $prop = $PVE::Firewall::cluster_option_properties;
+
+print PVE::RESTHandler::dump_properties($prop);
diff --git a/pve-firewall-cluster-opts.adoc b/pve-firewall-cluster-opts.adoc
new file mode 100644 (file)
index 0000000..0c87244
--- /dev/null
@@ -0,0 +1,12 @@
+`enable`: `integer (0 - N)` ::
+
+Enable or disable the firewall cluster wide.
+
+`policy_in`: `(ACCEPT | DROP | REJECT)` ::
+
+Input policy.
+
+`policy_out`: `(ACCEPT | DROP | REJECT)` ::
+
+Output policy.
+
index 1fc86a1e69075abc58ae43ee9d69628f9fc707f2..bb02365e51fbba730a728d8b77b73951eee33843 100644 (file)
@@ -93,6 +93,8 @@ The configuration can contain the following sections:
 
 This is used to set cluster wide firewall options.
 
+include::pve-firewall-cluster-opts.adoc[]
+
 NOTE: The firewall is completely disabled by default, so you need to
 set the enable option here: