[PATCH 1/2] network: bridge_driver: add BSD implementation

2025-04-26 Thread Roman Bogorodskiy
Add BSD-specific platform flavor of the bridge driver which will be used as a base for Packet Filter (pf) based NAT networking implementation. Signed-off-by: Roman Bogorodskiy --- po/POTFILES | 1 + src/network/bridge_driver_bsd.c | 101 +++

[PATCH 2/2] network: introduce Packet Filter firewall backend

2025-04-26 Thread Roman Bogorodskiy
Implement NAT networking support based on the Packet Filter (pf) firewall in FreeBSD. At this point, the implementation is very basic. It creates: - Essential NAT translation rules - Basic forwarding rules Implementation uses pf's anchor feature to group rules. All rules live in the "libvirt" a

[PATCH 0/2] network: support NAT networking for FreeBSD/pf

2025-04-26 Thread Roman Bogorodskiy
This series implements NAT networks support for FreeBSD using the Packet Filter (pf) firewall. The commit messages provide high-level details and limitations of the current implementation, and I'll use this cover letter to provide some more technical details and describe testing I have performed f