diff options
author | hagbard-01 <39653662+hagbard-01@users.noreply.github.com> | 2018-09-03 08:24:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-03 08:24:56 -0700 |
commit | d31d16d38c191a8973d79302b108db7276aef7fd (patch) | |
tree | a4208622bfd8f49ec1c75cc07c0ae46fde13049a /interface-definitions | |
parent | c49ec1392ba68a20af13c21f8a739d7b1dbc4906 (diff) | |
parent | d6679e21bc58a37195b518e6b51bc7a50df1b947 (diff) | |
download | vyos-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.xml | 13 |
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"> |