1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
class firewall::router::mail($destination, $zone = 'loc', $originaldest = $ipaddress) {
shorewall::rule { 'mail-1':
action => 'DNAT',
source => 'net',
destination => "$zone:$destination:25",
proto => 'tcp',
destinationport => '25',
ratelimit => '-',
order => 1000,
}
shorewall::rule { 'mail-2':
action => 'DNAT',
source => '$FW',
destination => "$zone:$destination:25",
proto => 'tcp',
destinationport => '25',
originaldest => "$originaldest",
ratelimit => '-',
order => 1001,
}
shorewall::rule { 'mail-3':
action => 'DNAT',
source => 'net',
destination => "$zone:$destination:993",
proto => 'tcp',
destinationport => '993',
ratelimit => '-',
order => 1002,
}
shorewall::rule { 'mail-4':
action => 'DNAT',
source => '$FW',
destination => "$zone:$destination:993",
proto => 'tcp',
destinationport => '993',
originaldest => "$originaldest",
ratelimit => '-',
order => 1003,
}
shorewall::rule { 'mail-5':
action => 'DNAT',
source => 'net',
destination => "$zone:$destination:587",
proto => 'tcp',
destinationport => '587',
ratelimit => '-',
order => 1004,
}
shorewall::rule { 'mail-6':
action => 'DNAT',
source => '$FW',
destination => "$zone:$destination:587",
proto => 'tcp',
destinationport => '587',
originaldest => "$originaldest",
ratelimit => '-',
order => 1005,
}
}
|