diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-11 18:58:44 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-10-11 18:58:44 +0200 |
commit | 1acc499f5e50a4e9b2c4738b29f41b2c3274bc78 (patch) | |
tree | fdfd901b6dd040baed87ebd19832597e128ad481 /interface-definitions/nat.xml.in | |
parent | 281533f59e9aa3acb255894a58eaae35f0960d70 (diff) | |
download | vyos-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.in | 6 |
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> |