Port forwarding to allow external connections (`qvm-portfwd-iptables`)

This script didn’t work for me on Qubes 4.2-rc5. It errors with:

$ qvm-portfwd-iptables.sh --action create --qube myDestQube --port 22066
myDestQube: Allowing input to port 22066
/bin/bash: line 1: iptables-save: command not found
/bin/bash: line 1: iptables-restore: command not found
/bin/bash: line 1: iptables: command not found
/bin/bash: line 1: ifconfig: command not found
sys-firewall: Forwarding on port 22066 to myDestQube (10.138.11.174 → 10.137.0.17)
/bin/bash: line 1: iptables-restore: command not found
/bin/bash: line 1: iptables-save: command not found
/bin/bash: line 1: iptables: command not found
/bin/bash: line 1: iptables: command not found
Error: syntax error, unexpected accept
add rule ip qubes-firewall forward meta iifname accept
^^^^^^
/bin/bash: line 1: ifconfig: command not found
sys-net: Forwarding on port 22066 to sys-firewall (10.137.0.5 → 10.138.11.174)
/bin/bash: line 1: iptables-save: command not found
/bin/bash: line 1: iptables-restore: command not found
/bin/bash: line 1: iptables: command not found
/bin/bash: line 1: iptables: command not found
Error: syntax error, unexpected accept
add rule ip qubes-firewall forward meta iifname accept

I used this much more simple/elegant solution instead.