Page 1 of 1

Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Sat Dec 01, 2018 8:39 pm
by roelant
I've been fiddeling around with the OpenVPN client that ships with fvdw on a SPD8020, but what I'm running into is that every (commercially availeble) VPN I have access to that supports OpenVPN, uses the option comp-lzo, and the client claims its an unknown option. Now I've google'd my way around, for OpenVPN the new option is -compress, and comp-lzo is depricated. But the packaged version is 2.3.3 where comp-lzo is still the proper way to tell OpenVPN what's expected from it. Is it by any chance compiled without? Or is there some other reason it won't recognise it?

The way I've gone about it - and it's really straightforward: dump all the required files in a folder, e.g.
Code: Select all
/share/1000/fvdw/NameOfTheVPN

Then run it with from that folder with the readily available client:
Code: Select all
root@nameofmynas:/share/1000/fvdw/NameOfTheVPN # openvpn --config ConfigFileOfThatVPN.ovpn

And all goes well, but for one thing:
Code: Select all
Options error: Unrecognized option or missing parameter(s) in ConfigFileOfThatVPN.ovpn:13: comp-lzo (2.3.3)

If I remove the option, all of them connect beautifully and add their routing options to make it work. Except they spit out this error every other few seconds:
Code: Select all
Sat Dec  1 21:28:47 2018 write to TUN/TAP : Invalid argument (code=22)

Wich after some google-foo relates to the compression not being set/recognised - and no traffic is able to pass trough the routing either.

Help? :P

Re: Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Sun Dec 02, 2018 9:32 am
by fvdw
It has been a while ago that openvpn was compiled and it worked fine that time but I did not use it for longer time so I was not aware of this issue. I will try to compile a more recent version to see if it solves your problem

Re: Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Sun Dec 02, 2018 10:32 am
by roelant
Appreciate it. :)

Re: Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Sun Dec 02, 2018 4:00 pm
by fvdw
attached a patch that will upgrade openvpn to version 2.4.6 including lzo support
The previous version was compiled without lzo support. This patch will also install liblzo-2.10

How to install.
Use the upload file feature in the webinterface (sub menu of firmware update menu).
Read the help file for that page for instructions

In short
Put the zip archive in the fvdw share
Select the file in the first field
Enter in the control code field "unzip" (without the quotes)

Re: Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Mon Dec 03, 2018 7:51 pm
by roelant
Works like a charm, thank you. :)

Re: Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Mon Dec 03, 2018 8:09 pm
by fvdw
roelant wrote:Works like a charm, thank you. :)


Glad to hear you got it working :-D
ps we have a donate button :whistle

Re: Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Tue Dec 04, 2018 8:00 pm
by roelant
It really does ruin the surprise on both ends when you ask for it (and beat me to it at that) :-D
But I imagine you have to nudge most people to even consider it so, oh well

Re: Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Wed Dec 05, 2018 9:50 am
by fvdw
:punk thank you much appreciated, it helps us to keep the forum up and motivates to improve and extend the firmware. Version 18 is in preparation

Re: Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Tue Dec 11, 2018 5:50 pm
by jgracia
Hi, I've installed the patch but I don't know how to connect with OpenVPN
In the menu VPN Servers doesn't appear OpenVPN server
Anyone could explain how to do it, please

Thanks

Re: Using the OpenVPN Client - whats with comp-lzo?

PostPosted: Fri Dec 14, 2018 10:59 pm
by roelant
You can only use openvpn from bash/trough ssh. If you know how to use that, most of what you need to know is already in my opening post. The rest you can find by calling openvpn without any parameters and it'll display all the options. And/or google at it if you need something specific, like running it in the background. :)