The guide is for Qubes OS 4.1 so it’s using iptables firewall.
In Qubes OS 4.2 the iptables firewall was replaced with nftables firewall.
To use this guide in Qubes OS 4.2 you need to replace the firewall rules from iptables to nftables in /rw/config/vpn/qubes-vpn-handler.sh and /rw/config/qubes-firewall-user-script files.
You can use the files from this post: