-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
client.cfg
83 lines (73 loc) · 2.11 KB
/
client.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#
# This is the end-point to which the client will connect.
#
# This is a mandatory configuration-setting.
#
# NOTE: That you MUST use TLS to ensure your traffic is secure, and that
# means that the websocket URI will have an "wss://" prefix.
#
vpn = wss://vpn.example.com/vpn
#
# This is the shared-secret, this key must match the one specified upon
# the server-host.
#
# If the client-key does not match the server key then the connection will
# be terminated and not accepted.
#
# Ideally this key will be long and complex.
#
key = Iequa[oogho5reiNgoo7ci4ruho~r#%fdsflj30-1l;alj1.>SDF£LK!
##
## Optional settings now follow
##
##
## Every time a client connects to the server it sends a name, which the server
## may choose to use to assign a static IP address.
##
## If you have multiple hosts with identical names you can send an explicit
## alternative here. (For example if you have "www.example.com" and
## "www.example.net" both hosts might be named "www".)
#
# name = frodo
#
##
## When the client connects to the VPN server it will launch a series
## of commands to configure IP, route, and gateway.
##
## If you wish you may configure a command to execute after that. This
## "up" command will receive details of the link via environmental
## variables:
##
## $DEVICE - e.g. tun0.
## $CLIENT_IP - e.g. 10.0.0.2.
## $SERVER_IP - e.g. 10.0.0.1.
## $SUBNET - e.g. 10.0.0.0/24.
## $MTU - e.g. 1280.
##
#
# up = /etc/simple-vpn/blah.sh
#
##
## When a new client joins the VPN, or an existing connection is
## terminated, then the server will send a refresh-message to each
## of the connected peers.
##
## The update contains the name & IPs of each client which is currently
## connected.
##
## If you wish to react to changes you can define a `peers` command
## here which will receive the list of connected names/IPs as a JSON
## object on STDIN
##
## Sample input might look like this:
##
## [ {"Name":"vpn-server","IP":"10.137.248.1"},
## {"Name":"www.vpn","IP":"10.137.248.2"},
## {"Name":"alert.vpn","IP":"10.137.248.3"} ]
##
##
#
# Here we just dump them to the console.
#
# peers = /bin/cat
#