Everything should be automatic. See initial config below to understand steps.
You can find/change these passwords in [HOMEDIR]/lvpn/client.ini.
In case of error, just remove [HOMEDIR]/lvpn directory and try again. Backup it first, if it contains your wallet!
python client.py --auto-connect=gateid/spaceid
python mgmt.py list-spaces
python mgmt.py list-gates
By default, config file is in your [HOMEDIR]/lvpn/client.ini
See options below. Use without '--' within ini file.
Example [HOMEDIR]/lvpn/client.ini:
[global]
wallet-password = abcdaaaa8
wallet-rpc-password = dffhjoifuoifeoir
wallet-name = imported
usage: client.py [-h] [-c CONFIG] [-l {DEBUG,INFO,WARNING,ERROR}] [--log-file LOG_FILE] [--audit-file AUDIT_FILE] [--http-port HTTP_PORT] [--var-dir VAR_DIR] [--cfg-dir CFG_DIR] [--app-dir APP_DIR] [--tmp-dir TMP_DIR] [--daemon-host DAEMON_HOST]
[--daemon-bin DAEMON_BIN] [--daemon-rpc-url DAEMON_RPC_URL] [--daemon-p2p-port DAEMON_P2P_PORT] [--wallet-rpc-bin WALLET_RPC_BIN] [--wallet-cli-bin WALLET_CLI_BIN] [--wallet-rpc-url WALLET_RPC_URL] [--wallet-rpc-port WALLET_RPC_PORT]
[--wallet-rpc-user WALLET_RPC_USER] [--wallet-rpc-password WALLET_RPC_PASSWORD] [--wallet-address WALLET_ADDRESS] [--spaces-dir SPACES_DIR] [--gates-dir GATES_DIR] [--providers-dir PROVIDERS_DIR] [--my-spaces-dir MY_SPACES_DIR]
[--my-gates-dir MY_GATES_DIR] [--my-providers-dir MY_PROVIDERS_DIR] [--manager-local-bind MANAGER_LOCAL_BIND] [--manager-bearer-auth MANAGER_BEARER_AUTH] [--readonly-providers READONLY_PROVIDERS] [--sessions-dir SESSIONS_DIR]
[--coin-type {lethean}] [--coin-unit COIN_UNIT] [--lthn-price LTHN_PRICE] [--force-manager-url FORCE_MANAGER_URL] [--force-manager-wallet FORCE_MANAGER_WALLET] [--on-session-activation ON_SESSION_ACTIVATION]
[--on-session-deactivation ON_SESSION_DEACTIVATION] [--default-pay-days DEFAULT_PAY_DAYS] [--unpaid-expiry UNPAID_EXPIRY] [--use-tx-pool USE_TX_POOL] [--wg-map-device WG_MAP_DEVICE] [--wg-map-privkey WG_MAP_PRIVKEY]
[--wg-cmd-prefix WG_CMD_PREFIX] [--wg-cmd-set-ip WG_CMD_SET_IP] [--wg-cmd-unset-ips WG_CMD_UNSET_IPS] [--wg-cmd-set-interface-up WG_CMD_SET_INTERFACE_UP] [--wg-cmd-create-interface WG_CMD_CREATE_INTERFACE]
[--wg-cmd-delete-interface WG_CMD_DELETE_INTERFACE] [--wg-cmd-route WG_CMD_ROUTE] [--wg-cmd-nat WG_CMD_NAT] [--enable-wg {0,1}] [--is-client IS_CLIENT] [--is-server IS_SERVER] [--single-thread {0,1}] [--run-gui {0,1}]
[--run-proxy {0,1}] [--run-wallet {0,1}] [--run-daemon {0,1}] [--wallet-name WALLET_NAME] [--wallet-password WALLET_PASSWORD] [--edge-bin EDGE_BIN] [--chromium-bin CHROMIUM_BIN] [--use-http-proxy USE_HTTP_PROXY]
[--local-bind LOCAL_BIND] [--max-tls-connections MAX_TLS_CONNECTIONS] [--ssh-engine {paramiko,ssh}] [--auto-connect AUTO_CONNECT] [--auto-reconnect AUTO_RECONNECT] [--auto-pay-days AUTO_PAY_DAYS]
[--free-session-days FREE_SESSION_DAYS] [--wg-shutdown-on-disconnect {0,1}] [--connect-and-exit {0,1}] [--contributions CONTRIBUTIONS]
options:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
Config file path
-l {DEBUG,INFO,WARNING,ERROR}, --log-level {DEBUG,INFO,WARNING,ERROR}
Log level [env var: WLC_LOGLEVEL]
--log-file LOG_FILE Log file
--audit-file AUDIT_FILE
Audit file for storing all payments and transactions
--http-port HTTP_PORT
HTTP port to use for manager
--var-dir VAR_DIR Var directory [env var: WLC_VAR_DIR]
--cfg-dir CFG_DIR Cfg directory [env var: WLC_CFG_DIR]
--app-dir APP_DIR App directory
--tmp-dir TMP_DIR Temp directory [env var: WLC_TMP_DIR]
--daemon-host DAEMON_HOST
Daemon host
--daemon-bin DAEMON_BIN
Daemon binary file
--daemon-rpc-url DAEMON_RPC_URL
Daemon RPC URL
--daemon-p2p-port DAEMON_P2P_PORT
Daemon P2P port
--wallet-rpc-bin WALLET_RPC_BIN
Wallet RPC binary file
--wallet-cli-bin WALLET_CLI_BIN
Wallet CLI binary file
--wallet-rpc-url WALLET_RPC_URL
Wallet RPC URL
--wallet-rpc-port WALLET_RPC_PORT
Wallet RPC port
--wallet-rpc-user WALLET_RPC_USER
Wallet RPC user
--wallet-rpc-password WALLET_RPC_PASSWORD
Wallet RPC password. Default is to generate random.
--wallet-address WALLET_ADDRESS
Wallet public address
--spaces-dir SPACES_DIR
Directory containing all spaces VDPs
--gates-dir GATES_DIR
Directory containing all gateway VDPs
--providers-dir PROVIDERS_DIR
Directory containing all provider VDPs
--my-spaces-dir MY_SPACES_DIR
Directory containing our VDPs
--my-gates-dir MY_GATES_DIR
Directory containing our gateway VDPs
--my-providers-dir MY_PROVIDERS_DIR
Directory containing our provider VDPs
--manager-local-bind MANAGER_LOCAL_BIND
Bind address to use for manager
--manager-bearer-auth MANAGER_BEARER_AUTH
Bearer authentication string for private APIs
--readonly-providers READONLY_PROVIDERS
List of providers, delimited by comma, which cannot be updated by VDP from outside. Default to respect --my-providers
--sessions-dir SESSIONS_DIR
Directory containing all sessions
--coin-type {lethean}
Coin type to sue
--coin-unit COIN_UNIT
Coin minimal unit
--lthn-price LTHN_PRICE
Price for 1 LTHN. Use fixed number for fixed price or use *factor to factor actual price by number
--force-manager-url FORCE_MANAGER_URL
Manually override manager url for all spaces. Used just for tests
--force-manager-wallet FORCE_MANAGER_WALLET
Manually override wallet address url for all spaces. Used just for tests
--on-session-activation ON_SESSION_ACTIVATION
External script to be run on session activation. Session file is passed as argument.
--on-session-deactivation ON_SESSION_DEACTIVATION
External script to be run on session deactivation. Session file is passed as argument.
--default-pay-days DEFAULT_PAY_DAYS
How many days to pay by default for paid services.
--unpaid-expiry UNPAID_EXPIRY
How long time in seconds before unpaid session is deleted
--use-tx-pool USE_TX_POOL
Use payments from pool (not confirmed by network) to accept payments.
--wg-map-device WG_MAP_DEVICE
Wireguard device map mapping gateid to device name. Use gateid,name
--wg-map-privkey WG_MAP_PRIVKEY
Wireguard private key mapping gateid key. Use gateid,key
--wg-cmd-prefix WG_CMD_PREFIX
Wireguard prefix to run wg command. Can be 'sudo' or 'ssh root@server' or anything else what will be prepended before wg command.
--wg-cmd-set-ip WG_CMD_SET_IP
Wireguard command to assign IP address to interface
--wg-cmd-unset-ips WG_CMD_UNSET_IPS
Wireguard command to unset IP addresses from interface
--wg-cmd-set-interface-up WG_CMD_SET_INTERFACE_UP
Wireguard command to set interface up
--wg-cmd-create-interface WG_CMD_CREATE_INTERFACE
Wireguard command to create interface.
--wg-cmd-delete-interface WG_CMD_DELETE_INTERFACE
Wireguard command to delete interface.
--wg-cmd-route WG_CMD_ROUTE
Wireguard command to route network.
--wg-cmd-nat WG_CMD_NAT
Wireguard command to masquerade route
--enable-wg {0,1} Enable wireguard support
--is-client IS_CLIENT
For internal usage
--is-server IS_SERVER
For internal usage
--single-thread {0,1}
For internal usage
--run-gui {0,1} Run GUI
--run-proxy {0,1} Run local proxy
--run-wallet {0,1} Run local wallet
--run-daemon {0,1} Run local daemon RPC
--wallet-name WALLET_NAME
Wallet name
--wallet-password WALLET_PASSWORD
Wallet password
--edge-bin EDGE_BIN Edge browser binary
--chromium-bin CHROMIUM_BIN
Chromium browser binary
--use-http-proxy USE_HTTP_PROXY
Use HTTP proxy (CONNECT) to services [env var: HTTP_PROXY]
--local-bind LOCAL_BIND
Bind address to use for proxy and TLS ports
--max-tls-connections MAX_TLS_CONNECTIONS
How many connection at maximum to back-off
--ssh-engine {paramiko,ssh}
SSH engine to use
--auto-connect AUTO_CONNECT
Auto connect uris
--auto-reconnect AUTO_RECONNECT
Auto reconnect on failure. 0 to disable, positive number is seconds to wait between reconnect
--auto-pay-days AUTO_PAY_DAYS
Auto pay service when there is an request to connect for this number of days. By default, payment must be confirmed by GUI
--free-session-days FREE_SESSION_DAYS
How many days to request for free service
--wg-shutdown-on-disconnect {0,1}
If set to 1, WG interface will be destroyed during disconnect.
--connect-and-exit {0,1}
If set to 1, Client will just run connection and exits. Works only for ssh and wg gates. Implies --wg-shutdown-on-disconnect=0, --auto-reconnect=0, --run-gui=0
--contributions CONTRIBUTIONS
Contribute other parties by using this service as a client (increase price).
Args that start with '--' can also be set in a config file (/etc/lvpn/client.ini or /etc/lvpn//client.ini or /home/lm-a/lvpn//client.ini or specified via -c). Config file syntax allows: key=value, flag=true, stuff=[a,b,c] (for details, see syntax at
https://goo.gl/R74nmi). In general, command-line values override environment variables which override config file values which override defaults.