diff options
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/nat.xml.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/interface-definitions/nat.xml.in b/interface-definitions/nat.xml.in index bcbdb37af..af9dd1eff 100644 --- a/interface-definitions/nat.xml.in +++ b/interface-definitions/nat.xml.in @@ -95,7 +95,12 @@ <format>masquerade</format> <description>NAT to the primary address of outbound-interface</description> </valueHelp> - <!-- TODO: add general iptables constraint script --> + <constraint> + <validator name="ipv4-prefix"/> + <validator name="ipv4-address"/> + <validator name="ipv4-range"/> + <regex>(masquerade)</regex> + </constraint> </properties> </leafNode> #include <include/nat-translation-port.xml.i> |