diff options
author | Igor Melnyk <igor_melnyk@ukr.net> | 2021-06-26 10:48:54 +0300 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2021-08-05 17:13:36 -0500 |
commit | 14011bee699372746b3770c877570937319d0cbb (patch) | |
tree | 7a7c94e832e9593f1ad8ad99067213530b46a3d0 /interface-definitions/nat.xml.in | |
parent | d9d183b6cbcba70050dc6ab5dc57db34dcfa0960 (diff) | |
download | vyos-1x-14011bee699372746b3770c877570937319d0cbb.tar.gz vyos-1x-14011bee699372746b3770c877570937319d0cbb.zip |
nat: T1083: add translation options for persistent/random mapping of address and port
Tested using:
set destination rule 100 inbound-interface 'eth0'
set destination rule 100 translation address '19.13.23.42'
set destination rule 100 translation options address-mapping 'random'
set destination rule 100 translation options port-mapping 'none'
set source rule 1000 outbound-interface 'eth0'
set source rule 1000 translation address '122.233.231.12'
set source rule 1000 translation options address-mapping 'persistent'
set source rule 1000 translation options port-mapping 'fully-random'
Diffstat (limited to 'interface-definitions/nat.xml.in')
-rw-r--r-- | interface-definitions/nat.xml.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/interface-definitions/nat.xml.in b/interface-definitions/nat.xml.in index 6ed52fd29..0d6093347 100644 --- a/interface-definitions/nat.xml.in +++ b/interface-definitions/nat.xml.in @@ -50,6 +50,7 @@ </properties> </leafNode> #include <include/nat-translation-port.xml.i> + #include <include/nat-translation-options.xml.i> </children> </node> </children> @@ -168,6 +169,7 @@ </properties> </leafNode> #include <include/nat-translation-port.xml.i> + #include <include/nat-translation-options.xml.i> </children> </node> </children> |