From 528248af9628c3170b4eac399f0bb339072d8eae Mon Sep 17 00:00:00 2001 From: "Nataliia S." <81954790+natali-rs1985@users.noreply.github.com> Date: Thu, 1 May 2025 20:15:32 +0300 Subject: T7390: VPP CGNAT implementation (#30) CLI: ``` set vpp nat cgnat interface outside # multi set vpp nat cgnat interface inside # multi set vpp nat cgnat rule outside-prefix set vpp nat cgnat rule inside-prefix set vpp nat cgnat timeout udp # default 300 set vpp nat cgnat timeout tcp-established # default 7440 set vpp nat cgnat timeout tcp-transitory # default 240 set vpp nat cgnat timeout icmp # default 60 ``` OP mode: ``` show vpp nat cgnat interfaces show vpp nat cgnat mappings show vpp nat cgnat sessions clear vpp cgnat inside-address
port external-address
port ``` --- interface-definitions/vpp.xml.in | 127 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 125 insertions(+), 2 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/vpp.xml.in b/interface-definitions/vpp.xml.in index b1ae348da..368405a02 100644 --- a/interface-definitions/vpp.xml.in +++ b/interface-definitions/vpp.xml.in @@ -833,10 +833,10 @@ UDP timeout u32 - Timeout in seconds (default: 60) + Timeout in seconds (default: 300) - 60 + 300 @@ -934,6 +934,129 @@ + + + Network Address Translation (NAT) settings + + + + + Carrier-grade NAT (CGNAT) + 321 + + + + + CGNAT interface setting + + + + + CGNAT inside interface + + + + + + + + + CGNAT outside interface + + + + + + + + + + + Rule number for CGNAT + + u32 + Number of rule + + + + + + Inside IPv4 prefix + + ipv4net + IPv4 prefix + + + + + + + + + Outside IPv4 prefix + + ipv4net + IPv4 prefix + + + + + + + #include + + + + + Timeouts for CGNAT sessions + + + + + ICMP timeout + + u32 + Timeout in seconds (default: 60) + + + 60 + + + + TCP established timeout + + u32 + TCP established timeout in seconds (default: 7440) + + + 7440 + + + + TCP transitory timeout + + u32 + Timeout in seconds (default: 240) + + + 240 + + + + UDP timeout + + u32 + Timeout in seconds (default: 300) + + + 300 + + + + + + + NAT44 -- cgit v1.2.3