diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-01-08 15:50:26 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-01-08 15:50:26 -0300 |
commit | 3d1cf84f39fece3f2a9f8b7247a792212eb81177 (patch) | |
tree | f1fa5ca591908d363d13d30256f7af3b242d2d6b /manifests/implementations/ferm/tpc.pp | |
parent | 55fa862bae8e2582e5ac0c008a0bb0ec53d9bfff (diff) | |
download | puppet-firewall-3d1cf84f39fece3f2a9f8b7247a792212eb81177.tar.gz puppet-firewall-3d1cf84f39fece3f2a9f8b7247a792212eb81177.tar.bz2 |
Feat: major refactor
Diffstat (limited to 'manifests/implementations/ferm/tpc.pp')
-rw-r--r-- | manifests/implementations/ferm/tpc.pp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/manifests/implementations/ferm/tpc.pp b/manifests/implementations/ferm/tpc.pp new file mode 100644 index 0000000..b36c83f --- /dev/null +++ b/manifests/implementations/ferm/tpc.pp @@ -0,0 +1,36 @@ +# Basic configuration inspired by +# http://ferm.foo-projects.org/download/examples/workstation.ferm +class firewall::implementations::ferm::tpc { + # Currently conflicting with the stdlib and concat module's versions in use + #ferm::rule{ "allow-local-tcp": + # chain => 'INPUT', + # action => 'ACCEPT', + # proto => 'tcp', + # interface => 'lo', + # ensure => 'present', + #} + + # Currently conflicting with the stdlib and concat module's versions in use + #ferm::rule{ "allow-local-udp": + # chain => 'INPUT', + # action => 'ACCEPT', + # proto => 'udp', + # interface => 'lo', + # ensure => 'present', + #} + + file { '/etc/ferm/ferm.conf': + ensure => present, + owner => root, + group => adm, + mode => '0644', + require => Package['ferm'], + notify => Service['ferm'], + source => [ + "puppet:///modules/firewall/ferm/ferm.conf.tpc", + "puppet:///modules/firewall/ferm/ferm.conf.${::hostname}", + "puppet:///modules/site_firewall/ferm/ferm.conf.tpc", + "puppet:///modules/site_firewall/ferm/ferm.conf.${::hostname}", + ], + } +} |