Forums.Ivacy.com
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Help    Search    Login    Register  
*
News : We are up and running, welcome aboard! September 09, 2010, 04:28:20 PM
+  Forums.Ivacy.com
|-+  Ivacy
| |-+  User Support
| | |-+  Autologin/Autoconnect with OpenVPN
Advanced search
  « previous next »
Pages 1 2 3
Author
Topic: Autologin/Autoconnect with OpenVPN  (Read 14240 times)
« on: April 30, 2009, 01:35:03 PM »
Sandbox
Newbie
*
Posts: 19

View Profile
Karma: 0

Hi all

I just finished build my own Version of OpenVPN 2.1 RC 15 with --enable-password-save.

Someone interest in that Build can download it from here:
http://www.megaupload.com/?d=400N9DT6
(MD5-Hash:988ECEA77BD558C41DBB0525C5E5AE09)

Edit/ ChangeLog: 05.05.09
-change OpenSSL 0.9.8i to latest 0.9.8k (including important bug fixes)
-change lzo 2.02 to 2.03

Edit/ 12.12.09
New Built: OpenVPN 2.1.1 Final --enable-password-save
http://www.megaupload.com/?d=XZYS7QWI
(MD5-Hash:54CF2ABB597E5079E25BEB95BF08D518)
-include lzo 2.03
-include latest OpenSSL 0.9.8l

For auto-login you have to modify your .ovpn file in the config folder in that way:
Code:
auth-user-pass C:/PROGRA~1/openvpn/config/password.txt
XP(US) or
Code:
auth-user-pass C:/Programme/openvpn/config/password.txt
XP(DE)
then create a simple text file with your user name and password in two lines name it password.txt
and save it in your config folder.

If you want  auto-connect on startup  create a shortcut from OpenVPN-GUI and put it in your startup-folder,
rightclick on the shortcut --> properties --> target and add :
Code:
--connect [name of your ovpn file].ovpn

in the end of the entry. -
 
There are localized versions of Ovpn-Gui (French, German, Italian, Norwegian, Spanish and Swedish)
http://openvpn.se/download.html
« Last Edit: December 13, 2009, 12:51:43 AM by Sandbox » Logged
 
Reply #1
« on: April 30, 2009, 06:24:12 PM »
sewe
Newbie
*
Posts: 23

View Profile
Karma: 0


For auto-login you have to modify your .ovpn file in the config folder in that way:
Code:
auth-user-pass C:/PROGRA~1/openvpn/config/password.txt
then create a simple text file with your user name and password in two lines name it password.txt
and save it in your config folder.
.

Doesn´t work for me, says "can´t read password from file"
Logged
 
Reply #2
« on: April 30, 2009, 08:42:52 PM »
Sandbox
Newbie
*
Posts: 19

View Profile
Karma: 0


For auto-login you have to modify your .ovpn file in the config folder in that way:
Code:
auth-user-pass C:/PROGRA~1/openvpn/config/password.txt
then create a simple text file with your user name and password in two lines name it password.txt
and save it in your config folder.
.

Doesn´t work for me, says "can´t read password from file"

Hi sewe,
thx for testing my file. It shoud work. I test it on 3 different machines with Win XP.
Check if there is no mistake in your path, of couse you shoud modify the path in that way it match with your machine. First i test it with the german edition of XP, set the path in that way:
Code:
C:/Programme/openvpn/config/password.txt
works .
Later in my english edition of XP set the path in that way make a mistake, not works get the same error  you post above.
Code:
C:/Program Files/openvpn/config/password.txt
after corect it  that way:
Code:
C:/PROGRA~1/openvpn/config/password.txt
succeeds. The Textfile i create with notepad put my username in the first line and my password in the second line and save it as txt in the same folder with *.ovpn


« Last Edit: April 30, 2009, 08:49:51 PM by Sandbox » Logged
 
Reply #3
« on: April 30, 2009, 08:51:47 PM »
sewe
Newbie
*
Posts: 23

View Profile
Karma: 0


For auto-login you have to modify your .ovpn file in the config folder in that way:
Code:
auth-user-pass C:/PROGRA~1/openvpn/config/password.txt
then create a simple text file with your user name and password in two lines name it password.txt
and save it in your config folder.
.

Doesn´t work for me, says "can´t read password from file"

Hi sewe,
thx for testing my file. It shoud work. I test it on 3 different machines with Win XP.
Check if there is no mistake in your path, of couse you shoud modify the path in that way it match with your machine. First i test it with the german edition of XP, set the path in that way:
Code:
C:/Programme/openvpn/config/password.txt
works .
Later in my english edition of XP set the path in that way make a mistake, not works get the same error  you post above.
Code:
C:/Program Files/openvpn/config/password.txt
after corect it  that way:
Code:
C:/PROGRA~1/openvpn/config/password.txt
succeeds. The Textfile i create with notepad put my username in the first line and my password in the second line and save it as txt in the same folder with *.ovpn




Won´t work with C:/PROGRA~1/openvpn/config/password.txt either
Logged
 
Reply #4
« on: April 30, 2009, 09:05:28 PM »
keptang
Jr. Member
**
Posts: 53

View Profile
Karma: 0

Thanks, it worked perfect!
Logged
 
Reply #5
« on: April 30, 2009, 09:08:56 PM »
Sandbox
Newbie
*
Posts: 19

View Profile
Karma: 0

fine. thx for confirm it works for you too. just woud ask if anyone can give me a feedback whether it works for him or not.
« Last Edit: May 05, 2009, 03:36:51 PM by Sandbox » Logged
 
Reply #6
« on: April 30, 2009, 09:13:48 PM »
sewe
Newbie
*
Posts: 23

View Profile
Karma: 0

fine. thx for confirm it works for you to. just woud ask if anyone can give me a feedback wether it works for him or not.

It works now, my misstake, didn´t uninstall the previous one, I just install yours ontop
Thanks!!
Logged
 
Reply #7
« on: April 30, 2009, 09:38:32 PM »
sewe
Newbie
*
Posts: 23

View Profile
Karma: 0

I have a question, if connection goes down will ovpn client try to reconnect?
Logged
 
Reply #8
« on: April 30, 2009, 09:55:47 PM »
Sandbox
Newbie
*
Posts: 19

View Profile
Karma: 0

Yes, OpenVPN do a reconnect!
Code:
Wed May 06  05:00:56 2009 [openvpn.ivacy.com] Inactivity timeout (--ping-restart), restarting
Here you see the 24h reconnect of my ISP.
Wed May 06  05:00:56 2009 TCP/UDP: Closing socket
Wed May 06  05:00:56 2009 SIGUSR1[soft,ping-restart] received, process restarting
Wed May 06  05:00:56 2009 Restart pause, 2 second(s)
Wed May 06  05:01:01 2009 [openvpn.ivacy.com] Peer Connection Initiated with xx.xxx.xxx.27:1194
Wed May 06  05:01:02 2009 SENT CONTROL [openvpn.ivacy.com]: 'PUSH_REQUEST' (status=1)
Wed May 06  05:01:13 2009 Route addition via IPAPI succeeded [adaptive]
Wed May 06 05:01:13 2009 Initialization Sequence Completed.

The Problem you have are only a few seconds, this is the time-window your real IP is seen, because no tunnel is open.
If you want to be anonymously all  time, you should try VPNetMon. (not tested by myself and close Source)
http://de.geocities.com/felix.schendel22/
Maybye you have a look at the Tool. Please tell us if it do a good job.



« Last Edit: May 06, 2009, 06:54:40 AM by Sandbox » Logged
 
Reply #9
« on: May 09, 2009, 05:12:23 PM »
gibler
Newbie
*
Posts: 8

View Profile
Karma: 0

Works great thank you!!!!
Logged
 
Reply #10
« on: September 27, 2009, 07:40:05 PM »
odimenokyo
Newbie
*
Posts: 2

View Profile
Karma: 0

Hi Sandbox,

Sometime a little thing can change everything, very good work !!!

Many thanks

I have 3 questions :

Do you think to build a new version with the last official release openvpn-2.1_rc19 ?
Is it complicate to do this ?  (I'm an IT administrator not a developper)
Did you try to talk with the official developper about to add this function in official release, maybe with an ecrypted file ?

Thanks again, in French "Chapeau bas"

PS : Run in Windows 7 64bit and connected in roadwarrior mode to an Endian firewall. (no more disconnected or waiting a username and password)
Logged
 
Reply #11
« on: October 03, 2009, 07:00:38 PM »
Sandbox
Newbie
*
Posts: 19

View Profile
Karma: 0

Hi odimenokyo,
thx for your feedback, nice to hear all works fine for your comfort.

- Yes, just try to compile 2.1_rc19, but got several errors, don't know yet how to fix them.
  For me its not really urgent to update to the latest version, because there are no important changes.
  (my latest build contains the latest OpenSSL 0.9.8k and the new
  lzo 2.03)
 

- Not realy, but it takes some time to prepare the develope environment, and looking around on several sites for helpful hints^^ (I'm not really a developper too)
  I set up a fresh Windows XP(US) on Microsofts Virtual PC.
  Have to install MinGW/MSYS and Nullsoft Install System.
  Need ovpn gen pre-build and the source files of the latest release.
  If you need further informations let me know, plz.

-The official developper don't build it with --enable-password-save because of security related issues.
  For me its not important have a separate login for ovpn, because i use ovpn only on my private home-computer and the hard-disk is full encrypted.



« Last Edit: October 03, 2009, 07:02:21 PM by Sandbox » Logged
 
Reply #12
« on: October 15, 2009, 12:26:00 PM »
coxoq
Newbie
*
Posts: 3

View Profile
Karma: 0

@Sandbox

Tested with openvpn-2.1_rc15-install.exe auto login working great but don't work with openvpn-2.0.9-gui-1.0.3-install.exe or openvpn-2.1_rc20-install.exe from OpenVPN site.

Waiting for coming new build from you, thanks Sandbox.
Logged

.
 
Reply #13
« on: October 20, 2009, 11:29:09 AM »
coxoq
Newbie
*
Posts: 3

View Profile
Karma: 0

As moved around in google I found openVPN2.1 rc19 that can auto login OpenVPN as supply by Sandbox, follow instruction above.

Download:
Code:
http://rapidshare.com/files/295395526/openVPN2.1_rc19-save-install.zip
Logged

.
 
Reply #14
« on: October 23, 2009, 02:21:52 PM »
Metodios
Newbie
*
Posts: 2

View Profile
Karma: 0


For auto-login you have to modify your .ovpn file in the config folder in that way:
Code:
auth-user-pass C:/PROGRA~1/openvpn/config/password.txt
then create a simple text file with your user name and password in two lines name it password.txt
and save it in your config folder.
.

Doesn´t work for me, says "can´t read password from file"

Hi sewe,
thx for testing my file. It shoud work. I test it on 3 different machines with Win XP.
Check if there is no mistake in your path, of couse you shoud modify the path in that way it match with your machine. First i test it with the german edition of XP, set the path in that way:
Code:
C:/Programme/openvpn/config/password.txt
works .
Later in my english edition of XP set the path in that way make a mistake, not works get the same error  you post above.
Code:
C:/Program Files/openvpn/config/password.txt
after corect it  that way:
Code:
C:/PROGRA~1/openvpn/config/password.txt
succeeds. The Textfile i create with notepad put my username in the first line and my password in the second line and save it as txt in the same folder with *.ovpn







It still doesn't work for me.I get the error message saying that it can't find the path specified.
Logged
 
Print  Pages 1 2 3
« previous next »
Jump to: