Opened 4 years ago

Last modified 3 years ago

#489 new defect

luci-app.openvpn is broken

Reported by: joesemler Owned by:
Priority: blocker Milestone:
Component: LuCI Applications Keywords:
Cc:

Description

After few days of working, luci-app-openvpn is marked as broken.

Attachments (5)

luci-openvpn.section-create-name.patch (543 bytes) - added by gaspar.akos@… 4 years ago.
patch to name config section as requested by user
luci-app-openvpn_1.0.0_all.ipk (16.4 KB) - added by christian.richarz@… 4 years ago.
Rewritten version of the OpenVPN app for LuCI, based on the old and broken one (ipkg package)
luci-openvpn.tgz (23.6 KB) - added by christian.richarz@… 4 years ago.
Rewritten version of the OpenVPN app for LuCI, based on the old and broken one (source)
luci-openvpn_fixes_for_barrier-breaker.patch (7.7 KB) - added by Vladimir Ulrich <wedmer@…> 3 years ago.
Patch makes it working with current git revision of OpenWrt? openvpn-openssl package
luci-app-openvpn_1.1.0_all.ipk (59.2 KB) - added by Bjørn Kagelmacher <DL7RAY@…> 3 years ago.
A working multilanguage OpenVPN app for LuCI r10249 (updated ipkg package)

Download all attachments as: .zip

Change History (31)

comment:1 Changed 4 years ago by joesemler

Hi jow,
why did you mark in Changeset 9274 the package as broken?
For me it was working within the last week after a long period of failure.

Joe

comment:2 Changed 4 years ago by Jérôme Poulin <jeromepoulin@…>

I second this comment.

I would volunteer (for real this time), to fix this package, for example:

  • Flaky configurations, sometime configuration appear and they can't be named.
  • Management was disabled by default in OpenVPN package causing it to fail to start, remove it from the recipes would fix that.
  • TA keys can't be uploaded like other key files, probably because of the 1/0 at the end of the config line that is needed.

comment:3 Changed 4 years ago by anonymous

Can anyone direct me to the source locatoin of this package?

comment:4 Changed 4 years ago by Del <delonly@…>

Jérôme, have you done anything about it yet? Seems you have already tracked down a couple of fixes. I can probably help out a bit, but it would really save time if you can take a couple of minutes to elaborate your three findings. Are any of them fixed now (from a brief look the first one is still present while the second is fixed)? Do they have tickets? Can you share more details on how to implement the fixes?

Sources are located on svn: http://luci.subsignal.org/trac/wiki/Download
the particular source of luci-openvpn is at trunk/applications/luci-openvpn

comment:5 Changed 4 years ago by anonymous

As before, the package is not in the repository.It is time to correct the errors. 4 months have passed since the filing of this ticket!

comment:6 Changed 4 years ago by anonymous

Please put it back in the repository. I need to set up openvpn, but package luci-app-openvpn is still unavailable.

We have been waiting for a LONG time. Please fix

comment:7 Changed 4 years ago by anonymous

Any news when luci-app-openvpn will be made available?

comment:8 Changed 4 years ago by anonymous

+1 Please, I need it as well. Thank you in advance. I appreciate your job.

comment:9 Changed 4 years ago by Del

The code is still there, it has bugs that makes it unfit for ordinary users. Find it in an old package, or build it yourself (OpenWrt?'s build system allows you to expose broken packages so that you can include them in a build). You can always set-up OpenVPN manually through config files, the OpenWrt? wiki resource is excellent. Please do not spam this bug-tracker.

Changed 4 years ago by gaspar.akos@…

patch to name config section as requested by user

comment:10 Changed 4 years ago by anonymous

time to add this! ffs.

comment:11 Changed 4 years ago by paul.naama@…

I am a newcomer to openwrt.

Please. can we get this working?

Thanks.

comment:12 Changed 4 years ago by crimson2@…

Still waiting for this...

comment:13 Changed 4 years ago by Curtan

I want see a luci-app-openvpn on OpenWRT 12.09!!!

comment:14 Changed 4 years ago by christian.richarz@…

Since we too need the LuCI-OpenVPN module and there was no solution in sight from here, i simply rewrote it (partially). It is quite usable now (although i have no way to test every possible scenario). I removed the possibility to select recipes but tried on the other hand to keep it as simple as possible to get a working basic configuration for client and server.
As far as i was able to test this it works just fine. Since i am not familiar with the way development is done concerning LuCI i wonder what would be best way to feed this back to the community?

comment:15 Changed 4 years ago by anonymous

Nice job Christian! I think start by attaching what you have done! You could also leave a comment on https://dev.openwrt.org/ticket/12331 explaining that you've rewritten it.

comment:16 follow-up: Changed 4 years ago by anonymous

Any Plans on releasing your rewrite here? I am also interested in a working LuCI application for openVPN.

Changed 4 years ago by christian.richarz@…

Rewritten version of the OpenVPN app for LuCI, based on the old and broken one (ipkg package)

Changed 4 years ago by christian.richarz@…

Rewritten version of the OpenVPN app for LuCI, based on the old and broken one (source)

comment:17 follow-ups: Changed 4 years ago by christian.richarz@…

OK, i just tried to attach the ipkg package and the source of the rewritten OpenVPN app here. Let`s see if it will show up.
I have no idea how to get this correctly into the code management system. Perhaps someone who knows could share his/her wisdom with me? :-)

Until then, perhaps the moderation lets the files go through and they can be of some use to you.

Christian

comment:18 Changed 4 years ago by anonymous

Hi all,

Any update on this issue?
I just update my router to openWRT and installed Luci which work fine; my main goal for doing this was to setup an openVPN server and have no experience in the CLI so this would realy help.

Many thanks in advance.

comment:19 in reply to: ↑ 16 Changed 4 years ago by DR LEktro

Replying to anonymous:

Any Plans on releasing your rewrite here? I am also interested in a working LuCI application for openVPN.

Same here ; thanks!

comment:20 in reply to: ↑ 17 Changed 4 years ago by DaLai

Hello Christian,

thank you for your plug-in it works great!

but there is a small issue with the automatic values for
"Configure server bridge"
and
"Set tun/tap adapter parameters (ifconfig)"
in server mode. They don't work for my configuration
and this values cannot be removed from the gui.

My configuration in /etc/config/openvpn should look like this

config openvpn 'TestNet?'

option proto 'udp'
option port '1197'
option dev_type 'tap'
option verb '3'
option dev 'TestNet?'
option enabled '1'
option remote_random '0'
option secret '/lib/uci/upload/cbid.openvpn.TestNet?.secret'
option keepalive '10 120'

many thanks
Lai

comment:21 in reply to: ↑ 17 ; follow-up: Changed 4 years ago by anonymous

Replying to christian.richarz@…:

OK, i just tried to attach the ipkg package and the source of the rewritten OpenVPN app here. Let`s see if it will show up.
I have no idea how to get this correctly into the code management system. Perhaps someone who knows could share his/her wisdom with me? :-)

Until then, perhaps the moderation lets the files go through and they can be of some use to you.

Christian

Christian!

Thank You for Your work! When I try to install your package I get file install problem: /etc/config/openvpn and /etc/openvpn is already installed by openvpn package. If I remove openvpn, luci-app-openvpn installs smoothly, but without openvpn it useless ;-).

Ákos

comment:22 Changed 3 years ago by anonymous

Hey, i think with the new developments about privacy it's a really important feature of openwrt and a important feature for new users to openwrt. So please fix it, it helps and brings a lot of people to openwrt! Thanks!

comment:23 in reply to: ↑ 21 Changed 3 years ago by anonymous

Replying to anonymous:

Thank You for Your work! When I try to install your package I get file install problem: /etc/config/openvpn and /etc/openvpn is already installed by openvpn package. If I remove openvpn, luci-app-openvpn installs smoothly, but without openvpn it useless ;-).
Ákos

I was able to get it to install on my OpenWRT install with the following commands:

opkg update
opkg install openvpn openvpn-easy-rsa
mv /etc/config/openvpn /etc/config/openvpn.old
mv /etc/init.d/openvpn /etc/init.d/openvpn.old
opkg install http://luci.subsignal.org/trac/raw-attachment/ticket/489/luci-app-openvpn_1.0.0_all.ipk

I get the following output and errors when installing the luci package:

Downloading http://luci.subsignal.org/trac/raw-attachment/ticket/489/luci-app-openvpn_1.0.0_all.ipk.
Installing luci-app-openvpn (1.0.0) to root...
Configuring luci-app-openvpn.
Collected errors:
 * parse_from_stream_nomalloc: Missing new line character at end of file!
 * parse_from_stream_nomalloc: Missing new line character at end of file!

Might the missing newline character(s) be related to it not wanting to overwrite /etc/config/openvpn and /etc/init.d/openvpn?

I have not yet tried to configure or run it, just install it.
This is with OpenWRT 12.0.9 installed on a TL-WR1043ND

Thanks

Aaron Z

comment:24 Changed 3 years ago by christian.richarz@…

Nice to see that some people are actually interested in this. The problem on my end right now is that i did this "rewrite" of the LuCi?-OpenWrt? application for work and it works fine for what we want to do with it (which is using just a limited set of the possibilitys of openvpn).
The only time i would have available to do something about the remaining problems is at work, and right now i`m busy with a whole bunch of other stuff here. So i cannot really promise if i will be able to fix any problems anytime soon.
Is perhaps somebody interested in improving my work? :-)

Christian

comment:25 Changed 3 years ago by anonymous

as a user of openwrt and luci it would be nice to have the openvpn plugin available again. its an easy to use plugin, which is a needed tool in the latest internet-security developments.

Changed 3 years ago by Vladimir Ulrich <wedmer@…>

Patch makes it working with current git revision of OpenWrt? openvpn-openssl package

comment:26 Changed 3 years ago by Vladimir Ulrich <wedmer@…>

As patch posted here was not validated it can be acessed here
https://gist.github.com/Wedmer/7775956

Changed 3 years ago by Bjørn Kagelmacher <DL7RAY@…>

A working multilanguage OpenVPN app for LuCI r10249 (updated ipkg package)

Note: See TracTickets for help on using tickets.