peter_sm Posted September 26, 2014 Share Posted September 26, 2014 (edited) I have updated the OpenVPN Server & Client plugins for the V6.2+ plugin manager. Post all issue you have in this thread !! To install. Install the plugins, go to the 'Extensions' page and enter the below links into the 'Install Extension' line and then click the 'Install' button. Client https://raw.githubusercontent.com/petersm1/openvpn_client_x64/master/openvpn_client_x64.plg Unpack your provider certificate/files to /boot/openvpn (create that folder if it's not exist) , can now be several ovpn files. More info about Client installation : http://lime-technology.com/forum/index.php?topic=19439.0 Server https://raw.githubusercontent.com/petersm1/openvpnserver/master/openvpn_server_x64.plg Post installation for OpenVPN server. 1: Change and save settings in Cert and Misc Settings. 2: Install Easy-rsa. 3:Generate server certificate ... This take several minutes ..... 4: Set and save Server config even if you use default settings you need to save. 5:Generate clients. 6: start server . 7: When you created the client file, prefered a "inline file" (inline file is only one *.ovpn) on the server then you can email the config (with file extension .ovpn) as an attachment from an email account on your computer (or a webmail) to the email address setup on IOS in the Mail app. In the mail app open the email and open the .ovpn file, then choose to open it with OpenVPN. If you did it right, OpenVPN opens and you can click a + icon next to your config to import it. Now you can simply slide Off to On and your VPN connects. Make sure the OpenVPN server will be accessible from the internet. That means: you need to open the server ports on the router and forward this ports to the fixed LAN IP of the unRAID More info : http://lime-technology.com/forum/index.php?topic=28557.0 If you appreciate my work on my plugins. //Peter Edited September 27, 2017 by peter_sm 2 2 Quote Link to comment
jonp Posted September 26, 2014 Share Posted September 26, 2014 Peter, You are awesome as normal. Looking forward to testing this out tonight with beta 10!! Quote Link to comment
rd_blair Posted September 27, 2014 Share Posted September 27, 2014 Nice work client installed without a hitch. I have some questions is this what I should be seeing: default via 192.168.1.1 dev xenbr0 metric 1 10.15.0.0/16 dev tun5 proto kernel scope link src 10.15.4.27 127.0.0.0/8 dev lo scope link 128.0.0.0/1 via 10.15.0.1 dev tun5 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.42.1 192.168.1.0/24 dev xenbr0 proto kernel scope link src 192.168.1.110 216.168.3.151 via 192.168.1.1 dev xenbr0 (192.168.1.110 unraid 192.168.1.1 router) Should my KVM windows instance see the Vpn address? <interface type='network'> <mac address='52:54:00:45:05:d2'/> <source network='xenbr0'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> Reed Quote Link to comment
limetech Posted September 27, 2014 Share Posted September 27, 2014 peter_sm- yes, very nice! One plg file to rule them all! Now put your icons inline using the "base64" attribute. For example, for Device_status.png... Change: <FILE Name="/boot/config/plugins/openvpnserver/device_status.png"> <URL>--no-check-certificate http://lime-technology.com/wiki/images/9/97/Device_status.png</URL> </FILE> To: <FILE Name="/usr/local/emhttp/plugins/openvpnserver/device_status.png" Type="base64"> <INLINE> iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFJSURB VDiNtZI9awJBEIafVctUSv6KvUUCEpPiDhsFsT2CVcSt5OqzlWBvKzb5QDCCvX8lYL2zsm4alTtR MYRM987OPLzzssp7z1+qcKo5m81u8/n8s1KqDuC9nzjnXqvV6vdVAOecds69pFoxcAN0TwKm0+kS WG+326Rer69EpA2glLrbOfgC2kB3MpmUc7mcBophGFZyACKiRYTNZqN3uiQiBEGwCIJgISKISAnA WquNMYiIPjhoNBorINzbMsZkbKZ1s9kM028FgNFo9AE8AJ9RFNVEJANI6+PZAkAURbVzC8f6eLYA MBgMyt57DRS11pVLgCRJlsBaKZX0er3VIURrLcaYfYiZpbQ2xmhrbTbEfr+fCeaSgziOM4Grf/nK nU7nJHU4HKqrACIy997fp3tKqfmp2bMntFqtN+BxJ9/H4/HTrwDX1g/Ee8aNyc3z/wAAAABJRU5E rkJggg== </INLINE> </FILE> You can use the 'base64' command to convert a binary to base64. For example, what I did was download your Device_status.png file to my current directory and then typed: base64 Device_status.png This will spew out the block you see above. Next I used mouse to select it and paste into this post. There are also online base64 encoders that will do the job as well. Notice also, the icon is created directly in /usr/local/emhttp/plugins/openvpnserver/ - no need to save it on the flash separately (because it will always be regenerated when the plugin gets installed at boot-time). Once this is done, no more dependency on the unRaid wiki. Finally, I don't think it matters too much, but this is the mirror we use to fetch slack packages: http://slackware.cs.utah.edu/pub/slackware/slackware64-current/slackware64/ Quote Link to comment
bkastner Posted September 27, 2014 Share Posted September 27, 2014 Peter, You are awesome as normal. Looking forward to testing this out tonight with beta 10!! Are you hinting that we will be seeing this soon, or just trying to make us jealous? Quote Link to comment
jonp Posted September 27, 2014 Share Posted September 27, 2014 Peter, You are awesome as normal. Looking forward to testing this out tonight with beta 10!! Are you hinting that we will be seeing this soon, or just trying to make us jealous? Working on it ;-) Quote Link to comment
MyKroFt Posted September 27, 2014 Share Posted September 27, 2014 installing the server plg I get the following at the end: Warning: copy(/boot/config/plugins/openvpnserver/Ovpntech_logo-s_REVISED.png): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/plgMan/plugin on line 220 plugin: unable to copy LOCAL file: /usr/local/emhttp/plugins/openvpnserver/Ovpntech_logo-s_REVISED.png Myk Quote Link to comment
peter_sm Posted September 27, 2014 Author Share Posted September 27, 2014 installing the server plg I get the following at the end: Warning: copy(/boot/config/plugins/openvpnserver/Ovpntech_logo-s_REVISED.png): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/plgMan/plugin on line 220 plugin: unable to copy LOCAL file: /usr/local/emhttp/plugins/openvpnserver/Ovpntech_logo-s_REVISED.png Myk This lines should have been deleted, will remove it on next version. //Peter Quote Link to comment
abeksis Posted September 27, 2014 Share Posted September 27, 2014 plugin: creating: /boot/config/plugins/openvpnserver/device_status.png - downloading from URL --no-check-certificate http://lime-technology.com/wiki/images/9/97/Device_status.png plugin: creating: /boot/config/plugins/openvpnserver/new_config.png - downloading from URL --no-check-certificate http://lime-technology.com/wiki/images/b/b3/New_config.png plugin: creating: /boot/config/plugins/openvpnserver/information.png - downloading from URL --no-check-certificate http://lime-technology.com/wiki/images/5/54/Information.png plugin: creating: /boot/config/plugins/openvpnserver/openvpnserver.png - downloading from URL --no-check-certificate http://lime-technology.com/wiki/images/2/2f/Openvpn.png plugin: running: 'anonymous' /bin/bash: line 4: /etc/rc.d/rc.openvpnserver: No such file or directory plugin: creating: /var/local/emhttp/plugins/openvpnserver/check-my-ip.sh - from INLINE content plugin: setting: /var/local/emhttp/plugins/openvpnserver/check-my-ip.sh - mode to 0770 plugin: creating: /boot/config/plugins/openvpnserver/openvpnserver.cfg - from INLINE content plugin: creating: /boot/config/plugins/openvpnserver/openvpnserver_cert.cfg - from INLINE content plugin: creating: /etc/rc.d/rc.openvpnserver - from INLINE content plugin: setting: /etc/rc.d/rc.openvpnserver - mode to 0770 plugin: creating: /usr/local/emhttp/plugins/openvpnserver/openvpnserver.page - from INLINE content plugin: creating: /usr/local/emhttp/plugins/openvpnserver/device_status.png - copying LOCAL file /boot/config/plugins/openvpnserver/device_status.png plugin: creating: /usr/local/emhttp/plugins/openvpnserver/new_config.pn - copying LOCAL file /boot/config/plugins/openvpnserver/new_config.png plugin: creating: /usr/local/emhttp/plugins/openvpnserver/information.png - copying LOCAL file /boot/config/plugins/openvpnserver/information.png plugin: creating: /usr/local/emhttp/plugins/openvpnserver/openvpnserver.png - copying LOCAL file /boot/config/plugins/openvpnserver/openvpnserver.png plugin: creating: /usr/local/emhttp/plugins/openvpnserver/Ovpntech_logo-s_REVISED.png - copying LOCAL file /boot/config/plugins/openvpnserver/Ovpntech_logo-s_REVISED.png Warning: copy(/boot/config/plugins/openvpnserver/Ovpntech_logo-s_REVISED.png): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/plgMan/plugin on line 220 plugin: unable to copy LOCAL file: /usr/local/emhttp/plugins/openvpnserver/Ovpntech_logo-s_REVISED.png Quote Link to comment
abeksis Posted September 27, 2014 Share Posted September 27, 2014 I try to run the system and I get an error. What am I doing wrong. Options error: In [CMD-LINE]:1: Error opening configuration file: Chose Use --help for more information. Quote Link to comment
peter_sm Posted September 27, 2014 Author Share Posted September 27, 2014 peter_sm- yes, very nice! One plg file to rule them all! Now put your icons inline using the "base64" attribute. Thanks Tom! Both plugins updated with base64 for icons, and path to the packages. And "Ovpntech_logo-s_REVISED.png" are removed from the server plugin. //Peter Quote Link to comment
JM2005 Posted September 27, 2014 Share Posted September 27, 2014 Thank you Peter for updating this plugin! Quote Link to comment
LateNight Posted September 27, 2014 Share Posted September 27, 2014 After updating, if I try to enter into the OpenVPN server settings my unRAID system hangs. I can still access it via PuTTY. Quote Link to comment
peter_sm Posted September 28, 2014 Author Share Posted September 28, 2014 Can you do a "ps -ef" and see if you have a process with ipecho.net, if so it's hanging when get your IP address Quote Link to comment
LateNight Posted September 28, 2014 Share Posted September 28, 2014 root 14643 14642 0 00:45 ? 00:00:00 wget http://ipecho.net/plain -O I can again access unRAID after killing that process. Is there an alternative to ipecho? Quote Link to comment
peter_sm Posted September 28, 2014 Author Share Posted September 28, 2014 It looks like the http://ipecho.net/ is down! I use it to get the WAN IP address, so that cause GUI looks like it stop working. Need to find a better solution, this might be the issue. http://ipecho.net/developers.html //Peter Quote Link to comment
LateNight Posted September 28, 2014 Share Posted September 28, 2014 wget -qO- icanhazip.com seems to work. Quote Link to comment
peter_sm Posted September 28, 2014 Author Share Posted September 28, 2014 Yes, trying the same :-) edit nano /var/local/emhttp/plugins/openvpnserver/check-my-ip.sh and remark the ipecho line and add this line curl icanhazip.com Will update plugin later today Quote Link to comment
LateNight Posted September 28, 2014 Share Posted September 28, 2014 In trying to find a problem I was also getting the following error: Line 665: [: ==: unary operator expected Line 665 is if [ $NEWBRIDGING == "yes" ] ; then Should it be if [ "$NEWBRIDGING" == "yes" ] ; then Quote Link to comment
peter_sm Posted September 28, 2014 Author Share Posted September 28, 2014 Good finding, yes I think it would be change //Peter Quote Link to comment
peter_sm Posted September 28, 2014 Author Share Posted September 28, 2014 Please try new version //Peter Quote Link to comment
LateNight Posted September 28, 2014 Share Posted September 28, 2014 No problems with the update. Thank you for all your work. Quote Link to comment
LateNight Posted September 28, 2014 Share Posted September 28, 2014 Upgraded unRAID to 6.0~beta10. OpenVPN Server is no longer listed as a plugin but I can access it in the Settings menu. Quote Link to comment
peter_sm Posted September 28, 2014 Author Share Posted September 28, 2014 Same here, must be something on B 10 Quote Link to comment
tyrindor Posted October 1, 2014 Share Posted October 1, 2014 I try to run the system and I get an error. What am I doing wrong. Options error: In [CMD-LINE]:1: Error opening configuration file: Chose Use --help for more information. I get same problem. How do we set up a config file? All I want to do is access another unRAID server and vice versa. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.