Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: OpenVPN does not work under opensuse 13.2

  1. #1

    Default OpenVPN does not work under opensuse 13.2

    Hi,

    I used NetworkManager Connection Editor to import OpenVPN, however, the connection did not work even though a lock icon is displayed and tun0 was created. Weird enough, there is not /var/log/NetworkManager file. Also, the /etc/openvpn folder was empty so I had to copy some file for testing. I tried to start the openvpn manually but that did not help

    Code:
    openvpn@NL.service - OpenVPN tunneling daemon instance using /etc/openvpn/NL.conf
       Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; enabled)
       Active: inactive (dead)
                                                                                                                                                                                                    
    nexus@linux:/etc/openvpn> sudo systemctl status openvpn@server.service                                                                                                                        
    openvpn@server.service - OpenVPN tunneling daemon instance using /etc/openvpn/server.conf                                                                                                       
       Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; enabled)                                                                                                                           
       Active: failed (Result: exit-code) since Wed 2014-11-05 10:21:39 AST; 34min ago                                                                                                              
                                                                                                                                                                                                    
    Nov 05 10:21:39 linux.site openvpn[876]: Options error: In [CMD-LINE]:1: Error opening configuration file: server.conf                                                                          
    Nov 05 10:21:39 linux.site openvpn[876]: Use --help for more information.
    Nov 05 10:21:39 linux.site systemd[1]: Failed to start OpenVPN tunneling daemon instance using /etc/openvpn/server.conf.
    Could someone please help me to get openvpn work under 13.2 release?

  2. #2

    Default Re: OpenVPN does not work under opensuse 13.2

    Hello,

    I've got the exactly same issue as suikodian.

    Nonetheless I brought it to work with following weird workaround:

    1) Restart openvpn service
    Code:
    # service openvpn restart
    2) Run openvpn client from CLI & don't stop it:
    Code:
    # openvpn --config myconfig.ovpn
    3) Do the usual GUI based connect via NetworkManager.

    Now it works fine.
    But sadly, I don't really grasp WHY it's working and additionally that workaround really ain't a nice one.

    So I'm still hoping to find a better solution to the problem.

  3. #3

    Default Re: OpenVPN does not work under opensuse 13.2


  4. #4
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    74

    Default Re: OpenVPN does not work under opensuse 13.2

    Same issue as described above. Additionally I remember that on 13.1 tun0 was not created when connection was established.

    When connecting manually via CLI the traffic is routed correctly, again via creating tun0 connection.

    Also, when trying to Enable and Start the "openvpn@" service via Services Manager (Yast) and clicking OK to save the changes the following error is showed - "Could not enable openvpn@. Failed to get properties: Unit name openvpn@.service is not valid."

    I think in 13.1 the service was simply called "openvpn". Could be the issue with the service package.

    This needs to be fixed at earliest.
    Linux & Open Source World
    E@zyVG's Vichar::World Connected

    Free and open-source software is good for you and for the world.

  5. #5
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    74

    Default Re: OpenVPN does not work under opensuse 13.2

    Devs & people:

    Any progress on resolving this issue (bug!). I tried installing manually the openvpn related packages (3 of them) from 13.1 distro, but no go. So, for now I am resolved to manually executing the VPN connection via CLI, of which I am getting tired .... please help/assist on this matter, the only major one in 13.2 that I am unable to resolve or find solution for. As am using 95% wifi, "wicked" is no solution for me.
    Linux & Open Source World
    E@zyVG's Vichar::World Connected

    Free and open-source software is good for you and for the world.

  6. #6

    Default AW: Re: OpenVPN does not work under opensuse 13.2

    Quote Originally Posted by EazyVG View Post
    Also, when trying to Enable and Start the "openvpn@" service via Services Manager (Yast) and clicking OK to save the changes the following error is showed - "Could not enable openvpn@. Failed to get properties: Unit name openvpn@.service is not valid."

    I think in 13.1 the service was simply called "openvpn". Could be the issue with the service package.
    This already was the same in 13.1.

    You cannot enable/start openvpn@.service. This is just a template.
    You have to create a config in /etc/openvpn/ and then enable/start that particular instance.
    E.g. if your config is named "vpn1.config", use this:
    Code:
    systemctl start openvpn@vpn1
    systemctl enable openvpn@vpn1
    This is no bug, this is by design.

    There's also openvpn.target that should start _all_ openvpn instances, but I don't know how you would use this.
    Last edited by wolfi323; 17-Nov-2014 at 07:36.

  7. #7
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    74

    Default Re: OpenVPN does not work under opensuse 13.2

    If not a issue/bug then why when connectinf via NetworkManager the traffic is not being routed as per the VPN connection that gets established!

    Of course this is not a design, rather something is wrong with some package. One doesn't have to create a script manually, or config, that is why NetworkManager was designed in the first place, to automate connections, including the import files of vpn connections, one of them being the openvpn standard.

    I am not sure about the 13.1, perhaps it was the same there and am wrong about the openvpn@.serive, but everything worked there by simply importing the .ovpn file and giving the authentication credentials, same thing as in CLI but rather via a GUI.
    Linux & Open Source World
    E@zyVG's Vichar::World Connected

    Free and open-source software is good for you and for the world.

  8. #8

    Default Re: OpenVPN does not work under opensuse 13.2

    Quote Originally Posted by EazyVG View Post
    If not a issue/bug then why when connectinf via NetworkManager the traffic is not being routed as per the VPN connection that gets established!
    I don't know. I never even used openvpn myself.
    I was specifically talking about not being able to start openvpn@.service.

    I have no idea at all how NetworkManager comes into play here anyway.

    I am not sure about the 13.1, perhaps it was the same there and am wrong about the openvpn@.serive, but everything worked there by simply importing the .ovpn file and giving the authentication credentials.
    Yes, it was the same in 13.1, that's when openvpn was migrated from an old-style sysvinit script (/etc/init.d/openvpn) to a native systemd unit.

    PS: I think there's a misunderstanding here:
    For creating a openvpn connection in NetworkManager, you do _not_ have to enable/start an openvpn@xxx.service.
    The service is for connecting at boot without network manager AIUI. Or maybe it is even the server part, not the client, I'm not sure.

    I don't use openvpn myself as mentioned, but a vpnc connection works fine here (setup in NetworkManager and nothing else).
    Last edited by wolfi323; 17-Nov-2014 at 07:45.

  9. #9
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    74

    Default Re: OpenVPN does not work under opensuse 13.2

    Hmmmm .... let me then try few more things, who knows, maybe we get lucky. Thanks for the input. We know that the openvpn protocol is working fine on 13.2, its just some issue with the NetworkManager and the openvpn plasma related files for it.
    Linux & Open Source World
    E@zyVG's Vichar::World Connected

    Free and open-source software is good for you and for the world.

  10. #10
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    74

    Default Re: OpenVPN does not work under opensuse 13.2

    Forgot to mentioned it here ..... SOLVED !!! Yey.

    NetworkManager 1.0.0 released!


    This package solves this long outstanding problem for past few months(!!). I am quite surprised that being it released late December it is still not available as updates for 13.2 and Tumbleweed.

    (For me it is Tumbleweed) I used the following repo to updated the networkmanager package and all the required for me (incl. networkmanager-openvpn) - http://download.opensuse.org/reposit...ches:/network/

    Once added via Software Manager switch to using this repo and update all that system states, incl. dependencies/removals.

    No more need to manually connect via CLI everytime.

    Code:
    me@linux-oi3d:~> ip route 
    default via 10.10.40.13 dev tun0  proto static  metric 50 
    default via 192.168.1.1 dev wlp3s0  proto static  metric 600 
    10.10.40.1 via 10.10.40.13 dev tun0  proto static  metric 50 
    10.10.40.13 dev tun0  proto kernel  scope link  src 10.10.40.14 
    MY_EXTERNAL_IP via 192.168.1.1 dev wlp3s0  proto static  metric 600 
    192.168.1.0/24 dev wlp3s0  proto kernel  scope link  src 192.168.1.4 
    192.168.1.0/24 dev wlp3s0  proto kernel  scope link  src 192.168.1.4  metric 600
    Linux & Open Source World
    E@zyVG's Vichar::World Connected

    Free and open-source software is good for you and for the world.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •