]> Cypherpunks.ru repositories - govpn.git/blob - doc/client.texi
5b0ae2b7fda2723894f76a765641ae736c656f95
[govpn.git] / doc / client.texi
1 @node Client
2 @section Client part
3
4 Except for common @ref{Stats, -stats}, @ref{EGD, -egd} options client
5 has the following ones:
6
7 @table @option
8
9 @item -mtu
10 Expected TAP interface @ref{MTU}.
11
12 @item -proto
13 @ref{Network, Network protocol} to use. Can be either @emph{udp}
14 (default) or @emph{tcp}.
15
16 @item -proxy
17 Use specified @emph{host:port} @ref{Proxy} server for accessing remote
18 server.
19
20 @item -proxy-auth
21 Optional @emph{user:password} for HTTP Basic authorization on proxy
22 server.
23
24 @item -remote
25 Address (@code{host:port} format) of remote server we need to connect to.
26
27 @item -iface
28 TAP interface name.
29
30 @item -verifier
31 Our client's @ref{Verifier}.
32
33 @item -key
34 Path to the file with the passphrase. If omitted, then you will be asked
35 to enter it in the terminal.
36
37 @item -timeout
38 @ref{Timeout} setting in seconds.
39
40 @item -timesync
41 Optional @ref{Timesync, time synchronization} requirement. If set to
42 zero, then no synchronization required.
43
44 @item -noise
45 Enable @ref{Noise}.
46
47 @item -cpr
48 Set @ref{CPR} in KiB/sec.
49
50 @item -encless
51 Enable @ref{Encless, encryptionless mode}.
52
53 @item -up
54 Optional path to script that will be executed after connection is
55 established. Interface name will be given to it as a first argument.
56
57 @item -down
58 Same as @option{-up} above, but it is executed when connection is lost,
59 when we exit.
60
61 @end table
62
63 Example up-script that calls DHCP client and IPv6 advertisement
64 solicitation:
65
66 @verbatim
67 client% cat > up.sh <<EOF
68 #!/bin/sh
69 dhclient $1
70 rtsol $1
71 EOF
72 client% chmod +x up.sh
73 @end verbatim