vpncloud(1) =========== == Name vpncloud - Peer-to-peer VPN == SYNOPSIS *vpncloud [options] [--config ] [-p ] [-l ] [-c ...]* == OPTIONS *--config *:: Read configuration options from the specified file. Please see the section *CONFIG FILES* for documentation on the file format. If the same option is defined in the config file and as a parameter, the parameter overrides the config file. *-t *, *--type *:: Set the type of network. There are two options: *tap* devices process Ethernet frames *tun* devices process IP packets. [default: *tun*] *-d *, *--device *:: Name of the virtual device. Any *%d* will be filled with a free number. [default: *vpncloud%d*] *--device-path *:: The path of the base device inode, e.g. /dev/net/tun. *--fix-rp-filter*:: If this option is set, VpnCloud will change the rp_filter settings to protect against a potential system vulnerability. See *SECURITY* for more info. *-m *, *--mode *:: The mode of the VPN. The VPN can like a router, a switch or a hub. A *hub* will send all data always to all peers. A *switch* will learn addresses from incoming data and only send data to all peers when the address is unknown. A *router* will send data according to known subnets of the peers and ignore them otherwise. The *normal* mode is switch for tap devices and router for tun devices. [default: *normal*] *-l *, *--listen *:: The address on which to listen for data. This can be simply a port number or a full address in form IP:PORT. If the IP is specified as \'\*' or only a port number is given, then the socket will listen on all IPs (v4 and v6), otherwise the socket will only listen on the given IP. Alternatively, a websocket proxy URL (starting with ws://) can be given here. Please see the section *WEBSOCKET PROXY* for more info. [default: **3210**] *-c *, *--peer *, *--connect *:: Address of a peer to connect to. The address should be in the form *addr:port*. If the node is not started, the connection will be retried periodically. This parameter can be repeated to connect to multiple peers. *--claim *:: The local subnets to claim. This parameter should be in the form *address/prefixlen* where address is an IPv4 address, an IPv6 address, or a MAC address. The prefix length is the number of significant front bits that distinguish the subnet from other subnets. Example: *10.1.1.0/24*. *--no-auto-claim*:: Do not automatically claim the IP set on the virtual interface (on TUN devices). *-p *, *--password *:: A password to encrypt the VPN data. This parameter must be set unless a password is given in a config file or a private key is set. See *SECURITY* for more info. *--key *, *--private-key *:: A private key to use for encryption. The key must be given as base62 as generated by *genkey*. See *SECURITY* for more info. *--public-key *:: A public key matching the given private key. The key must be given as base62 as generated by *genkey*. This argument is purely optional. See *SECURITY* for more info. *--trust *, **--trusted-key *:: A public key to trust. Any peer must have a key pair that is trusted by this node, otherwise it will be rejected. The key must be given as base62 as generated by *genkey*. This argument can be given multiple times. If it is not set, only the own public key will be trusted. See *SECURITY* for more info. *--algo *, *--algorithm *:: Supported encryption algorithms ("plain", "aes128", "aes256", or "chacha20"). Nodes exchange the supported algorithms and select the one that is fastest on both ends. This parameter can be given multiple times to enable multiple algorithms. *Warning:* "plain" means unencrypted and needs to be enabled explicitly. As default, all algorithms except "plain" are enabled. *--peer-timeout *:: Peer timeout in seconds. The peers will exchange information periodically and drop peers that are silent for this period of time. [default: *300*] *--keepalive *:: Interval of peer exchange messages in seconds. The peers will exchange information periodically to keep connections alive. This setting overrides how often this will happen. [default: *peer-timeout/2-60*] *--switch-timeout *:: Switch table entry timeout in seconds. This parameter is only used in switch mode. Addresses that have not been seen for the given period of time will be forgotten. [default: *300*] *--beacon-store *:: Periodically store beacons containing the address of this node in the given file or via the given command. If the parameter value starts with a pipe character (*|*), the rest of the value is interpreted as a shell command. Otherwise the value is interpreted as a file to write the beacon to. If this parameter is not given, beacon storage is disabled. Please see the section *BEACONS* for more information. *--beacon-load *:: Periodically load beacons containing the addresses of other nodes from the given file or via the given command. If the parameter value starts with a pipe character (*|*), the rest of the value is interpreted as a shell command. Otherwise the value is interpreted as a file to read the beacon from. If this parameter is not given, beacon loading is disabled. Please see the section *BEACONS* for more information. *--beacon-interval *:: Beacon storage/loading interval in seconds. If configured to do so via *--beacon-store* and *--beacon-load*, the node will periodically store its beacon and load beacons of other nodes. This parameter defines the interval in seconds. [default: *3600*] *--beacon-password *:: An optional password to use to encrypt all beacon data. See the section *BEACONS* for more information. *--ip
*:: An IP address (plus optional prefix length) for the interface. If this argument is given, the address (and if a prefix length is given, also the netmask) is configured on the device and the device is activated. If also *--ifup* is given, the interface is configured before the ifup command is executed. Please see *DEVICE SETUP* for more info. *--ifup *:: A command to setup the network interface. The command will be run (as parameter to *sh -c*) when the device has been created to configure it. The name of the allocated device will be available via the environment variable *IFNAME*. Please note that this command is executed with the full permissions of the caller. Please see *DEVICE SETUP* for more info. *--ifdown *:: A command to bring down the network interface. The command will be run (as parameter to *sh -c*) to remove any configuration from the device. The name of the allocated device will be available via the environment variable *IFNAME*. Please note that this command is executed with the (limited) permissions of the user and group given as *--user* and *--group*. *--pid-file *:: Store the process id in this file when running in the background. If set, the given file will be created containing the process id of the new background process. This option is only used when running in background. *--user *:: *--group *:: Change the user and/or group of the process once all the setup has been done. *--log-file *:: If set, print logs also to the given file. The file will be created and truncated if is exists. *--stats-file *:: If set, periodically write statistics on peers and current traffic to the given file. The file will be periodically overwritten with new data. *--statsd-server *:: If set, periodically send statistics on current traffic and some important events to the given statsd server (host:port). Please see *STATSD SUPPORT* for more info. *--statsd-prefix *:: Sets the prefix to use for all statsd entries. [default: **vpncloud**] Please see *STATSD SUPPORT* for more info. *--daemon*:: Spawn a background process instead of running the process in the foreground. If this flag is set, the process will first carry out all the initialization, then drop permissions if *--user* or *--group* is used and then spawn a background process and write its process id to a file if *--pid-file* is set. Then, the main process will exit and the background process continues to provide the VPN. At the time, when the main process exits, the interface exists and is properly configured to be used. *--no-port-forwarding*:: Disable automatic port forward. If this option is not set, VpnCloud tries to detect a NAT router and automatically add a port forwarding to it. *--hook