One messy/alternative solution I thought of is having two OpenVPN servers configured on OPNsense, one configured each way.
route 0.0.0.0 192.0.0.0 net_gatewayroute 64.0.0.0 192.0.0.0 net_gatewayroute 128.0.0.0 192.0.0.0 net_gatewayroute 192.0.0.0 192.0.0.0 net_gateway
I have OpenVPN on OPNsense installed and working with the Redirect Gateway option enabled in the server so all traffic from my clients (iPhone & Mac) is routed via the VPN connection. This is what I want when I'm connected to public Wi-Fi services etc. However I have another use case when I just want specific traffic to route via the VPN and other "Internet" traffic not not do this.Is there any way to set this from the client side (I'm using the OpenVPN client on my iPhone & Viscosity on my Mac). I'm sure I could achieve this "manually" on Mac by manipulating the routing table but not on the iPhone?One messy/alternative solution I thought of is having two OpenVPN servers configured on OPNsense, one configured each way.