summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
Diffstat (limited to 'interface-definitions')
-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>