]> git.proxmox.com Git - pve-firewall.git/blobdiff - example/100.fw
improve example
[pve-firewall.git] / example / 100.fw
index 94ab2a602df410db500eb1496d9e874e0984d365..c144db8a7901f5983afe3d2b236e3fa45d1e8836 100644 (file)
@@ -1,17 +1,35 @@
 # Example VM firewall configuration
-#ACTION IFACE SOURCE DEST PROTO D-PORT S-PORT
 
-# ACTION: shorewall action
-# IFACE: vm network interface (net0 - net5), or '-' for all interfaces
-# SOURCE: source IP address, or '-' for any source
-# DEST: dest IP address, or '-' for any destination address
-# PROTO: see /etc/protocols
-# D-PORT: destination port
-# S-PORT: source port
+[OPTIONS] # VM specific firewall options
+
+# disable/enable the whole thing
+enable: 1 
+
+# disable/enable MAC address filter
+macfilter: 0
+
+# default policy
+policy-in: DROP
+policy-out: REJECT
+
+# filter SMURFS
+nosmurfs: 1
+
+# filter illegal combinations of TCP flags
+tcpflags: 1
+
+# enable DHCP
+dhcp: 1
+
 
 [IN]
 
-SSH(ACCEPT) net0 192.168.2.192 -
+#ACTION IFACE SOURCE DEST PROTO D-PORT S-PORT
+
+SSH(ACCEPT) net0
+SSH(ACCEPT) net0 # a comment
+SSH(ACCEPT) net0 192.168.2.192  # only allow SSH from  192.168.2.192
+|SSH(ACCEPT) net0 # disbaled rule
 
 [OUT]