I am using an ipsec based vpn configuration profile to connect a number of devices on my network to a remote strongswan based vpn server using certificate based authentication and connect on demand. Everything works well. However, my lan resources are not accessible when devices are connected to vpn.
I was wondering is there a way I can bypass local networks ips from being routed on the vpn tunnel when connected to vpn. So far i evaluated ondemandrules but looks like they are for triggering the vpn connection only. However, once device is connected to vpn, they cannot be used to bypass local ip addresses to be routed on vpn tunnel.
Any help is highly appreciated.