class firewall::virtual::gitd($destination) { shorewall::rule { 'git-daemon-1': action => 'DNAT', source => 'net', destination => "vm:$destination:9418", proto => 'tcp', destinationport => '9418', originaldest => lookup('firewall::external_ip', undef, undef, $::ipaddress), ratelimit => '-', order => 800, } shorewall::rule { 'git-daemon-2': action => 'DNAT', source => 'vm', destination => "fw:$destination:9418", proto => 'tcp', destinationport => '9418', originaldest => lookup('firewall::external_ip', undef, undef, $::ipaddress), ratelimit => '-', order => 801, } }