From 13f99beada6ac28ede7c74d434b84a63bf9905b0 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 19 Feb 2025 15:19:09 +0000 Subject: T7181: VPP add initial source NAT implentation Add initial source NAT implementation ``` set vpp nat44 source inbound-interface 'eth2' set vpp nat44 source outbound-interface 'eth1' set vpp nat44 source translation address '192.0.2.1-192.0.2.2' ``` Add initial simple implementation of the source NAT In the future, we'll extend it to the rules if it is possible to do via VPP API --- interface-definitions/vpp.xml.in | 65 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) (limited to 'interface-definitions') diff --git a/interface-definitions/vpp.xml.in b/interface-definitions/vpp.xml.in index 1f1cb44cc..175b28a0b 100644 --- a/interface-definitions/vpp.xml.in +++ b/interface-definitions/vpp.xml.in @@ -833,6 +833,71 @@ + + + NAT44 + + + + + Source NAT setting + 320 + + + + + Inbound interface of NAT traffic + + any + + + + + + + Outbound interface of NAT traffic + + any + + + + + + + Outside NAT IP (source NAT only) + + + + + IP address, subnet, or range + + masquerade + + + ipv4 + IPv4 address to match + + + ipv4range + IPv4 address range to match + + + masquerade + NAT to the primary address of outbound-interface + + + + + (masquerade) + + + + + + + + + VPP kernel interface settings -- cgit v1.2.3