From b752c8779712ec4e1c3b653081768361359c57f7 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Sat, 20 Aug 2022 16:26:55 +0000 Subject: nat66: T4631: Add port and protocol to nat66 Ability to configure src/dst/translation port and protocol for SNAT and DNAT IPv6 --- interface-definitions/include/nat/protocol.xml.i | 34 ++++++++++++++++++++++++ interface-definitions/nat66.xml.in | 8 ++++++ 2 files changed, 42 insertions(+) create mode 100644 interface-definitions/include/nat/protocol.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/nat/protocol.xml.i b/interface-definitions/include/nat/protocol.xml.i new file mode 100644 index 000000000..54e7ff00d --- /dev/null +++ b/interface-definitions/include/nat/protocol.xml.i @@ -0,0 +1,34 @@ + + + + Protocol to match (protocol name, number, or "all") + + + all tcp_udp + + + all + All IP protocols + + + tcp_udp + Both TCP and UDP + + + u32:0-255 + IP protocol number + + + <protocol> + IP protocol name + + + !<protocol> + IP protocol name + + + + + + + diff --git a/interface-definitions/nat66.xml.in b/interface-definitions/nat66.xml.in index bde1a6f8d..dab4543e0 100644 --- a/interface-definitions/nat66.xml.in +++ b/interface-definitions/nat66.xml.in @@ -50,6 +50,7 @@ + #include IPv6 destination prefix options @@ -72,6 +73,7 @@ + #include @@ -96,6 +98,7 @@ + #include @@ -128,6 +131,7 @@ + #include @@ -179,6 +183,7 @@ + #include IPv6 destination prefix options @@ -211,6 +216,7 @@ + #include @@ -245,6 +251,7 @@ + #include @@ -269,6 +276,7 @@ + #include -- cgit v1.2.3