![]() |
[HowTo] automatic vpn for wifi connections
Since some of you might be interested in this.. here's a little HowTo
In order to automatically connect to a VPN when you connect your N9(50) to a wifi network you need to... 1.) install VPN9C (graphical frontend for vpnc on meego harmattan) you can get it form the store. (note that with vpnc you can only connect to VPN using IPSec) 2.) create a config file for vpnc (contains all the necesary credentials) create a .conf file and store it somewhere It should look somehting like this Quote:
choose your desired wifi network as a condition for the rule to connect to VPN use this command Quote:
Quote:
have fun! |
Re: automatic vpn for certain wifi connections
you can use Profilematic for that.
|
Re: automatic vpn for certain wifi connections
do you know how to start a VPN connection with VPN9C via terminal?
|
Re: automatic vpn for certain wifi connections
Quote:
If so, you could integrate that to Profilemantic via bash scrips. But I doubt VPN9C does. Although I never used it, so I am most likely wrong :). |
Re: automatic vpn for certain wifi connections
there is an executable in /opt/vpn9c/bin but it doesnt take arguments and there are 2 scripts vpnc.sh and vpnc-script but i don't know how to feed them parameters
|
Re: automatic vpn for certain wifi connections
ok, i managed to feed vpnc the parameters (host, password, group secret,...) but it tells me that the operation is not permitted
Quote:
Quote:
|
Re: automatic vpn for certain wifi connections
devel-su ?
|
Re: automatic vpn for certain wifi connections
same thing
|
Re: automatic vpn for certain wifi connections
ok i figured it out (it's atcually quite simple)
vpnc.sh < path_to_config_file thank you guys |
Re: [HowTo] automatic vpn for wifi connections
Quote:
Code:
sh -c "/opt/vpn9c/bin/vpnc.sh < /path/to/your/conf/file" |
All times are GMT. The time now is 19:56. |
vBulletin® Version 3.8.8