HomeFreeBSD

pf tests: pfsync and route_to test case

Description

pf tests: pfsync and route_to test case

Test pfsync in a more realistic scenario with carp and route_to rules.

Build this topology and initiate a single ping session from client to
server:

		   ┌──────┐
		   │client│
		   └───┬──┘
		       │
		   ┌───┴───┐
		   │bridge0│
		   └┬─────┬┘
		    │     │
   ┌────────────────┴─┐ ┌─┴────────────────┐
   │gw_route_to_master├─┤gw_route_to_backup│
   └────────────────┬─┘ └─┬────────────────┘
		    │     │
		   ┌┴─────┴┐
		   │bridge1│
		   └┬─────┬┘
		    │     │
   ┌────────────────┴─┐ ┌─┴────────────────┐
   │gw_reply_to_master├─┤gw_reply_to_backup│
   └────────────────┬─┘ └─┬────────────────┘
		    │     │
		   ┌┴─────┴┐
		   │bridge2│
		   └───┬───┘
		       │
		   ┌───┴──┐
		   │server│
		   └──────┘

gw* jails forward traffic through pf route-to rules, not fib lookups.
If backup_promotion arg is given (as in the pfsync_pbr test case), a
carp failover event occurs during the ping session on both gateways.

Verify that ping messages still go where we expect them to go.

MFC after: 2 weeks
Sponsored by: Orange Business Services

(cherry picked from commit 536e1da18bae91c74561498b3f484b27a89e13d7)

Details

Provenance
Thomas Pasqualini <thomas.pasqualini@orange.com>Authored on Jun 4 2022, 10:43 AM
kpCommitted on Jun 18 2022, 7:30 AM
Parents
rGc5203f7d418d: pf: Improve route-to handling of pfsync'd states
Branches
Unknown
Tags
Unknown

Event Timeline

kp committed rGf40bb3b602ec: pf tests: pfsync and route_to test case (authored by Thomas Pasqualini <thomas.pasqualini@orange.com>).Jun 18 2022, 7:30 AM