summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-02-09 14:51:46 -0800
committerhagbard <vyosdev@derith.de>2019-02-09 14:51:46 -0800
commit0b7f819f82cff78f2e65a37806fa7132fb4dfeaa (patch)
treee504e899521c646384725a9515614bde4b1a2032 /interface-definitions
parentf0084de554d71d0f011c7fd2c6009f1864bd9d77 (diff)
downloadvyos-1x-0b7f819f82cff78f2e65a37806fa7132fb4dfeaa.tar.gz
vyos-1x-0b7f819f82cff78f2e65a37806fa7132fb4dfeaa.zip
fixes T1238 - Wireguard allows invalid IP's
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 7dd1ec044..d7c3bc447 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>
@@ -109,6 +112,9 @@
<leafNode name="allowed-ips">
<properties>
<help>IP addresses allowed to traverse the peer</help>
+ <constraint>
+ <validator name="ip-host"/>
+ </constraint>
<multi/>
</properties>
</leafNode>