X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=example%2F100.fw;h=30d1b1bb6dceb6e3006975021c0fce07bc63e12c;hb=63324b09bb05ab3e23e2c168534118e6017c7fe1;hp=36c831ae97bcbdb9a274e84a2c9f033f6f147277;hpb=72f63fde6e68abfa9b1b4e35d63f4788086d2c1c;p=pve-firewall.git diff --git a/example/100.fw b/example/100.fw index 36c831a..30d1b1b 100644 --- a/example/100.fw +++ b/example/100.fw @@ -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 @@ -18,8 +19,8 @@ log_level_in: info # disable log for outgoing connections log_level_out: nolog -# filter SMURFS -nosmurfs: 1 +# disable SMURFS filter +nosmurfs: 0 # filter illegal combinations of TCP flags tcpflags: 1 @@ -27,6 +28,13 @@ tcpflags: 1 # enable DHCP dhcp: 1 +# enable ips +ips: 1 + +# specify nfqueue queues (optionnal) +#ips_queues: 0 +ips_queues: 0:3 + [RULES] @@ -35,6 +43,10 @@ dhcp: 1 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 10.0.0.1-10.0.0.10 #accept SSH for ip in range 10.0.0.1 to 10.0.0.10 +IN SSH(ACCEPT) net0 10.0.0.1,10.0.0.2,10.0.0.3 #accept ssh for 10.0.0.1 or 10.0.0.2 or 10.0.0.3 +IN SSH(ACCEPT) net0 +mynetgroup #accept ssh for netgroup mynetgroup + |IN SSH(ACCEPT) net0 # disabled rule # add a security group