The node must have a token wallet to act as a VPN client.
Client initialization command:
./cellframe-node-cli vpn_client init -w <wallet name> -token <token name> -value <value> -net <net name>
Example:
./cellframe-node-cli vpn_client init -net kelvin-testnet -w mywallet0 -token KELT -value 500
VPN client init successfully
Client start command
./cellframe-node-cli vpn_client start -addr <server address> -port <server port> -net <net name>
Example:
./cellframe-node-cli vpn_client start -net kelvin-testnet -addr 157.245.75.223 -port 80
VPN client started successfully
Client stop command
./cellframe-node-cli vpn_client stop -net <net name>
Example:
./cellframe-node-cli vpn_client stop -net kelvin-testnet
VPN client stopped successfully
At any time, you can check the status of the client, whether it is running or not.
./cellframe-node-cli vpn_client status -net <net name>
Possible client states:
Example:
./cellframe-node-cli vpn_client status -net kelvin-testnet
VPN client started
used:
wallet:mywallet0
receipt:500*1e-9 KELT