-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.toml
More file actions
22 lines (19 loc) · 911 Bytes
/
Copy pathclient.toml
File metadata and controls
22 lines (19 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Client menu — install as ~/.config/wgpeer/client.toml
# A menu of servers and the interfaces each one exposes.
default_server = "home"
[[server]]
name = "home"
ssh = "anton@vpn.example" # ssh target (or an alias from ~/.ssh/config)
sudo = true # prefix the remote command with sudo
ifaces = ["wg0", "wg1"] # available interfaces; the first is the default
# A host that needs a non-default ssh config and a wgpeer not on the login PATH.
# ssh_command overrides the bare `ssh` (given as an array — no shell splitting):
# the target and remote command are appended to it. wgpeer_path is the server-side
# binary. Both are optional; unset ⇒ `ssh <target> … wgpeer …`.
# [[server]]
# name = "work"
# ssh = "work-vpn"
# ssh_command = ["ssh", "-F", "/home/me/.ssh/work_config"]
# wgpeer_path = "/usr/local/bin/wgpeer"
# sudo = true
# ifaces = ["wg0"]