From: Peter Palfrader Date: Sat, 23 Aug 2014 09:47:44 +0000 (+0200) Subject: Allow bt ports between static hosts X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=02468c9711c0cf6297d6057f9ba5ed78af11be83;p=mirror%2Fdsa-puppet.git Allow bt ports between static hosts --- diff --git a/modules/roles/manifests/static_base.pp b/modules/roles/manifests/static_base.pp index 6d4c33dd2..ed1f55f25 100644 --- a/modules/roles/manifests/static_base.pp +++ b/modules/roles/manifests/static_base.pp @@ -20,4 +20,16 @@ class roles::static_base { } file { '/usr/local/bin/static-mirror-ssh-wrap': ensure => absent; } file { '/usr/local/bin/static-master-ssh-wrap': ensure => absent; } + + @ferm::rule { 'dsa-static-bt-v4': + description => 'Allow bt between static hosts', + rule => 'proto tcp mod state state (NEW) mod multiport destination-ports (6881-6999) @subchain \'static-bt\' { saddr ($HOST_STATIC_V4) ACCEPT; }', + notarule => true, + } + @ferm::rule { 'dsa-static-bt-v6': + description => 'Allow bt between static hosts', + domain => 'ip6', + rule => 'proto tcp mod state state (NEW) mod multiport destination-ports (6881-6999) @subchain \'static-bt\' { saddr ($HOST_STATIC_V6) ACCEPT; }', + notarule => true, + } }