[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2020-05-11 Thread Sebastien Bacher
@Daniel, what version are you using? The /etc/init.d/openvpn screen from bionic has that same snippet you mentioned from upstream '# Source defaults file; edit that file to configure this script. AUTOSTART="all" STATUSREFRESH=10' @Paulo, from what file did you change the sh to bash and how did yo

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2019-11-19 Thread Paulo Barreto
I changed the first line of #/bin/sh -e to #/bin/bash and it worked -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1771650 Title: openvpn startup script isn't working in ubuntu 18.04 To manage notif

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2019-07-15 Thread Paride Legovini
** Tags removed: server-triage-discuss -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1771650 Title: openvpn startup script isn't working in ubuntu 18.04 To manage notifications about this bug go to

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2019-07-15 Thread Paride Legovini
** Tags added: server-triage-discuss -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1771650 Title: openvpn startup script isn't working in ubuntu 18.04 To manage notifications about this bug go to:

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2019-07-13 Thread Danil Gerun
I also came across this issue. This is a not quite obvious thing in the default installation (I mean the @-services). As far as I could get it (and found in internets), the service relies on the init-script: /etc/init.d/openvpn which only starts the found .conf files if the AUTOSTART var = "all

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-11-27 Thread Kees Cook
It shouldn't be necessary to do explicit "enable" calls to make this work. The generator _should_ be finding all the .conf files automatically: /lib/systemd/system-generators/openvpn-generator However, it is NOT working for me... -- You received this bug notification because you are a member of

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-11-15 Thread Ron Shapiro
I was also able to fix the problem by switching from openvpn- server@.service to openvpn@.service #Fanar, I think that step #3 above (coupled with the reboot) is what actually fixed your issue -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to U

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-07-23 Thread Andreas Hasenack
** Also affects: openvpn Importance: Undecided Status: New ** Project changed: openvpn => ubuntu-release-notes -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1771650 Title: openvpn startup

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-07-21 Thread Fanar Webb
to fix the problem I had to do this : 1- copy my config file to /etc/openvpn directory (not under /etc/openvpn/server) 2- systemctl enable open...@server2.conf 3- systemctl enable openvpn@server2 (to be sure). 4- systemctl start openvpn-server@server2 then rebooted, all works now and starts on bo

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-29 Thread Andreas Hasenack
The client/server @ units need a config file, otherwise they cannot be activated. I'm not sure what the main openvpn.service one is for now, though. Ah, it does nothing apparently: [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/true ExecReload=/bin/true WorkingDirectory=/etc/openvpn --

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-29 Thread Andreas Hasenack
@Fanar does comment #15 solve your case? If yes, I can add a release notes task to this bug and update https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes mentioning this change -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bug

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-29 Thread Simon Déziel
@ahasenack, thanks, I was indeed wrong with the -client/-server@ units. It's weird they don't show up in "systemctl -a | grep openvpn" though. The openvpn.postinst only seem to enable openvpn.service. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscrib

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-29 Thread Andreas Hasenack
Assuming you have a config file called /etc/openvpn/server/myconfig, can you try: systemctl start openvpn-server@myconfig That should trigger the openvpn-server@ service file, which will replace %i in the Exec line below with what's after @ in the systemctl start command: ExecStart=/usr/sbin/ope

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-29 Thread Andreas Hasenack
This needs further investigation, because the package does ship service files for server and client: # dpkg -L openvpn|grep service /lib/systemd/system/openvpn-client@.service /lib/systemd/system/openvpn-server@.service /lib/systemd/system/openvpn.service /lib/systemd/system/openvpn@.service We m

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-29 Thread Simon Déziel
The package shipped in Bionic does create the directories /etc/openvpn/server and /etc/openvpn/client but it only ships a systemd unit that looks for configuration files from /etc/openvpn directly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-29 Thread Andreas Hasenack
See this upstream change: https://github.com/OpenVPN/openvpn/commit/28bd79ac980488dbfce2e8136287e38c6f35a043 I believe all you had to do was place the config file in /etc/openvpn/server or /etc/openvpn/client, then the systemd units would pick it up automatically. Could you please verify that? If

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-25 Thread Fanar Webb
I can see that there is new file under : /etc/systemd/system/multi-user.target.wants/openvpn@tcp2.service we never needed such file before to run ovpn service. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.ne

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-25 Thread Fanar Webb
ok it worked this time, and it is still working even after restarting the service /etc/init.d/openvpn restart ifconfig tun0 tun0: flags=4305 mtu 1500 inet 10.122.11.10 netmask 255.255.255.255 destination 10.0.11.9 inet6 fe80::82bc:c88a:6a62:bc0c prefixlen 64 scopeid 0x20

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-25 Thread Simon Déziel
Can you try to enable and start it with: sudo systemctl enable openvpn@myconfig sudo systemctl start openvpn@myconfig Then collect the logs as mentioned before, please? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.l

Re: [Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-25 Thread Fanar Webb
systemctl -a | grep openvpn openvpn.service loadedactive exited OpenVPN service 2018-05-25 17:53 GMT+03:00 Simon Déziel <1771...@bugs.launchpad.net>: > What do you get from "systemctl -a | grep openvpn"? > > -- > You received this bug notification becaus

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-25 Thread Simon Déziel
What do you get from "systemctl -a | grep openvpn"? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1771650 Title: openvpn startup script isn't working in ubuntu 18.04 To manage notifications about t

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-25 Thread Fanar Webb
I still can connect if I run openvpn from command line, but init script won't start the service, I tried also making changes to /etc/default/openvpn with no luck. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.n

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-25 Thread Fanar Webb
No results : cat /tmp/openvpn-myconfig.log -- Logs begin at Thu 2018-05-24 11:33:12 +03, end at Fri 2018-05-25 17:37:44 +03. -- -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1771650 Title: openv

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-23 Thread Sebastien Bacher
the description suggests the command line openvpn is used, not the network-manager plugin ** Package changed: network-manager-openvpn (Ubuntu) => openvpn (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-23 Thread Simon Déziel
@Fanar, could you please attach the openvpn logs of the failed service start? You can collect them with: journalctl -u openvpn@myconfig > /tmp/openvpn-myconfig.log Thanks ** Changed in: openvpn (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: network-manager-openvpn (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1771

[Bug 1771650] Re: openvpn startup script isn't working in ubuntu 18.04

2018-05-18 Thread David Ing
I have a problem that may be related, but I haven't been able to get OpenVPN working. https://bugs.launchpad.net/ubuntu/+source/network- manager-openvpn/+bug/1772066 How do you start OpenVPN manually? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscr