X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=example%2F100.fw;h=36c831ae97bcbdb9a274e84a2c9f033f6f147277;hp=3ff340ab923503423d8279bb03ac645cbfc2b66e;hb=72f63fde6e68abfa9b1b4e35d63f4788086d2c1c;hpb=f4bf58dd92d2f67c53f9bdbc02ee93ab351323ea diff --git a/example/100.fw b/example/100.fw index 3ff340a..36c831a 100644 --- a/example/100.fw +++ b/example/100.fw @@ -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)