comparison manifests/templates.pp @ 118:f0a86e36d33f puppet-3.6

Ban IODC bot, because they can't behave and don't have robots.txt instructions
author IBBoard <dev@ibboard.co.uk>
date Tue, 19 Jul 2016 20:25:44 +0100
parents be2b30b17a4c
children 033282abfc28
comparison
equal deleted inserted replaced
117:3fdde0638538 118:f0a86e36d33f
97 source => '146.0.229.80/28', 97 source => '146.0.229.80/28',
98 dport => [465, 25], 98 dport => [465, 25],
99 proto => tcp, 99 proto => tcp,
100 action => 'reject', 100 action => 'reject',
101 } 101 }
102 firewall { '099 Blacklist IODC bot':
103 # IODC bot makes too many bad requests, and contact form is broken
104 # They don't publish a robots.txt name, so firewall it!
105 source => '86.153.145.149',
106 dport => [ 80, 443 ],
107 proto => tcp,
108 action => 'reject',
109 }
102 firewallchain { 'GREATFIREWALLOFCHINA:filter:IPv4': 110 firewallchain { 'GREATFIREWALLOFCHINA:filter:IPv4':
103 ensure => present, 111 ensure => present,
104 } 112 }
105 firewall { '050 Check our Great Firewall Against China': 113 firewall { '050 Check our Great Firewall Against China':
106 chain => 'INPUT', 114 chain => 'INPUT',