Mercurial > repos > other > Puppet
changeset 91:61a79ae833cb puppet-3.6
Follow the documentation properly and specify dport, not just port
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 16 Jan 2016 11:00:38 +0000 |
parents | 5d6111879862 |
children | 4412f5e0b2ba |
files | manifests/templates.pp |
diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/manifests/templates.pp Sat Jan 16 10:59:56 2016 +0000 +++ b/manifests/templates.pp Sat Jan 16 11:00:38 2016 +0000 @@ -86,10 +86,16 @@ class { 'firewall': } firewall { '010 Whitelist Googlebot': source => '66.249.64.0/19', - port => [80,443], + dport => [80,443], proto => tcp, action => accept, } + firewall { '099 Blacklist spammers': + source => '146.0.229.80/28', + dport => [465, 25], + proto => tcp, + action => 'reject', + } firewallchain { 'GREATFIREWALLOFCHINA:filter:IPv4': ensure => present, } @@ -105,17 +111,17 @@ jump => 'Fail2Ban', } firewall { '100 allow https and http': - port => [80, 443], + dport => [80, 443], proto => tcp, action => accept, } firewall { '101 allow SMTP': - port => [25, 465], + dport => [25, 465], proto => tcp, action => accept, } firewall { '102 allow IMAPS': - port => 993, + dport => 993, proto => tcp, action => accept, }