blob: 798cd631ebd6eb9be90e7ce20203113ef27f3b31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#
# Allow all incoming connections to stunnel server port
#
define site_shorewall::stunnel::server($port) {
include site_shorewall::defaults
file { "/etc/shorewall/macro.stunnel_server_${name}":
content => "PARAM - - tcp ${port}",
notify => Service['shorewall'],
require => Package['shorewall']
}
shorewall::rule {
"net2fw-stunnel-server-${name}":
source => 'net',
destination => '$FW',
action => "stunnel_server_${name}(ACCEPT)",
order => 200;
}
}
|