{
    my $OUT='';
    my $protocol = ${'openvpn-routed'}{Protocol} || 'udp';
    my $port='';
    if ($protocol eq 'udp'){
        $port = ${'openvpn-routed'}{UDPPort} || '1194';
    }
    if ($protocol eq 'tcp'){
        $port = ${'openvpn-routed'}{TCPPort} || '1194';
        $protocol = 'tcp-server';
    }

$OUT .=<<"HERE";

port $port
proto $protocol
dev tunvpn0

HERE

}
