I have succeeded in configuring my openwrt router (model GL.iNet GL-AR300M (NOR)) so that
I can enable/disable VPN (OpenVPN CLient) to my home network
guests can logon using 2.4G Guest Wifi (which is using a different subnet 192.168.9.0/24 compared to connecting to the standard 2.4G Wifi (subnet = 192.168.8.0/24))
The problem is that
when I enable VPN that also all guests are also using this VPN. This is something I do not want. My guests should not be able to use this VPN connection.
I would like to be able to configure my router also when connected to the guest network (= 192.168.9.0/24 - my router IP is 192.168.8.1). Currently I cannot access my router admin dashboard (= http://192.168.8.1) when connected to the guest network.
I am also wondering if I can configure my router so that only traffic for 192.168.2.0/24 is routed via my home VPN (in other words all other traffic is not routed via VPN).
It appears you are using firmware that is not from the official OpenWrt project.
When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.
Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).
If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.
Thanks a lot for the responses.
I see that my router can indeed be upgraded with latest openwrt version.
At this point I am not tempted to do this as I would loose the Gl-iNet UI.
It is apparently also possible to configure some VPN polices using the Gl-iNet UI.