Using the OpenVPN Client - whats with comp-lzo?

post here any question or information you want to share on Computers

Using the OpenVPN Client - whats with comp-lzo?

Postby roelant » Sat Dec 01, 2018 8:39 pm

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
roelant
Donator VIP
Donator VIP
 
Posts: 5
Joined: Tue Feb 07, 2012 7:52 pm

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

Postby fvdw » Sun Dec 02, 2018 9:32 am

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
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby roelant » Sun Dec 02, 2018 10:32 am

Appreciate it. :)
roelant
Donator VIP
Donator VIP
 
Posts: 5
Joined: Tue Feb 07, 2012 7:52 pm

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

Postby fvdw » Sun Dec 02, 2018 4:00 pm

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)
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby roelant » Mon Dec 03, 2018 7:51 pm

Works like a charm, thank you. :)
roelant
Donator VIP
Donator VIP
 
Posts: 5
Joined: Tue Feb 07, 2012 7:52 pm

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

Postby fvdw » Mon Dec 03, 2018 8:09 pm

roelant wrote:Works like a charm, thank you. :)


Glad to hear you got it working :-D
ps we have a donate button :whistle
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby roelant » Tue Dec 04, 2018 8:00 pm

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
roelant
Donator VIP
Donator VIP
 
Posts: 5
Joined: Tue Feb 07, 2012 7:52 pm

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

Postby fvdw » Wed Dec 05, 2018 9:50 am

: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
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

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

Postby jgracia » Tue Dec 11, 2018 5:50 pm

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
jgracia
 
Posts: 6
Joined: Mon Nov 12, 2018 4:44 pm

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

Postby roelant » Fri Dec 14, 2018 10:59 pm

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. :)
roelant
Donator VIP
Donator VIP
 
Posts: 5
Joined: Tue Feb 07, 2012 7:52 pm


Return to Computers and General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron