}
class firewall::vserver::dns($destination, $zone = 'vm') {
+ shorewall::rule { 'dns-route-0':
+ action => 'DNS/ACCEPT',
+ source => 'net',
+ destination => '$FW',
+ proto => '-',
+ destinationport => '-',
+ ratelimit => '-',
+ order => '2000',
+ }
+
shorewall::rule { 'dns-route-1':
action => 'DNAT',
source => 'net',
proto => 'tcp',
destinationport => '53',
ratelimit => '-',
- order => '2000',
+ order => '2001',
}
shorewall::rule { 'dns-route-2':
destinationport => '53',
originaldest => "$ipaddress",
ratelimit => '-',
- order => '2001',
+ order => '2002',
}
shorewall::rule { 'dns-route-3':
proto => 'udp',
destinationport => '53',
ratelimit => '-',
- order => '2002',
+ order => '2003',
}
shorewall::rule { 'dns-route-4':
destinationport => '53',
originaldest => "$ipaddress",
ratelimit => '-',
- order => '2003',
+ order => '2004',
}
}