Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OpenVPN Client:32 and 64-bit: Your Private and Secure Path to the Internet

Featured Replies

Hi Peter,

 

Thanks for your response. the changes didnt work but ive found another change i want to make but im not sure where to make it!

 

what script is run when the VPN is enabled through the gui? I want to make sure that the --auth-nocache switch isn't being used when the connection is being established.

 

The problem seems to be when the connection is renegotiated with the server and cant seem to read the username and password from memory (stdin)

 

as detailed here:

http://comments.gmane.org/gmane.network.openvpn.user/27842

 

EDIT: found where the startfile is constructed in the plg so ive taken out the -auth-nocache switch to see if this fixes my problem... will report back later

  • Replies 546
  • Views 164.7k
  • Created
  • Last Reply
  • Author

Good, One thing I shall look into is why the openvpn don't work after wake up from sleep......

 

Tried openvpn_client_ver_2.1.4.pig on reboot I get:

 

Warning: file(/tmp/openvpn/openvpn.out): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/openvpn/openvpn.php on line 12 Warning: implode(): Argument must be an array in /usr/local/emhttp/plugins/openvpn/openvpn.php on line 13

 

Here is my ca.vyprvpn.com.ovpn:

 

client

dev tun

proto udp

remote us2.vpn.giganews.com 443

resolv-retry infinite

nobind

persist-key

persist-tun

persist-remote-ip

ca ca.vyprvpn.com.crt

tls-remote us2.vpn.giganews.com

auth-user-pass /tmp/openvpn/password.txt

comp-lzo

verb 3

auth XXXXXX

cipher XXX-XXX-XXX

keysize 256

tls-cipher XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

 

I am also losing vpn connection. If you need anything else let me know.

 

Great work on the plug-in and thanks!

 

Reed

 

New version after reboot:

 

Warning: file_get_contents(/tmp/openvpn/openvpn.out): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/openvpn/openvpn.php on line 10

 

Starts manually. I will run and see it holds onto vpn. Thanks for  all your hard work.

 

Reed

 

 

I can confirm that The change I made fixes the issue with the VPN dropping on renegotiation. Now just to put in the switches to use google dns and I'm a happy bunny!

5 hours plus no drop out. Looking good!

 

Reed

  • Author

New version after reboot:

 

Warning: file_get_contents(/tmp/openvpn/openvpn.out): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/openvpn/openvpn.php on line 10

 

Starts manually. I will run and see it holds onto vpn. Thanks for  all your hard work.

 

Reed

This is fixed in next version

 

//Peter

  • Author

I can confirm that The change I made fixes the issue with the VPN dropping on renegotiation. Now just to put in the switches to use google dns and I'm a happy bunny!

 

What fixes are you using/change ?

 

//Peter

FYI I got an error with 2.1.6 regarding the first 'curl' package file download being a 404. I edited the top of the plg file to match the current version (curl-7.26.0-i486-2.txz) in the slackware repo, along w/ the updated md5.

 

 
<FILE Name="/boot/packages/curl-7.26.0-i486-2.txz" Run="upgradepkg --install-new">
<URL>http://slackware.cs.utah.edu/pub/slackware/slackware-current/slackware/n/curl-7.26.0-i486-2.txz</URL>
<MD5>10e1abb7cbaf2bfd695108df37ce66eb</MD5>
</FILE>

 

>EDIT< By the way, after this modification, the package installed perfect, and I was able to establish my OpenVPN connection from the GUI. Very NICE! Thanks a bunch!

  • Author

FYI I got an error with 2.1.6 regarding the first 'curl' package file download being a 404. I edited the top of the plg file to match the current version (curl-7.26.0-i486-2.txz) in the slackware repo, along w/ the updated md5.

 

 
<FILE Name="/boot/packages/curl-7.26.0-i486-2.txz" Run="upgradepkg --install-new">
<URL>http://slackware.cs.utah.edu/pub/slackware/slackware-current/slackware/n/curl-7.26.0-i486-2.txz</URL>
<MD5>10e1abb7cbaf2bfd695108df37ce66eb</MD5>
</FILE>

 

>EDIT< By the way, after this modification, the package installed perfect, and I was able to establish my OpenVPN connection from the GUI. Very NICE! Thanks a bunch!

 

Fixed in next version

 

//Peter

I can confirm that The change I made fixes the issue with the VPN dropping on renegotiation. Now just to put in the switches to use google dns and I'm a happy bunny!

 

What fixes are you using/change ?

 

//Peter

 

Hi Peter, i removed the --auth-nocache switch from the startfile construct. I see youve made the change in your later versions. not sure if that was due to me or if you took it out to fix something else :)

all working 100% for me now. very happy. thanks for taking the time to put together the package.

 

Mark

  • Author

 

 

 
<FILE Name="/boot/packages/curl-7.26.0-i486-2.txz" Run="upgradepkg --install-new">
<URL>http://slackware.cs.utah.edu/pub/slackware/slackware-current/slackware/n/curl-7.26.0-i486-2.txz</URL>
<MD5>10e1abb7cbaf2bfd695108df37ce66eb</MD5>
</FILE>

 

Fixed in next version

//Peter

That version what not 100% compatible with UnRaid OS

 

 

New version soon......

 

//Peter

  • Author

 

 

Hi Peter, i removed the --auth-nocache switch from the startfile construct. I see youve made the change in your later versions. not sure if that was due to me or if you took it out to fix something else :)

all working 100% for me now. very happy. thanks for taking the time to put together the package.

 

Mark

 

It was you  ;)

Thanks for making this plug-in!  It seems to be working just fine.

@Peter_sm

 

loaded version 2.1.7 all A okay! thanks

 

Reed

  • 2 weeks later...

I tried to set it up on my unraid, but i doesn't work very well.

Probably i made some mistakes...

 

I use perfect-privacy.com, so i have these files for one server: .opvn, .cacrt, .clientcrt, .takey, .p12, .clientkey

 

Everytime i want to connect there's the message: "An error accured, probably there is some issue with your acount!!!, Try to login in again !!"

 

Do you have any idea?

 

log_openvpn.txt

  • Author

please post your ovpn file, it's looks like you have some issue with your certificate ?

 

//Peter

 

 

  • 1 month later...

Firstly, I am so excited to find this plugin, great stuff!  I am seeing a similar error as mentioned above with Private Internet Access VPN, specifically:

 

Options error: You must define TUN/TAP device (--dev)
Use --help for more information.

 

My .ovpn script looks like this:

 

client
dev tun
proto udp
remote us-california.privateinternetaccess.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
tls-client
remote-cert-tls server
auth-user-pass
comp-lzo
verb 1
reneg-sec 0

 

Any ideas?  Thanks so much!!

Got a little further by renaming my .ovpn file to remove a space. 

 

Now I'm seeing:

Fri Sep  7 11:21:18 2012 us=68835 OPTIONS IMPORT: timers and/or timeouts modified
Fri Sep  7 11:21:18 2012 us=68845 OPTIONS IMPORT: --ifconfig/up options modified
Fri Sep  7 11:21:18 2012 us=68850 OPTIONS IMPORT: route options modified
Fri Sep  7 11:21:18 2012 us=68854 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Fri Sep  7 11:21:18 2012 us=68974 ROUTE default_gateway=192.168.0.2
Fri Sep  7 11:21:18 2012 us=69184 TUN/TAP device tun0 opened
Fri Sep  7 11:21:18 2012 us=69198 TUN/TAP TX queue length set to 100
Fri Sep  7 11:21:18 2012 us=69227 /usr/sbin/ip link set dev tun0 up mtu 1500
Fri Sep  7 11:21:18 2012 us=70389 /usr/sbin/ip addr add dev tun0 local 10.193.81.14 peer 10.193.81.13
Fri Sep  7 11:21:18 2012 us=71104 /usr/sbin/ip route add 50.XXX.XXX.XXX/32 via 192.168.0.2
RTNETLINK answers: File exists
Fri Sep  7 11:21:18 2012 us=71722 ERROR: Linux route add command failed: external program exited with error status: 2
Fri Sep  7 11:21:18 2012 us=71747 /usr/sbin/ip route add 0.0.0.0/1 via 10.193.81.13
Fri Sep  7 11:21:18 2012 us=72285 /usr/sbin/ip route add 128.0.0.0/1 via 10.193.81.13
Fri Sep  7 11:21:18 2012 us=72825 /usr/sbin/ip route add 10.193.81.1/32 via 10.193.81.13
Fri Sep  7 11:21:18 2012 us=73279 Initialization Sequence Completed
WrWrWrWrWrWrWrWrWrWrWrWrWRrWrW

 

I then get the "something wrong with your account" message.  Any ideas?

 

EDIT:

 

I tried another VPN Provider (IPVanish) and everything is working as expected.  I found a security setting I didn't like in the original provider, so I guess this kills 2 birds.  Cheers, and thanks for the rad plugin!

 

 

Matt

 

#Turn on OpenVpn Daily at 11 pm
echo "/etc/rc.d/rc.openvpn start" | at 23:00

#Turn Off OpenVpn Daily at 7 am
echo "/etc/rc.d/rc.openvpn disable" | at 07:00

 

 

Funny, the lines above are EXACTLY how I want this to work (run from 11pm-7am only).

 

Question: If I add this to my "go" script, will it run every day from 11-7, or only the first day after a reboot? I currently don't have any "echo <cmd> | at <time>" lines in my go script, and I can't tell if it's a daily thing or a one-time thing.

 

Also, if I want to add this to crontab, is that something I should add to my go script? I understand that crontab changes tend to revert after reboots.

 

-Rick

 

#Turn on OpenVpn Daily at 11 pm
echo "/etc/rc.d/rc.openvpn start" | at 23:00

#Turn Off OpenVpn Daily at 7 am
echo "/etc/rc.d/rc.openvpn disable" | at 07:00

 

 

Funny, the lines above are EXACTLY how I want this to work (run from 11pm-7am only).

 

Question: If I add this to my "go" script, will it run every day from 11-7, or only the first day after a reboot? I currently don't have any "echo <cmd> | at <time>" lines in my go script, and I can't tell if it's a daily thing or a one-time thing.

 

Also, if I want to add this to crontab, is that something I should add to my go script? I understand that crontab changes tend to revert after reboots.

 

-Rick

 

I have stopped using that method and started using crontab with code below in my go script its all you will need. You can adjust the times to fit your needs.

You can also check to see if its working by telent into unraid at the command prompt and type crontab -l

 

 

#Start openvpn at 11 pm every day

crontab -l > /tmp/file; echo '#Start openvpn at 11 pm every day' >> /tmp/file; echo '00 23 * * * /etc/rc.d/rc.openvpn  start >/dev/null 2>&1' >>/tmp/file; crontab /tmp/file; rm /tmp/file

 

#Stop openvpn at 7 am every day

crontab -l > /tmp/file; echo '#Stop openvpn at 7 am every day' >> /tmp/file; echo '00 7 * * * /etc/rc.d/rc.openvpn  disable >/dev/null 2>&1' >>/tmp/file; crontab /tmp/file; rm /tmp/file

 

 

 

  • Author

New BETA plg with OpenVPN 2.3_beta1

 

//Peter

Is this what you use to connect to a 3rd party VPN? Like VyprVNP, StrongVPN etc.? And all traffic through SABnzbd will be routed through the VPN then?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.