summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorhagbard-01 <39653662+hagbard-01@users.noreply.github.com>2018-09-03 08:24:56 -0700
committerGitHub <noreply@github.com>2018-09-03 08:24:56 -0700
commitd31d16d38c191a8973d79302b108db7276aef7fd (patch)
treea4208622bfd8f49ec1c75cc07c0ae46fde13049a /interface-definitions
parentc49ec1392ba68a20af13c21f8a739d7b1dbc4906 (diff)
parentd6679e21bc58a37195b518e6b51bc7a50df1b947 (diff)
downloadvyos-1x-d31d16d38c191a8973d79302b108db7276aef7fd.tar.gz
vyos-1x-d31d16d38c191a8973d79302b108db7276aef7fd.zip
Merge pull request #49 from hagbard-01/current
T793: wireguard: implement fwmark, pre-shared key
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/wireguard.xml13
1 files changed, 11 insertions, 2 deletions
diff --git a/interface-definitions/wireguard.xml b/interface-definitions/wireguard.xml
index cf25124fa..5e9c41ace 100644
--- a/interface-definitions/wireguard.xml
+++ b/interface-definitions/wireguard.xml
@@ -88,16 +88,25 @@
<constraintErrorMessage>Key is not valid 44-character (32-bytes) base64</constraintErrorMessage>
</properties>
</leafNode>
+ <leafNode name="preshared-key">
+ <properties>
+ <help>base64 encoded preshared key</help>
+ <constraint>
+ <regex>^[0-9a-zA-Z\+/]{43}=$</regex>
+ </constraint>
+ <constraintErrorMessage>Key is not valid 44-character (32-bytes) base64</constraintErrorMessage>
+ </properties>
+ </leafNode>
<leafNode name="allowed-ips">
<properties>
<help>IP addresses allowed to traverse the peer</help>
<multi/>
</properties>
</leafNode>
- <!-- check format IP:port -->
+ <!-- eventually check format IP:port -->
<leafNode name="endpoint">
<properties>
- <help>Remote endpoint</help>
+ <help>Remote endpoint (IP:port)</help>
</properties>
</leafNode>
<leafNode name="persistent-keepalive">