View Single Post
Posts: 1,313 | Thanked: 2,978 times | Joined on Jun 2011 @ Finland
#10
Originally Posted by mcbook View Post
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
Good otherwise, but ProfileMatic doesn't run the command in shell at the moment. So the redirection "<" will not work unless you run it in shell like this in ProfileMatic's custom action

Code:
sh -c "/opt/vpn9c/bin/vpnc.sh < /path/to/your/conf/file"
__________________
My N9/N950 projects:
 

The Following User Says Thank You to ajalkane For This Useful Post: