Page 3 of 4

Re: OpenVPN 2.1.3

PostPosted: Sun Aug 14, 2011 5:47 am
by recliq

Re: OpenVPN 2.1.3

PostPosted: Sun Aug 14, 2011 8:59 am
by namtih
Thank you very much. The app is working with the 1.05 firmware, too.

I think I was able to get it working, but have some questions:
1. How can I confirm that the connection is really encrypted from the command line?
I see a "tun0" with ifconfig, but is there a method to confirm this?
On my desktop I open a website like http://www.wieistmeineip.de/ and check the ip and country. But I don't know such a method from the command line.

2. The provided ovpn configuration files use a script called "update-resolv-conf", which isn't available on the wd.
I was able to find it here: http://www.subvs.co.uk/openvpn_resolvconf
When I check the script it also uses this: /sbin/resolvconf - which isn't available neither.
Does someone know how to implement this?

Re: OpenVPN 2.1.3

PostPosted: Fri Aug 26, 2011 6:51 am
by namtih
namtih wrote:1. How can I confirm that the connection is really encrypted from the command line?
I see a "tun0" with ifconfig, but is there a method to confirm this?
On my desktop I open a website like http://www.wieistmeineip.de/ and check the ip and country. But I don't know such a method from the command line.

Code: Select all
wget -O - http://automation.whatismyip.com/n09230945.asp 2>/dev/null

Re: OpenVPN 2.1.3

PostPosted: Fri Sep 30, 2011 8:47 am
by namtih
The app is working, but I've noticed some crashes in the past weeks and don't see any option to fine-tune on the settings.
Does perhaps someone have the time to compile an updated version?

Re: OpenVPN 2.1.3

PostPosted: Sat Nov 26, 2011 2:52 pm
by Martin_L
I am having trouble keeping the openvpn app working. I work with firmware: 1.05.04_V.WDLXTV_LIVE-0.5.1.1.

In order to perform the tests, I kept a "fresh" app.bin file, with the correct configuration. I copy it to the USB drive each time.

1. Fresh file, copied into drive, without rebooting WDTV. Starting the application with "app-plugman-web load <mypath>/openvpn.app.bin"
- OpenVPN works without problems!

2. When WDTV reboots, the app.bin file gets "corrupted" and openvpn can not be started any more. By comparing the "corrupted" file with the "fresh" one, I tracked down the differences to the persistence of the symlinks in the openvpn/lib folder.
Code: Select all
liblzo2.so.2 -> liblzo2.so.2.0.0
libpam.so.0 -> libpam.so.0.82.2
libpam_misc.so.0 -> libpam_misc.so.0.82.0
libpamc.so.0 -> libpamc.so.0.82.1
libpkcs11-helper.so.1 -> libpkcs11-helper.so.1.0.0

I could "refresh" the file by deleting those symlinks and unloading.
Code: Select all
rm /apps/openvpn/lib/libpkcs11-helper.so.1
rm /apps/openvpn/lib/libpamc.so.0
rm /apps/openvpn/lib/libpam_misc.so.0
rm /apps/openvpn/lib/libpam.so.0
rm /apps/openvpn/lib/liblzo2.so.2


...When unloading the app.bin it always shows the error:
Code: Select all
sed: cannot create temp file /etc/ld.so.confWTBp6w: Read-only file system


...When unloading the app.bin that was loaded during reboot I sometimes get:
Code: Select all
umount: can't umount /apps/openvpn: Device or resource busy

... and in this case the file gets definitely corrupted without fix.
Anyone has a hint about why this happens? Its only in my case?

If I can solve this, I was preparing an updated app.bin compatible with the new "Addons manager", allowing the start and stop of the openvpn daemon.
Beyond that, I was able to make the app work as server in the simple case of a pre-shared static key. Once solved the issues, I want to prepare a simple app.bin to make this configuration very easy for laymen.

Thanks,

Martin_L

[edited: 01/01/2012]: Forget all the testing nonsense I wrote. I was lost. After deeper analysis I tracked the problem down to a correct path to the key in the configuration file.

Re: OpenVPN 2.1.3

PostPosted: Sat Nov 26, 2011 11:50 pm
by namtih
Can't confirm these issues, all is working fine after a reboot.
But when you check my signature, I'm using a slighty different environment (0.5.1.4 + EXT3).

Re: OpenVPN 2.1.3

PostPosted: Sat Dec 03, 2011 11:14 pm
by spazlon
When I try to start the app using /apps/openvpn-0.3/etc/init.d/S99openvpn start I get the following error:

Code: Select all
# init.d/S99openvpn start                                                                                                                                                                   
Starting OenVPN service...                                                                                                                                                                   
insmod: can't read '/apps/openvpn/lib/modules/2.6.22.19-19-4/tun.ko': No such file or directory


How do I fix this?

Re: OpenVPN 2.1.3

PostPosted: Sun Dec 04, 2011 12:26 am
by namtih
Which version do you use? This one from a previous post?
recliq wrote:http://files.wdlxtv.de/openvpn-0.3.app.bin


The correct path would be:
Code: Select all
# pwd
/apps/openvpn-0.3/lib/modules/2.6.22.19-19-4
#
# ls -al
drwxrwxrwx    2 root     root          1024 Jan  1  2000 .
drwxrwxrwx    3 root     root          1024 Jan  1  2000 ..
-rwxrwxrwx    1 root     root         14722 Feb 10  2010 tun.ko


And I only use the command "openvpn" to start a new session.

Re: OpenVPN 2.1.3

PostPosted: Sun Dec 04, 2011 3:17 am
by recliq
spazlon wrote:When I try to start the app using /apps/openvpn-0.3/etc/init.d/S99openvpn start I get the following error:

Code: Select all
# init.d/S99openvpn start                                                                                                                                                                   
Starting OenVPN service...                                                                                                                                                                   
insmod: can't read '/apps/openvpn/lib/modules/2.6.22.19-19-4/tun.ko': No such file or directory


How do I fix this?


Rename openvpn-0.3.app.bin to openvpn.app.bin and reboot.

Re: OpenVPN 2.1.3

PostPosted: Thu Dec 04, 2014 8:32 am
by tafazzi87
where can i find link download that works? thanks