Whonix firewall for pf firewall of BSD

Whonix firewall to block internet on VPN disconnetion was written for iptables but BSD has pf firewall? Can anyone help to configure pf to make it provide the same effect as whonix firewall for iptables does?