mirror of
https://github.com/lgcosta/pf-linux-port.git
synced 2026-11-12 20:28:06 -03:00
- compat layer extended through the full BSD API surface pf_ioctl/pf_lb/ pf_if/pf_norm/pf_table/pf_ruleset/radix/md5/sha2 need (all compile): cpumem/counters model, ifaddr/ifg groups, cred view, endian+in6 names, NAT46/64, SipHash24, mbuf_list, frag6 helpers, ip6 forward/checksum, tcp options/FSM names, taskqueue & sysctl shims (documented in docs/porting-notes.md) - pfsrc/divert_sock.c: real BSD divert(4) as runtime-registered PF_DIVERT=32 socket family inside the module (sock_register; NPROTO=AF_MAX=45 -> zero core patches); divert_packet/divert6_packet wired for pf.c - compat/pfk_ifq.c: OpenBSD 8.0 ifq framework with priq back end; hfsc and fq_codel aliases pending M5 (recorded in feature matrix as pending) - design + plan updated for the divert decision (user-requested) - stage-port.sh: single deterministic rename program for headers and .c
16 lines
509 B
Cheetah
16 lines
509 B
Cheetah
# cloud-init network config v2 — pftest-srv. mgmt dhcp gives DNS only;
|
|
# default via pf0 (SRV_GW); 10.0.3.0/24 pinned via gw2 so the srv->gw2
|
|
# path is exercised through gw forwarding instead of pf0's own link.
|
|
version: 2
|
|
ethernets:
|
|
mgmt:
|
|
match: {macaddress: "@SRV_MAC_MGMT@"}
|
|
dhcp4: true
|
|
dhcp4-overrides: {use-routes: false}
|
|
wan:
|
|
match: {macaddress: "@SRV_MAC_WAN@"}
|
|
addresses: [@SRV@]
|
|
routes:
|
|
- {to: 0.0.0.0/0, via: @SRV_GW@}
|
|
- {to: 10.0.3.0/24, via: @GW2_WAN_IP@}
|