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 06, 2010, 10:01:05 AM
+  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 14037 times)
Reply #15
« on: October 23, 2009, 05:34:38 PM »
coxoq
Newbie
*
Posts: 3

View Profile
Karma: 0

@Metodios

You may try as below :-

auth-user-pass password.txt

Make sure both file in same folder config

It's work for me.

Hope this help.
Logged

.
 
Reply #16
« on: October 24, 2009, 03:18:58 PM »
Metodios
Newbie
*
Posts: 2

View Profile
Karma: 0

It doesn't work,and I tried everything.

Thank you for your help.

P.S. I get an error saying it can't open the file because of invalid filename,directory name or volume label syntax.
« Last Edit: October 24, 2009, 03:32:57 PM by Metodios » Logged
 
Reply #17
« on: November 09, 2009, 10:39:50 PM »
Sandbox
Newbie
*
Posts: 19

View Profile
Karma: 0

New Built is out: OpenVPN 2.1 RC 20 --enable-password-save
Download see my 1st post above.
« Last Edit: November 10, 2009, 07:26:15 PM by Sandbox » Logged
 
Reply #18
« on: November 10, 2009, 11:14:33 AM »
RedFive
Newbie
*
Posts: 4

View Profile
Karma: 0

Thank you! Works great.  Cool
Logged
 
Reply #19
« on: November 13, 2009, 11:38:23 AM »
gibler
Newbie
*
Posts: 8

View Profile
Karma: 0

really nice thanksjavascript:void(0);
Logged
 
Reply #20
« on: November 20, 2009, 02:15:19 PM »
odimenokyo
Newbie
*
Posts: 2

View Profile
Karma: 0

Hi,

Sorry for my very late reply...

Thanks for your answer, and I understand, I think to use for strong security an personal certificate for each client...

Nothing to tell, it's perfect for me

Thanks Sandbox
Logged
 
Reply #21
« on: November 27, 2009, 01:00:20 PM »
karlos
Newbie
*
Posts: 1

View Profile
Karma: 0

Hi,

I'm running on an US Win7 x64, so I need RC20 or 21.
Tried the C:/PROGRA~1/openvpn/config/password.txt thing but didn't work...
OpenVpn actually installed itself in C:\Program Files (x86)\OpenVPN, 'cause it runs as 32bits
 
Using the full path to the password.txt yelds
"Options warning: Bad backslash ('\') usage in client.ovpn:33: remember that backslashes are treated as shell-escapes and if you need to pass backslash characters as part of a Windows filename, you should use double backslashes such as "c:\\openvpn\\static.key"
Use --help for more information.
"

Tried then making \\ instead of \

but still could not get it to work
 
Any Idea??

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/ 09.11.09
New Built: OpenVPN 2.1 RC 20 --enable-password-save
http://www.megaupload.com/?d=N0ED3QU1
(MD5-Hash:7895BE8FE4A4AF6DD684313A0CE2933E)
-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

Logged
 
Reply #22
« on: November 28, 2009, 04:04:20 AM »
janrain
Newbie
*
Posts: 1

View Profile
Karma: 0

hi sandbox,

OpenVPN 2.1 RC 20 is worked like a charm, but if my internet connection has reconnect, the vpn won't reconnect, so my connection is idle waiting the VPN connection up, so what should i add in my *.ovpn command line to reconnect the VPN if my internet connection restarted? it won't connect with my recent ovpn configuration, please help how to reconnect if my internet connection has restarted.

thank you,
best wishes,
janrain.
Logged
 
Reply #23
« on: November 29, 2009, 06:38:09 PM »
Sandbox
Newbie
*
Posts: 19

View Profile
Karma: 0

@karlos
sry, no idea, with  Windows 7. With XP CopyPath help me out to find the correct "short path"
Test it:
Download pathc400.zip and unzip it to a temporary folder. Right click PATHCOPY.INF and choose install. Now there is a new entry in the shell.
Go to  password.txt right click: Copy Path/Setup. Mark Copy Short Path. Now you can choise from Copy Path: Copy short path, and paste it into your config file.
Download:http://www.megaupload.com/?d=SXQRFZ0E

@janrain 
I just perform a disconnect and OpenVPN did reconnect by himself.
i use OpenVPN-GUI 1.0.3  on Startup -->Properties Target:
Code:
"C:\Program Files\OpenVPN\bin\openvpn-gui-1.0.3.exe" --connect ivacy-client.ovpn

my ivacy-client.ovpn looks like this:
Code:
client
dev tun
proto udp
remote 85.249.223.29 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ivacy-keys/ivacy-ca.crt
cert ivacy-keys/ivacy-client.crt
key ivacy-keys/ivacy-client.key
tls-auth ivacy-keys/ivacy-tls.key 1
ns-cert-type server
comp-lzo
verb 3
auth-user-pass C:/PROGRA~1/openvpn/config/password.txt
redirect-gateway def1
script-security 3
reneg-sec 0

don't use:
Code:
auth-nocache
then it shoud do a proper reconnect



Sandbox



« Last Edit: November 29, 2009, 07:13:13 PM by Sandbox » Logged
 
Reply #24
« on: December 06, 2009, 09:05:05 PM »
Sandbox
Newbie
*
Posts: 19

View Profile
Karma: 0

Edit/ 12.12.09

New Built: OpenVPN 2.1.1 Final  --enable-password-save
Download see my 1st post above.
« Last Edit: December 13, 2009, 12:53:42 AM by Sandbox » Logged
 
Reply #25
« on: February 12, 2010, 03:33:28 AM »
vizzer
Newbie
*
Posts: 4

View Profile
Karma: 0

A rather new program is VPNCheck!

That works to 100%

When starting it up it connects to your VPN + starts your Torrentprogram,
when the VPN stops, more than 1 sec. it will close the program

And when the VPN works again, it will start it up again:
http://vpncheck.jothodesign.com/



 
Logged

//vizzer
 
Reply #26
« on: March 23, 2010, 03:06:25 PM »
flyhigh
Newbie
*
Posts: 1

View Profile
Karma: 0

i use your installer and modified my config as necessary the problem is when it's reconnecting, it's asking for username and password again, can someone answer to this problem i'm having. thanx.
Logged
 
Reply #27
« on: August 03, 2010, 08:10:21 PM »
Saint
Newbie
*
Posts: 1

View Profile
Karma: 0

I would like to thank you for making this available. It helps me lot. I do have a slight problem. Seems there is a limit of 50 for number of configs? Any idea how to bypass this? Reason is I subscribe to 3 vpn services so plenty of different servers to choose from. Wink

Thanks
Logged
 
Reply #28
« on: August 13, 2010, 01:27:55 PM »
v5lvWl1P
Newbie
*
Posts: 1

View Profile
Karma: 0

Thank you for this nice modification!

Could you also post the source code so that we can see what you changed?  Smiley
Logged
 
Reply #29
« on: August 20, 2010, 06:21:04 PM »
Zero3K
Newbie
*
Posts: 2

View Profile
Karma: 0

OpenVPN is now at V2.1.2. It would be nice if someone were to compile it with the enable-password-save option.
Logged
 
Print  Pages 1 2 3
« previous next »
Jump to: