diff options
author | irregulator <irregulator@riseup.net> | 2014-05-21 20:42:46 +0300 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-07-01 16:05:40 -0700 |
commit | 156c2e1194c65d2f7813b946ac8baa90ffdf1f39 (patch) | |
tree | 4bf94e10e1d0f2aeba5c915cacb8034f40b36349 /puppet | |
parent | 54fcafe131c411a49e4277cd0d14c6ea20044203 (diff) |
Make shorewall accept incoming traffic for obfsproxy server
Diffstat (limited to 'puppet')
-rw-r--r-- | puppet/modules/site_obfsproxy/manifests/init.pp | 2 | ||||
-rw-r--r-- | puppet/modules/site_shorewall/manifests/obfsproxy.pp | 24 |
2 files changed, 26 insertions, 0 deletions
diff --git a/puppet/modules/site_obfsproxy/manifests/init.pp b/puppet/modules/site_obfsproxy/manifests/init.pp index 23a8dd30..276b30db 100644 --- a/puppet/modules/site_obfsproxy/manifests/init.pp +++ b/puppet/modules/site_obfsproxy/manifests/init.pp @@ -22,6 +22,8 @@ class site_obfsproxy { dest_port => $dest_port, } + include site_shorewall::obfsproxy + } diff --git a/puppet/modules/site_shorewall/manifests/obfsproxy.pp b/puppet/modules/site_shorewall/manifests/obfsproxy.pp new file mode 100644 index 00000000..68fb9b9f --- /dev/null +++ b/puppet/modules/site_shorewall/manifests/obfsproxy.pp @@ -0,0 +1,24 @@ +class site_shorewall::obfsproxy { + + include site_shorewall::defaults + + $obfsproxy = hiera('obfsproxy') + $scramblesuit = $obfsproxy['scramblesuit'] + $scram_port = $scramblesuit['port'] + + # define macro for incoming services + file { '/etc/shorewall/macro.leap_obfsproxy': + content => "PARAM - - tcp $scram_port ", + notify => Service['shorewall'], + require => Package['shorewall'] + } + + shorewall::rule { + 'net2fw-obfs': + source => 'net', + destination => '$FW', + action => 'leap_obfsproxy(ACCEPT)', + order => 200; + } + +} |