Controlled Inter-VRF Connectivity
Route leaking is deliberate connectivity
Route leaking makes selected reachability from one VRF available in another. It can support a shared service without merging all tenant routes. A route is only a forwarding possibility; it does not authorize an application request. Design the allowed flows first, then import only the necessary prefixes and use an explicit security policy at the crossing. Avoid importing broad defaults or entire tenant tables merely for convenience.
A shared-service policy
For this separate paper scenario, A uses 192.0.2.0/24 and B uses 198.51.100.0/24; these are non-overlapping documentation ranges. Services uses 203.0.113.0/24. A receives a route to the service host through a firewall; Services has a return route to A through that same firewall. B receives no service route. The firewall permits A to initiate HTTPS to the host and permits the associated established replies. SSH and other new flows are denied. A route to B is not imported. The matrix is an intended policy, not firewall syntax.
A -> Services, 203.0.113.10, TCP/443: allowB -> Services, 203.0.113.10, TCP/443: denyA -> Services, 203.0.113.10, TCP/22: denyA -> B: denyOther new flows: denyReturn traffic: established permitted sessions onlyOverlapping tenants and return paths
If A and B instead both use 192.0.2.0/24, an ordinary shared routing table cannot identify the intended tenant from a return destination alone. Use distinct service contexts, an application proxy aware of tenant identity, or explicitly designed address translation with separate mappings. Each adds operational constraints. Simply importing both identical prefixes cannot establish correct bidirectional isolation. Document how replies return, how sessions are identified and how logs preserve tenant identity.
Route distinguishers and route targets
In BGP/MPLS VPNs, a route distinguisher (RD) makes otherwise identical IPv4 prefixes distinct in the VPN address family. Route targets (RTs) are policy attributes used to determine which VPN routes are eligible for import. An RD is not an access-control rule; an RT match is not a packet firewall. FRRouting 10.2 documents VRF route import/export mechanisms, but the exact behavior depends on configuration and implementation. This lesson uses conceptual policy, not executable configuration. For example, an exported route tagged with RT 65000:10 is eligible under an import target 65000:10, but not under 65000:20 alone. Other import policy may still reject it.
Validate both allowed and denied flows
For A HTTPS, require forward route, reachable next hop, return route, permitted firewall session and healthy service. Removing the return route breaks the modeled session even if the request arrives. For B HTTPS, confirm the absence of a route and the independent denial policy. Verify management access separately in a management VRF with approved administrator sources; shared services must not gain access to device administration. Never treat successful ping as proof of application authorization.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Controlled Inter-VRF Connectivity Quiz
Apply VRF concepts to fictional offline scenarios.
What is the purpose of selective route leaking?
A can reach the shared service, but its return route is absent. What is the expected modeled result?
In the stated policy, which new flow is allowed?
Which BGP/MPLS VPN attribute makes identical IPv4 prefixes distinct in the VPN address family?
A and B have identical address space and use one ordinary shared return table. What is missing?