deployments-k8s icon indicating copy to clipboard operation
deployments-k8s copied to clipboard

Using PBR for configuring routes on the NSE itself

Open BenAgai opened this issue 2 years ago • 3 comments

Hey, I’m currently working on a project where I want to provide internet access through NSM. I have created the following topology: Screen Shot 2022-07-13 at 16 17 42

In the above figure let’s assume that the OVPN server assigns every OVPN client an IP from the following CIDR 10.20.30.0/24.

The expected traffic flow:

  1. Traffic goes from user to OVPN client
  2. To OVPN server
  3. To the VPP NSE (using PBR)
  4. Traffic goes from the VPP NSE to the internet with a NAT being performed at the NSE
  5. Traffic returns from the internet to the NSE
  6. Traffic goes from the NSE to the user through the OVPN server and OVPN client

Issue: In order to make traffic, coming back from the internet, to be forwarded to the VPP daemon on the NSE I need to add the following rule using VPPCTL: vppctl ip route add 10.20.30.0/24 via Where memif is the interface created in my NSE's VPP daemon when the OVPN server (running NSC) connected to my NSC.

My question: Is there a way I can use PBR, or similar mechanism, that will cause the VPP daemon to add the relevant route on my behalf?

Thanks in advance!

BenAgai avatar Jul 13 '22 13:07 BenAgai

/cc @glazychev-art , @edwarnicke

denis-tingaikin avatar Jul 22 '22 09:07 denis-tingaikin

Hi @BenAgai , There is currently no such functionality, but we can consider it.

@edwarnicke Do you have any thoughts?

glazychev-art avatar Jul 27 '22 12:07 glazychev-art

@edwarnicke Do you have any updates?

denis-tingaikin avatar Aug 03 '22 13:08 denis-tingaikin