-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCOMMANDS
30 lines (21 loc) · 858 Bytes
/
COMMANDS
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
Please read README in the main folder and check subfolder "examples" for some example scripts.
List of all available variables and commands:
---------------------------------------------
Matching:
- IF_CONNECTION=()
-> match connection name
-> example: IF_CONNECTION=("Home")
- IF_DEVICE=()
-> match connection device
-> example: IF_DEVICE=("eth1", "~tun")
Actions:
- DO_CONNECTION=()
-> connect to this (or one of these) connection name
-> example: DO_CONNECTION=("VPN1 Office" "VPN Office2")
- SSH_SERVER=()
-> start a ssh tunnel with this host (incl. params)
-> example: SSH_SERVER=("my.server.com" "my.2nd.server.com -l root -p 33333")
Commands:
- up(), down(), pre_up(), pre_down()
-> pre_up() and pre_down() run just before running DO_CONNECTION, SSH_SERVER etc
-> up() and down() run after everything at the end