cpriest / udm-patches

Contains onboot.d setup scripts and wrappers for custom OpenVPN client
MIT License
47 stars 3 forks source link

Not working in UDM Pro with firmware 2.x #10

Open jaromirrivera opened 1 year ago

jaromirrivera commented 1 year ago

The latest version of Unifi OS for Dream Machines (2.4.47 Release Candidate) seems to have broken this excellent patch.

Ubiquiti has changed the way the openvpn site to site vpn client is called and configured in the underlying OS which causes incorrect parameters to be sent to the openvpn-wrapper and openvpn-notify scripts...

jaromirrivera commented 1 year ago

I was able to get it to work by changing the shell runtime from #!/bin/sh to #!/bin/bash and replacing references to /run/openvpn-N with /etc/openvpn/openvpn-N, in the wrapper, notify, startup scripts, and conf files.

cpriest commented 1 year ago

Interesting, I wonder if that's what has bonkered up my own UDM. I haven't had the time to look into it. Thanks!

jaromirrivera commented 1 year ago

With firmware 2.5.16 the OpenVPN Client in available in the GUI now...

cpriest commented 1 year ago
Ah nice, then perhaps this isn't even needed
  anymore.  I still have to fix my UDM Pro

On 2/24/2023 4:07 PM, Jaromir Rivera
  wrote:

  With firmware 2.5.16 the OpenVPN Client in available
    in the GUI now...
  —
    Reply to this email directly, view it on GitHub, or unsubscribe.
    You are receiving this because you commented.Message
      ID: ***@***.***>
  [

{ @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/cpriest/udm-patches/issues/10#issuecomment-1444583956", "url": "https://github.com/cpriest/udm-patches/issues/10#issuecomment-1444583956", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]