How to setup VPN using an .ovpn file? [duplicate]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
5
down vote

favorite
2













This question already has an answer here:



  • How to setup OpenVPN Client

    5 answers



I've been using Ubuntu 18.04 for about 3 days now and so far it runs smoothly. I now need to install a VPN for my work, and I got the following files from the sysadmin:



  • ca.crt

  • VPNConfig.ovpn

I first ran sudo apt install openvpn. After that I wanted to install it using the GUI. So I went to the settings app and under "Network" I tried adding a new VPN. It gives the option to "Import from a file". So I selected the VPNConfig.ovpn file, but it says it can't import the file. I also tried importing the ca.crt file and importing the zip in which the two files came, but that didn't work either.



Could anybody help me out as to how I can make this VPN work?










share|improve this question













marked as duplicate by karel, Eric Carvalho, waltinator, David Foerster, Elder Geek Mar 18 at 21:53


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    All you have to run is openvpn --config openvpn_profile_here
    – NerdOfCode
    Mar 13 at 17:49






  • 2




    OP states that they want to use the GUI
    – NerdOfLinux
    Mar 13 at 17:50










  • I found that one can import a *.ovpn file into the GUI using sudo nmcli connection import type openvpn file /path/to/foo.ovpn. Couldn't post an answer here, but see my answer to 'How to setup OpenVPN Client' for more details.
    – HenrikB
    Sep 1 at 4:25














up vote
5
down vote

favorite
2













This question already has an answer here:



  • How to setup OpenVPN Client

    5 answers



I've been using Ubuntu 18.04 for about 3 days now and so far it runs smoothly. I now need to install a VPN for my work, and I got the following files from the sysadmin:



  • ca.crt

  • VPNConfig.ovpn

I first ran sudo apt install openvpn. After that I wanted to install it using the GUI. So I went to the settings app and under "Network" I tried adding a new VPN. It gives the option to "Import from a file". So I selected the VPNConfig.ovpn file, but it says it can't import the file. I also tried importing the ca.crt file and importing the zip in which the two files came, but that didn't work either.



Could anybody help me out as to how I can make this VPN work?










share|improve this question













marked as duplicate by karel, Eric Carvalho, waltinator, David Foerster, Elder Geek Mar 18 at 21:53


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    All you have to run is openvpn --config openvpn_profile_here
    – NerdOfCode
    Mar 13 at 17:49






  • 2




    OP states that they want to use the GUI
    – NerdOfLinux
    Mar 13 at 17:50










  • I found that one can import a *.ovpn file into the GUI using sudo nmcli connection import type openvpn file /path/to/foo.ovpn. Couldn't post an answer here, but see my answer to 'How to setup OpenVPN Client' for more details.
    – HenrikB
    Sep 1 at 4:25












up vote
5
down vote

favorite
2









up vote
5
down vote

favorite
2






2






This question already has an answer here:



  • How to setup OpenVPN Client

    5 answers



I've been using Ubuntu 18.04 for about 3 days now and so far it runs smoothly. I now need to install a VPN for my work, and I got the following files from the sysadmin:



  • ca.crt

  • VPNConfig.ovpn

I first ran sudo apt install openvpn. After that I wanted to install it using the GUI. So I went to the settings app and under "Network" I tried adding a new VPN. It gives the option to "Import from a file". So I selected the VPNConfig.ovpn file, but it says it can't import the file. I also tried importing the ca.crt file and importing the zip in which the two files came, but that didn't work either.



Could anybody help me out as to how I can make this VPN work?










share|improve this question














This question already has an answer here:



  • How to setup OpenVPN Client

    5 answers



I've been using Ubuntu 18.04 for about 3 days now and so far it runs smoothly. I now need to install a VPN for my work, and I got the following files from the sysadmin:



  • ca.crt

  • VPNConfig.ovpn

I first ran sudo apt install openvpn. After that I wanted to install it using the GUI. So I went to the settings app and under "Network" I tried adding a new VPN. It gives the option to "Import from a file". So I selected the VPNConfig.ovpn file, but it says it can't import the file. I also tried importing the ca.crt file and importing the zip in which the two files came, but that didn't work either.



Could anybody help me out as to how I can make this VPN work?





This question already has an answer here:



  • How to setup OpenVPN Client

    5 answers







networking network-manager vpn openvpn system-settings






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 13 at 17:41









kramer65

76231429




76231429




marked as duplicate by karel, Eric Carvalho, waltinator, David Foerster, Elder Geek Mar 18 at 21:53


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by karel, Eric Carvalho, waltinator, David Foerster, Elder Geek Mar 18 at 21:53


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 1




    All you have to run is openvpn --config openvpn_profile_here
    – NerdOfCode
    Mar 13 at 17:49






  • 2




    OP states that they want to use the GUI
    – NerdOfLinux
    Mar 13 at 17:50










  • I found that one can import a *.ovpn file into the GUI using sudo nmcli connection import type openvpn file /path/to/foo.ovpn. Couldn't post an answer here, but see my answer to 'How to setup OpenVPN Client' for more details.
    – HenrikB
    Sep 1 at 4:25












  • 1




    All you have to run is openvpn --config openvpn_profile_here
    – NerdOfCode
    Mar 13 at 17:49






  • 2




    OP states that they want to use the GUI
    – NerdOfLinux
    Mar 13 at 17:50










  • I found that one can import a *.ovpn file into the GUI using sudo nmcli connection import type openvpn file /path/to/foo.ovpn. Couldn't post an answer here, but see my answer to 'How to setup OpenVPN Client' for more details.
    – HenrikB
    Sep 1 at 4:25







1




1




All you have to run is openvpn --config openvpn_profile_here
– NerdOfCode
Mar 13 at 17:49




All you have to run is openvpn --config openvpn_profile_here
– NerdOfCode
Mar 13 at 17:49




2




2




OP states that they want to use the GUI
– NerdOfLinux
Mar 13 at 17:50




OP states that they want to use the GUI
– NerdOfLinux
Mar 13 at 17:50












I found that one can import a *.ovpn file into the GUI using sudo nmcli connection import type openvpn file /path/to/foo.ovpn. Couldn't post an answer here, but see my answer to 'How to setup OpenVPN Client' for more details.
– HenrikB
Sep 1 at 4:25




I found that one can import a *.ovpn file into the GUI using sudo nmcli connection import type openvpn file /path/to/foo.ovpn. Couldn't post an answer here, but see my answer to 'How to setup OpenVPN Client' for more details.
– HenrikB
Sep 1 at 4:25










2 Answers
2






active

oldest

votes

















up vote
5
down vote



accepted










You have to install a few packages first with:



sudo apt install openvpn network-manager-openvpn network-manager-openvpn-gnome


then, restart network-manager



sudo service network-manager restart


and try again. If it doesn't work, then try logging out and back in, if not, then try rebooting.






share|improve this answer




















  • Thanks! You made my day! Just a question: why is pptp supported by default, but does openvpn support need to be installed seperately?
    – kramer65
    Mar 14 at 7:27










  • I don't know. I guess the Ubuntu team decided that not enough people use it to make it worth being part of the standard OS.
    – NerdOfLinux
    Mar 14 at 19:50

















up vote
0
down vote













I've had trouble importing .ovpn files as well. It seems to work on some machines and not others. However, it is not difficult to set up the connection using Network Manager. Many critical settings are only accessed after you click on the "Advanced" button, perhaps you didn't look there.



Example
<general tab>
Tick "all users may connect to this network"
<VPN tab>
Set connection name
Set server name in Gateway box
Set type to Certificates (TLS)
Import user certificate XXX.crt
Import ca certificate YYY.crt
Import private key ZZZ.key
<advanced button>
Tick use LZO data compression
Tick set virtual device type, TUN name tun


If you have other settings look through the tabs to find them.






share|improve this answer



























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    5
    down vote



    accepted










    You have to install a few packages first with:



    sudo apt install openvpn network-manager-openvpn network-manager-openvpn-gnome


    then, restart network-manager



    sudo service network-manager restart


    and try again. If it doesn't work, then try logging out and back in, if not, then try rebooting.






    share|improve this answer




















    • Thanks! You made my day! Just a question: why is pptp supported by default, but does openvpn support need to be installed seperately?
      – kramer65
      Mar 14 at 7:27










    • I don't know. I guess the Ubuntu team decided that not enough people use it to make it worth being part of the standard OS.
      – NerdOfLinux
      Mar 14 at 19:50














    up vote
    5
    down vote



    accepted










    You have to install a few packages first with:



    sudo apt install openvpn network-manager-openvpn network-manager-openvpn-gnome


    then, restart network-manager



    sudo service network-manager restart


    and try again. If it doesn't work, then try logging out and back in, if not, then try rebooting.






    share|improve this answer




















    • Thanks! You made my day! Just a question: why is pptp supported by default, but does openvpn support need to be installed seperately?
      – kramer65
      Mar 14 at 7:27










    • I don't know. I guess the Ubuntu team decided that not enough people use it to make it worth being part of the standard OS.
      – NerdOfLinux
      Mar 14 at 19:50












    up vote
    5
    down vote



    accepted







    up vote
    5
    down vote



    accepted






    You have to install a few packages first with:



    sudo apt install openvpn network-manager-openvpn network-manager-openvpn-gnome


    then, restart network-manager



    sudo service network-manager restart


    and try again. If it doesn't work, then try logging out and back in, if not, then try rebooting.






    share|improve this answer












    You have to install a few packages first with:



    sudo apt install openvpn network-manager-openvpn network-manager-openvpn-gnome


    then, restart network-manager



    sudo service network-manager restart


    and try again. If it doesn't work, then try logging out and back in, if not, then try rebooting.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 13 at 17:49









    NerdOfLinux

    1,509831




    1,509831











    • Thanks! You made my day! Just a question: why is pptp supported by default, but does openvpn support need to be installed seperately?
      – kramer65
      Mar 14 at 7:27










    • I don't know. I guess the Ubuntu team decided that not enough people use it to make it worth being part of the standard OS.
      – NerdOfLinux
      Mar 14 at 19:50
















    • Thanks! You made my day! Just a question: why is pptp supported by default, but does openvpn support need to be installed seperately?
      – kramer65
      Mar 14 at 7:27










    • I don't know. I guess the Ubuntu team decided that not enough people use it to make it worth being part of the standard OS.
      – NerdOfLinux
      Mar 14 at 19:50















    Thanks! You made my day! Just a question: why is pptp supported by default, but does openvpn support need to be installed seperately?
    – kramer65
    Mar 14 at 7:27




    Thanks! You made my day! Just a question: why is pptp supported by default, but does openvpn support need to be installed seperately?
    – kramer65
    Mar 14 at 7:27












    I don't know. I guess the Ubuntu team decided that not enough people use it to make it worth being part of the standard OS.
    – NerdOfLinux
    Mar 14 at 19:50




    I don't know. I guess the Ubuntu team decided that not enough people use it to make it worth being part of the standard OS.
    – NerdOfLinux
    Mar 14 at 19:50












    up vote
    0
    down vote













    I've had trouble importing .ovpn files as well. It seems to work on some machines and not others. However, it is not difficult to set up the connection using Network Manager. Many critical settings are only accessed after you click on the "Advanced" button, perhaps you didn't look there.



    Example
    <general tab>
    Tick "all users may connect to this network"
    <VPN tab>
    Set connection name
    Set server name in Gateway box
    Set type to Certificates (TLS)
    Import user certificate XXX.crt
    Import ca certificate YYY.crt
    Import private key ZZZ.key
    <advanced button>
    Tick use LZO data compression
    Tick set virtual device type, TUN name tun


    If you have other settings look through the tabs to find them.






    share|improve this answer
























      up vote
      0
      down vote













      I've had trouble importing .ovpn files as well. It seems to work on some machines and not others. However, it is not difficult to set up the connection using Network Manager. Many critical settings are only accessed after you click on the "Advanced" button, perhaps you didn't look there.



      Example
      <general tab>
      Tick "all users may connect to this network"
      <VPN tab>
      Set connection name
      Set server name in Gateway box
      Set type to Certificates (TLS)
      Import user certificate XXX.crt
      Import ca certificate YYY.crt
      Import private key ZZZ.key
      <advanced button>
      Tick use LZO data compression
      Tick set virtual device type, TUN name tun


      If you have other settings look through the tabs to find them.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        I've had trouble importing .ovpn files as well. It seems to work on some machines and not others. However, it is not difficult to set up the connection using Network Manager. Many critical settings are only accessed after you click on the "Advanced" button, perhaps you didn't look there.



        Example
        <general tab>
        Tick "all users may connect to this network"
        <VPN tab>
        Set connection name
        Set server name in Gateway box
        Set type to Certificates (TLS)
        Import user certificate XXX.crt
        Import ca certificate YYY.crt
        Import private key ZZZ.key
        <advanced button>
        Tick use LZO data compression
        Tick set virtual device type, TUN name tun


        If you have other settings look through the tabs to find them.






        share|improve this answer












        I've had trouble importing .ovpn files as well. It seems to work on some machines and not others. However, it is not difficult to set up the connection using Network Manager. Many critical settings are only accessed after you click on the "Advanced" button, perhaps you didn't look there.



        Example
        <general tab>
        Tick "all users may connect to this network"
        <VPN tab>
        Set connection name
        Set server name in Gateway box
        Set type to Certificates (TLS)
        Import user certificate XXX.crt
        Import ca certificate YYY.crt
        Import private key ZZZ.key
        <advanced button>
        Tick use LZO data compression
        Tick set virtual device type, TUN name tun


        If you have other settings look through the tabs to find them.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 13 at 18:04









        Organic Marble

        9,92563255




        9,92563255












            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491