]> Cypherpunks.ru repositories - govpn.git/blob - doc/client.texi
[DOC] User manual refactoring
[govpn.git] / doc / client.texi
1 @node Client part
2 @section Client part
3
4 Except for common @code{-mtu}, @code{-noncediff}, @code{-timeout},
5 @code{-stats} options client has the following ones:
6
7 @table @code
8 @item -remote
9 Address (@code{host:port} format) of remote server we need to connect to.
10 @item -iface
11 TAP interface name.
12 @item -id
13 Our client's identification (hexadecimal string).
14 @item -key
15 Path to the file with the PSK key.
16 @item -up
17 Optional path to script that will be executed after connection is
18 established. Interface name will be given to it as a first argument.
19 @item -down
20 Same as @code{-up} above, but it is executed when connection is lost,
21 when we exit.
22 @end table
23
24 Example up-script that calls DHCP client and IPv6 advertisement
25 solicitation:
26
27 @example
28 client% cat > up.sh <<EOF
29 #!/bin/sh
30 dhclient $1
31 rtsol $1
32 EOF
33 client% chmod +x up.sh
34 @end example