How to configure firewall rules to use OpenBSD as sys-net in Qubes 4.2

I am trying to set up an OpenBSD 7.4 to use as sys-net on Qubes 4.2 by following the instructions in
openBSD_as_netvm - unman / notes

ip route

ip route add default via 10.137.0.6

iptables -I FORWARD -i vif+ -o vif+ -j ACCEPT

iptables -t raw -I PREROUTING -i vif33.0 -j ACCEPT

iptables -t nat -I PR-QBS -p udp --dport 53 -j DNAT --to 9.9.9.9

And also
Integrate pfSense/OPNsense VM on QubesOS

I have already installed OpenBSD, added the network device and OpenBSD already has internet access. But in Qubes 4.2 with the change from iptables to nftables the instructions on how to configure the firewall have changed. I need help to set up sys-firewall to use OpenBSD as sys-net.

1 Like