tinc is a P2P VPN network. Read http://tinc-vpn.org for details
./tinc init main
./tinc add Subnet 10.10.0.1/32
./tinc start 10.10.0.1/16
On the main node
./tinc invite node1
server:655/ds45-fsdfsdrd6
Copy url and use it on the new node
./tinc join server:655/ds45-fsdfsdrd6 # init node
./tinc add Subnet 10.10.0.2/32 # add tinc internal routing
./tinc start 10.10.0.2/16 # start tinc and configure network interface
ping 10.10.0.1 # check access to main node