maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] OpenConnect (-GUI) VPN client (https://talk.maemo.org/showthread.php?t=39800)

magnunor 2010-05-27 14:49

Re: [Announce] OpenConnect (-GUI) VPN client
 
Works perfectly with my university's SSLVPN. Good job :)

One little nitpick:
my university doesn't use DTLS, so Openconnect use SSL instead. However this creates a rather verbose error message which might confuse people.

dekirules 2010-06-02 14:37

Re: [Announce] OpenConnect (-GUI) VPN client
 
Quote:

Originally Posted by magnunor (Post 682979)
Works perfectly with my university's SSLVPN. Good job :)

One little nitpick:
my university doesn't use DTLS, so Openconnect use SSL instead. However this creates a rather verbose error message which might confuse people.

Thank you mate,

I was confused with error message that I got... I haven't even tried to check connectivity... Silly:) Thank you, it works fine...

lorelei 2010-06-02 14:44

Re: [Announce] OpenConnect (-GUI) VPN client
 
Yes, I will pass to openconnect the required option to not use DTLS, so that the ugly error message will disappear. Unfortunately I cannot proceed differently, since the problem is tied to the OpenSSL library, which is pre-compiled by Nokia...

tirtawn 2010-06-29 04:54

Re: [Announce] OpenConnect (-GUI) VPN client
 
Quote:

Originally Posted by lorelei (Post 682686)
Yes, I plan to upgrade OpenConnect in a few weeks, along with bug fixes in the GUI client.

Looking forward for this. is there any plan to include the group ID on the new release ?
Since currentyly i received a message
GROUP: [XXX|YYYY|ZZZ]: Invalid Inputs
Failed to obtain WebVPN cookir

XXX YYY ZZZ -> real group name

or anyone knows how to do this from command line ?

gjoe 2010-06-29 07:12

Re: [Announce] OpenConnect (-GUI) VPN client
 
Quote:

Originally Posted by tirtawn (Post 733527)
Looking forward for this. is there any plan to include the group ID on the new release ?
Since currentyly i received a message
GROUP: [XXX|YYYY|ZZZ]: Invalid Inputs
Failed to obtain WebVPN cookir

XXX YYY ZZZ -> real group name

or anyone knows how to do this from command line ?

i also face the same problem as my company require "group" for authentication.

any plan to support for group option in the next update?

xuggs 2010-06-29 07:49

Re: [Announce] OpenConnect (-GUI) VPN client
 
I wished someone would make a client like this for PPTP VPN.

tirtawn 2010-06-30 18:47

Re: [Announce] OpenConnect (-GUI) VPN client
 
Quote:

Originally Posted by gjoe (Post 733612)
i also face the same problem as my company require "group" for authentication.

any plan to support for group option in the next update?

Hmm I manage to find a workaround, a little bit manual though.

1. Install rootsh
2. go to terminal
3. sudo gainroot
4. openconnect <servername>
when using this command line interface, the group name is visible and i am able to connect by typing the group name, user id and password.

the problem is the DNS and the routing is not configured yet, so I need to add that manually by creating 2 scripts
1. company.sh --> for all the routing and dns
2. normal.sh -> back to use the default routing and dns

For now its sufficient since I am able to vpn to my company using this workaround.

gjoe 2010-07-28 08:24

Re: [Announce] OpenConnect (-GUI) VPN client
 
Quote:

Originally Posted by tirtawn (Post 735921)
Hmm I manage to find a workaround, a little bit manual though.

1. Install rootsh
2. go to terminal
3. sudo gainroot
4. openconnect <servername>
when using this command line interface, the group name is visible and i am able to connect by typing the group name, user id and password.

the problem is the DNS and the routing is not configured yet, so I need to add that manually by creating 2 scripts
1. company.sh --> for all the routing and dns
2. normal.sh -> back to use the default routing and dns

For now its sufficient since I am able to vpn to my company using this workaround.

thanks. by the way, can you share on how to create the scripts for DNS and routing?

tirtawn 2010-07-29 04:38

Re: [Announce] OpenConnect (-GUI) VPN client
 
Quote:

Originally Posted by gjoe (Post 767478)
thanks. by the way, can you share on how to create the scripts for DNS and routing?

Dont laugh. this is really a quick hack.


You will need to find all the IP Address that you need to access example: 10.80.3.3 , 10.80.3.1, 10.80.3.2, etc.

You will also need to know the DNS of your company (you can find it when you connecting using your windows/linux machine)


Example:
company.sh
-----------------------
cd /home/user/company
route add 10.80.3.3 dev tun0
route add 10.80.3.2 dev tun0
route add 10.80.3.1 dev tun0
cp ./resolv.conf.company /etc/resolv.conf


resolv.conf.company
---------------------------------
nameserver 10.80.3.1

resolv.conf.normal
--------------------------
nameserver 127.0.0.1


normal.sh
---------------
cd /home/user/company
route add default gw 192.168.2.1 ---> change this to your default gw
cp resolv.conf.normal /etc/resolv.conf


Once you are connected using the openconnect, (put openconnect on background),

then execute the company.sh

try microb -> you should be able to access the intranet (i will assume you have stored the ip address in the router table above)

when you are done, close your openconnect.

revert back your normal gateway and DNS.

Its a quick and dirty but it works.


I am sure there is a better way to do this. I am open for suggestion.

rahulstanley 2010-08-03 15:39

Re: [Announce] OpenConnect (-GUI) VPN client
 
Hey..I am just a beginner...So can anyone help me with setting this...I am using..Open connect GUI to set things up....It asks for a VPN server, username and password....Do I have to register somewhere for all these?? Would really appreciate the reply...thanks :)


All times are GMT. The time now is 16:58.

vBulletin® Version 3.8.8