This quick start shows the steps to run a slightly-modified Tinc-VPN 1.0.36 to create a SD-WAN on DNet testnet. A driver App has been developed to map the DNet blockdata with the Tinc-VPN configuration settings and also manage the life cycle of Tinc App, like init, start, update setting and stop.
By the end of this tutorial, a private overlay network in the form of Layer 3 Virtual LAN is created. A Cloud VPN is created over Internet. Nodes around the world with assigned virtual IP address can connect with peer nodes like in a LAN environment.
Environment: tested on Ubuntun 16.04, 18.04, 20.04
Making sure dnetd is started:
dnetd -testnet -daemon
dnet-cli -testnet create_ovc 'my_first_ovc', a ovc_id is generated.
dnet-cli -testnet vlan_init 'ovc_conf_folder', the PubKey of the vlan ovc will be generated;
dnet-cli -testnet dnet_put 'ovc_id' 'Public IP' 'PubKey', can add multiple resources to the ovc_id.
The same OVF can be used by multiple DNet.App.
dnet-cli -testnet create_dnet 'my_first_dnet'
dnet-cli -testnet dnet_put 'dnet_id' 'ovc_id'
`dnet-cli -testnet dnet_put 'ovc_id' 'dnet_id'`
If third-party ovc provider is used, step 2 & 3 can be skipped and adding third-party's ovc_id directly in step 4.
On Client's node:
dnet-cli vlan_init /home/parallels/dnet_conf/ to generate the PubKey of the node, share the PubKey with the creator;
On Creator's node:
dnet-cli dnet_put 'dnet_id' 'assigned virtual IP' 'PubKey' dnet creator adds the node's vIP and PubKey to dnet.
On Client's node: client node joins the dnet
dnet-cli vlan_start /home/parallels/dnet_conf/
dnet-cli vlan_vlan connect 'dnet_id' /home/parallels/dnet_conf/vlan.pid
Now, the private overlay network is setup!
The next section uses Tinc-VPN as example to explain the details of the DNetwork concepts, configuration and how to run an existing application to DNet platform.