]> git.proxmox.com Git - pve-firewall.git/blobdiff - example/100.fw
add ips feature v7
[pve-firewall.git] / example / 100.fw
index c144db8a7901f5983afe3d2b236e3fa45d1e8836..6572fe3bd2e9c609f279d71322803a8ef4fb6d34 100644 (file)
@@ -1,6 +1,7 @@
 # Example VM firewall configuration
 
-[OPTIONS] # VM specific firewall options
+# VM specific firewall options
+[OPTIONS]
 
 # disable/enable the whole thing
 enable: 1 
@@ -9,11 +10,17 @@ enable: 1
 macfilter: 0
 
 # default policy
-policy-in: DROP
-policy-out: REJECT
+policy_in: DROP
+policy_out: REJECT
 
-# filter SMURFS
-nosmurfs: 1
+# log dropped incoming connection
+log_level_in: info
+
+# disable log for outgoing connections
+log_level_out: nolog
+
+# disable SMURFS filter
+nosmurfs: 0
 
 # filter illegal combinations of TCP flags
 tcpflags: 1
@@ -21,22 +28,29 @@ tcpflags: 1
 # enable DHCP
 dhcp: 1
 
+# enable ips
+ips: 1
+
+# specify nfqueue queues (optionnal)
+#ips_queues: 0
+ips_queues: 0:3
 
-[IN]
 
-#ACTION IFACE SOURCE DEST PROTO D-PORT S-PORT
+[RULES]
 
-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
+#TYPE ACTION IFACE SOURCE DEST PROTO D-PORT S-PORT
 
-[OUT]
+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
 
-DNS(ACCEPT) net0
-Ping(ACCEPT) net0
-SSH(ACCEPT)
+OUT DNS(ACCEPT) net0
+OUT Ping(ACCEPT) net0
+OUT SSH(ACCEPT)