summaryrefslogtreecommitdiff
path: root/interface-definitions/nat.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-11 18:58:44 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-11 18:58:44 +0200
commit1acc499f5e50a4e9b2c4738b29f41b2c3274bc78 (patch)
treefdfd901b6dd040baed87ebd19832597e128ad481 /interface-definitions/nat.xml.in
parent281533f59e9aa3acb255894a58eaae35f0960d70 (diff)
downloadvyos-1x-1acc499f5e50a4e9b2c4738b29f41b2c3274bc78.tar.gz
vyos-1x-1acc499f5e50a4e9b2c4738b29f41b2c3274bc78.zip
nat: T2198: use proper validators for dnat translation address
Diffstat (limited to 'interface-definitions/nat.xml.in')
-rw-r--r--interface-definitions/nat.xml.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/interface-definitions/nat.xml.in b/interface-definitions/nat.xml.in
index 8a14f4d25..00aaddb17 100644
--- a/interface-definitions/nat.xml.in
+++ b/interface-definitions/nat.xml.in
@@ -42,7 +42,11 @@
<format>ipv4range</format>
<description>IPv4 address range to match</description>
</valueHelp>
- <!-- TODO: add general iptables constraint script -->
+ <constraint>
+ <validator name="ipv4-prefix"/>
+ <validator name="ipv4-address"/>
+ <validator name="ipv4-range"/>
+ </constraint>
</properties>
</leafNode>
#include <include/nat-translation-port.xml.i>