For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Configure source-based routing

Caution

This feature is obsolete and replaced by VPPABF CR but may still be used to debug interfaces not managed by FPP.

FPP allows source-based routing with the use of the VPP ACL-based forwarding (ABF) feature. The enablement requires creating a matching access-control list (ACL) for the incoming traffic and a dedicated policy to apply to it. The VPPConfig and RoutingTable CRs used in this guide are created on the Core Cluster.

ACL creation

VPP uses acl-plugin to manage ACLs. Each ACL consists of a pattern for traffic matching and a rule to perform on it. For the ABF feature, ACLs with the apply action permit are required. A dedicated command to create an ACL using VPP CLI should be placed in the afterCommands section of the VPPConfig CR. The VPP CLI command:

bash

As an example, an ACL that matches input traffic from network 10.0.0.0/24 looks as follows:

bash

CLI returns ACL index:<X> where X is a positive integer index of the ACL created. This index will be used to create the ABF policy.

Policy-based routing activation

To use an existing ACL that matches certain traffic and to make a routing decision, run the following:

bash

As an example, ABF Policy with index 0 uses ACL with index 0 and performs lookup in table 100 for IPv4 traffic:

bash

The table ID must match the corresponding RoutingTable spec. Example:

yaml

Attach the policy to the input interface through the CLI command:

bash

An example of an attachment policy with index 0 to interface named net-1:

bash

Several ABF policies can be attached to a single input interface.

VPPConfig example

ABF policies creation and attachment must be added in the afterCommands section:

yaml

The routingTables: [100] is equivalent to ip table add 100, which adds an empty routing table 100 before afterCommands are executed.