Mercurial > repos > other > Puppet
view modules/my_fw/manifests/pre.pp @ 482:d83de9b3a62b default tip
Update hiera.yaml within Puppet config
Forgot that we manage it from here. Now has content to match
new packages
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 30 Aug 2024 16:10:36 +0100 |
parents | 2c3e745be8d2 |
children |
line wrap: on
line source
class my_fw::pre { Firewall { require => undef, } $icmp_proto = $my_fw::ip_version == "IPv6" ? { true => 'ipv6-icmp', default => 'icmp' } $localhost = $my_fw::ip_version == "IPv6" ? { true => '::1/128', default => '127.0.0.0/8' } # Default firewall rules firewall { '000 accept all icmp': proto => $icmp_proto, jump => 'accept', } -> firewall { '001 accept all to lo interface': proto => 'all', iniface => 'lo', jump => 'accept', } -> firewall { "002 reject local traffic not on loopback interface": iniface => '! lo', proto => 'all', destination => $localhost, jump => 'reject', } -> firewall { '005 accept related established rules': proto => 'all', state => ['RELATED', 'ESTABLISHED'], jump => 'accept', } }