CLI script VPN works but doesn’t autostart

HI! I followed this guide: Configuring a ProxyVM VPN Gateway

and used the modified scripts for nft rules. Everything seems to work perfectly if I manually start it with a command. But on reboot of the qube it doesn’t work.

Using the command sudo journalctl -u /rw/config/vpn/qubes-vpn-handler.sh results in this at the bottom. “WARNING: Failed running the command (—up/—down): could not execute external program”

I copied and pasted from the guide as I followed it. The only difference Is I copied the modified script for nft rules from a linked user post instead of using iptables.

I have tried looking for similar posts in the forum but could not understand the answers I think I found. Any help or guidance is much appreciated, thanks!

Check that the script /rw/config/vpn/qubes-vpn-handler.sh is in the same directory as your openvpn config /rw/config/vpn/openvpn-client.ovpn.
Make sure that the script is executable:

sudo chmod +x /rw/config/vpn/qubes-vpn-handler.sh

If you use a Fedora template, then it could be a problem with SELinux, but I’m not sure about this.