summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-02-09 14:51:46 -0800
committerDaniil Baturin <daniil@baturin.org>2019-02-28 14:57:44 +0100
commit74fde01050df870c5a15181afad00ed88957420a (patch)
tree6d37edc44e2bb6da4d26dd2fecf5e707eb86c3aa /interface-definitions
parente95f526a6e517e68346dcf65eb27399190971f76 (diff)
downloadvyos-1x-74fde01050df870c5a15181afad00ed88957420a.tar.gz
vyos-1x-74fde01050df870c5a15181afad00ed88957420a.zip
fixes T1238 - Wireguard allows invalid IP's
Conflicts: debian/changelog
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/wireguard.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/interface-definitions/wireguard.xml b/interface-definitions/wireguard.xml
index 8bfffac9d..2534f1e9c 100644
--- a/interface-definitions/wireguard.xml
+++ b/interface-definitions/wireguard.xml
@@ -19,8 +19,11 @@
<leafNode name="address">
<properties>
<help>IP address</help>
+ <constraint>
+ <validator name="ip-host"/>
+ </constraint>
<valueHelp>
- <format>ipv4net</format>
+ <format>ipv4-address</format>
<description>IPv4 address and prefix length</description>
</valueHelp>
<valueHelp>
@@ -103,6 +106,9 @@
<leafNode name="allowed-ips">
<properties>
<help>IP addresses allowed to traverse the peer</help>
+ <constraint>
+ <validator name="ip-host"/>
+ </constraint>
<multi/>
</properties>
</leafNode>