File: interfaces-wireguard.scd

package info (click to toggle)
ifupdown-ng 0.12.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 964 kB
  • sloc: ansic: 3,572; sh: 980; makefile: 233
file content (60 lines) | stat: -rw-r--r-- 1,481 bytes parent folder | download | duplicates (3)
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
interfaces-wireguard(5)

# NAME

*interfaces-wireguard* - Wireguard extensions for the interfaces(5) file format

# DESCRIPTION

Wireguard is a comtemporary in-Kernel layer 3 VPN protocol implementation
which aims to provide fast and secure tunnels. The following options
allow to set up Wireguard VPN tunnels.

# WIREGUARD-RELATED OPTIONS

*wireguard-config-path* _path_
	Denotes the absolute _path_ to the Wireguard configuration file.
	If no path is given, _/etc/wireguard/<interface>.conf_ will be
	used. In the latter case _use wireguard_ has to be explicitly
	set to the interface configuration.

	Be aware that the given configuration file will be loaded using
	*wg setconf* and not with *wg-quick*.  The file format for both
	tools isn't compatible so you have to make sure you provide a
	valid configuration file for the *wg* tool.  If you already have
	a configuration file for *wg-quick* you can set up the tunnel
	manually once and then dump the configuration using *wg showconf*
	and save this to _path_.


# EXAMPLES

A Wireguard VPN tunnel with explicit configuration file specified

```
auto wg-foo
iface wg-foo
	wireguard-config-path /etc/wireguard/foo.conf
	#
	address 192.0.2.23/42
	address 2001:db8::23/64
```

A Wireguard VPN tunnel with implicit configuration file:

```
auto wg-bar
iface wg-bar
	use wireguard
	#
	address 192.0.2.23/42
	address 2001:db8::23/64
```

# SEE ALSO

*interfaces-wireguard-quick*(5)

# AUTHORS

Maximilian Wilhelm <max@sdn.clinic>