]> git.proxmox.com Git - pve-firewall.git/blobdiff - example/100.fw
use underscore instead of hyphen for fw options
[pve-firewall.git] / example / 100.fw
index 3ff340ab923503423d8279bb03ac645cbfc2b66e..36c831ae97bcbdb9a274e84a2c9f033f6f147277 100644 (file)
@@ -1,16 +1,48 @@
 # Example VM firewall configuration
-#ACTION IFACE SOURCE DEST PROTO D-PORT S-PORT
 
-[IN]
+[OPTIONS] # VM specific firewall options
 
-SSH(ACCEPT) net0 192.168.2.192 -
+# disable/enable the whole thing
+enable: 1 
 
-[OUT]
+# disable/enable MAC address filter
+macfilter: 0
 
+# default policy
+policy_in: DROP
+policy_out: REJECT
 
-DNS(ACCEPT) net0
-Ping(ACCEPT) net0
-SSH(ACCEPT)
+# log dropped incoming connection
+log_level_in: info
+
+# disable log for outgoing connections
+log_level_out: nolog
+
+# filter SMURFS
+nosmurfs: 1
+
+# filter illegal combinations of TCP flags
+tcpflags: 1
+
+# enable DHCP
+dhcp: 1
+
+
+[RULES]
+
+#TYPE ACTION IFACE SOURCE DEST PROTO D-PORT S-PORT
+
+IN SSH(ACCEPT) net0
+IN SSH(ACCEPT) net0 # a comment
+IN SSH(ACCEPT) net0 192.168.2.192  # only allow SSH from  192.168.2.192
+|IN SSH(ACCEPT) net0 # disabled rule
+
+# add a security group
+GROUP group1 net0
+
+OUT DNS(ACCEPT) net0
+OUT Ping(ACCEPT) net0
+OUT SSH(ACCEPT)