3.) install Profilematic and create a new rule choose your desired wifi network as a condition for the rule to connect to VPN use this command Code: /opt/vpn9c/bin/vpnc.sh < /path/to/your/conf/file
/opt/vpn9c/bin/vpnc.sh < /path/to/your/conf/file
sh -c "/opt/vpn9c/bin/vpnc.sh < /path/to/your/conf/file"