diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-03-14 18:07:39 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2023-03-14 18:24:02 +0000 |
commit | 80bdd7f93430769ea5cda32d1925dfcd43df5107 (patch) | |
tree | 195655cf7176f3fc512094564afdbcd7851ed06e /interface-definitions/include | |
parent | 16c494c2f1364283988b52e35faf6b01745bbed4 (diff) | |
download | vyos-1x-80bdd7f93430769ea5cda32d1925dfcd43df5107.tar.gz vyos-1x-80bdd7f93430769ea5cda32d1925dfcd43df5107.zip |
T5055: NAT: extend packet-type match option which was previously introduced in firewall, to NAT
Diffstat (limited to 'interface-definitions/include')
-rw-r--r-- | interface-definitions/include/nat-rule.xml.i | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/interface-definitions/include/nat-rule.xml.i b/interface-definitions/include/nat-rule.xml.i index 8f2029388..7b3b8804e 100644 --- a/interface-definitions/include/nat-rule.xml.i +++ b/interface-definitions/include/nat-rule.xml.i @@ -31,6 +31,33 @@ <valueless/> </properties> </leafNode> + <leafNode name="packet-type"> + <properties> + <help>Packet type</help> + <completionHelp> + <list>broadcast host multicast other</list> + </completionHelp> + <valueHelp> + <format>broadcast</format> + <description>Match broadcast packet type</description> + </valueHelp> + <valueHelp> + <format>host</format> + <description>Match host packet type, addressed to local host</description> + </valueHelp> + <valueHelp> + <format>multicast</format> + <description>Match multicast packet type</description> + </valueHelp> + <valueHelp> + <format>other</format> + <description>Match packet addressed to another host</description> + </valueHelp> + <constraint> + <regex>(broadcast|host|multicast|other)</regex> + </constraint> + </properties> + </leafNode> <leafNode name="protocol"> <properties> <help>Protocol to NAT</help> |