Commit 589f32d7 authored by mh's avatar mh

manage new and legacy ports of managesieve

parent b962d72a
class shorewall::rules::managesieve {
# manage managesieve ports
class shorewall::rules::managesieve(
$legacy_port = false,
) {
shorewall::rule {
'net-me-tcp_managesieve':
source => 'net',
destination => '$FW',
proto => 'tcp',
destinationport => '4190',
order => 260,
action => 'ACCEPT';
}
if $legacy_port {
shorewall::rule {
'net-me-tcp_managesieve':
source => 'net',
destination => '$FW',
proto => 'tcp',
destinationport => '2000',
order => 260,
action => 'ACCEPT';
'net-me-tcp_managesieve_legacy':
source => 'net',
destination => '$FW',
proto => 'tcp',
destinationport => '2000',
order => 260,
action => 'ACCEPT';
}
}
}
class shorewall::rules::out::managesieve {
# manage outgoing traffic to managesieve
class shorewall::rules::out::managesieve(
$legacy_port = false
) {
shorewall::rule {
'me-net-tcp_managesieve':
source => '$FW',
destination => 'net',
proto => 'tcp',
destinationport => '4190',
order => 260,
action => 'ACCEPT';
}
if $legacy_port {
shorewall::rule {
'me-net-tcp_managesieve':
source => '$FW',
destination => 'net',
proto => 'tcp',
destinationport => '2000',
order => 260,
action => 'ACCEPT';
'me-net-tcp_managesieve_legacy':
source => '$FW',
destination => 'net',
proto => 'tcp',
destinationport => '2000',
order => 260,
action => 'ACCEPT';
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment