This site contains software provided under the terms of use of the OpenDOF Project.
[Home]
DOF Router on AWS
The DOF Router on AWS is a preconfigured set of servers running on a single AWS instance, typically provided
as an AMI. The servers include an OpenDOF authentication server and DOF router.
These servers are automatically configured when the instance starts for the first time.
The OpenDOF Project is an open-source IoT ecosystem that includes code for devices, gateways, cloud servers, and
clients. The DOF Router on AWS is provided as an open-source component, and those sources can be used to create your
own AMI or instance should you desire. See the project site for more information.
Network Requirements
This instance creates TCP and UDP DOF servers running on port 3567. In order for this instance to route DOF traffic you must configure this instance to allow port 3567 for TCP and UDP as needed.
Master Credentials
This instance supplies master credentials that are created when the instance was first run. The credentials are located on
the instance in the directory /var/opt/opendof/dof-router-on-aws/web/public/master.cred, and can be downloaded from
the home page of this site once you are logged in.
Using Domain Management
This instance comes installed with a domain management tool and can be executed by running domain-manage. Several terms are used throughout this guide. Definitions for these term can be found at the OpenDOF Glossary.
Add Authentication Node
domain-manage add --authID [DOFObjectID]
- [DOFObjectID] A valid OpenDOF DOFObjectID in standard string format. This identifies which authentication node will be added.
Add Credentials to an Authentication Node
domain-manage set --authID [DOFObjectID] --credentials [Credentials]
- [DOFObjectID] A valid OpenDOF DOFObjectID in standard string format. This identifies which authentication node the credentials will be set.
- [Credentials] The credentials to set in either credential format or a reference to a credentials file.
Grant Permissions to an Authentication Node
domain-manage grant --authID [DOFObjectID] --permission [Permission] --pgid [Permission Group ID]
- [DOFObjectID] A valid OpenDOF DOFObjectID in standard string format. This identifies which authentication node the permissions will be granted.
- [Permission] The permissions to be granted to the authentication node. The permissions must be in a valid permissions format. See Binding Permissions for more information
- [Permission Group ID] The permission group the permissions are granted in. This can be set to 'all' for the permission to be granted in all permission groups.
Revoke Permissions to an Authentication Node
domain-manage revoke --authID [DOFObjectID] --credentials [Credentials]
- [DOFObjectID] A valid OpenDOF DOFObjectID in standard string format. This identifies which authentication node the permissions will be revoked.
- [Permission] The permissions to be revoked from the authentication node.
- [Permission Group ID] The permission group of the permissions that will be revoked.
Remove Authentication Node
domain-manage remove --authID [DOFObjectID]
- [DOFObjectID] A valid OpenDOF DOFObjectID in standard string format. This identifies which authentication node will be removed.
Using Credentials Generator
This instance comes installed with a credentials generator tool and can be executed by running cred-gen.
cred-gen [Credentials Format] --file [File Location]
- [Credentials Format] The credentials you want to create. The format can be for credentials that automatically generate a secret, or for a format where the secret is specified.
- [File Location] The credentials file that will be created. If this file already exists on the file system then this command will fail, unless you also specified --force, in which case the file will be overwritten.
To Automatically Generate a Secret
< cred_type:identity >
To Manually Set a Secret
< cred_type:identity;secret >
- cred_type - This is the type of credentials. Use 1 for a key credential and 2 for a password credential.
- identity - This is the authentication ID of the credentials
- secret - The secret in the format defined by the credentials type
Examples:
<1:[3:001@test.com];{0000000000000000000000000000000000000000000000000000000000000000}>
<2:[3:001@test.com];myPassword72>