connect to openvpn using username and passwordSave openVPN password using network managerOpenVPN - Password Authentication OnlyHow to install openVPN server in Ubuntu 12.04 to have PPTP access using username and password?Ubuntu 14.0.4 OpenVPN connection - username and password onlyOpenvpn doesn't connect after disconnentHow to setup OpenVPN in ubuntu 16.04 desktop over a Proxy server?Can't connect to OpenVPN Access Server using Network Manager configurationOpenVpn username and password for accessing the vpn?OpenVPN using 3 systemsConfigure OpenVPN to use username and password without a specific certificate

Can a virus destroy the BIOS of a modern computer?

Do I have a twin with permutated remainders?

Neighboring nodes in the network

I'm flying to France today and my passport expires in less than 2 months

Alternative to sending password over mail?

Why do I get two different answers for this counting problem?

A reference to a well-known characterization of scattered compact spaces

How do conventional missiles fly?

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

What killed these X2 caps?

Did converts (ger tzedek) in ancient Israel own land?

What is going on with Captain Marvel's blood colour?

Assassin's bullet with mercury

Is it canonical bit space?

Today is the Center

Will google still index a page if I use a $_SESSION variable?

How to draw the figure with four pentagons?

How can I tell someone that I want to be his or her friend?

Reserved de-dupe rules

How to say in German "enjoying home comforts"

Western buddy movie with a supernatural twist where a woman turns into an eagle at the end

Where does SFDX store details about scratch orgs?

Is "remove commented out code" correct English?

What does it mean to describe someone as a butt steak?



connect to openvpn using username and password


Save openVPN password using network managerOpenVPN - Password Authentication OnlyHow to install openVPN server in Ubuntu 12.04 to have PPTP access using username and password?Ubuntu 14.0.4 OpenVPN connection - username and password onlyOpenvpn doesn't connect after disconnentHow to setup OpenVPN in ubuntu 16.04 desktop over a Proxy server?Can't connect to OpenVPN Access Server using Network Manager configurationOpenVpn username and password for accessing the vpn?OpenVPN using 3 systemsConfigure OpenVPN to use username and password without a specific certificate






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








7















Is it possible to connect to an openvpn server using a username and password. I read that you need a config file on ubuntu, but I don't have a config file.



How can I connect to my openvpn server using credentials?










share|improve this question




























    7















    Is it possible to connect to an openvpn server using a username and password. I read that you need a config file on ubuntu, but I don't have a config file.



    How can I connect to my openvpn server using credentials?










    share|improve this question
























      7












      7








      7


      3






      Is it possible to connect to an openvpn server using a username and password. I read that you need a config file on ubuntu, but I don't have a config file.



      How can I connect to my openvpn server using credentials?










      share|improve this question














      Is it possible to connect to an openvpn server using a username and password. I read that you need a config file on ubuntu, but I don't have a config file.



      How can I connect to my openvpn server using credentials?







      authentication openvpn






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 27 '12 at 11:46









      JerodevJerodev

      161129




      161129




















          2 Answers
          2






          active

          oldest

          votes


















          11














          Yes it's possible.
          To do this, you have already an OpenVPN server installed, and the user created in the server.



          The easiest openvpn client is network-manager. If you are using Ubuntu run:



          aptitude install network-manager-openvpn
          restart network-manager


          Now click on the network-manager applet, select configure VPN, and setup a new open-vpn connection.
          Set the gateway to you server
          Set the type to Password
          Point your CA to a copy of your server’s ca.crt and everything should just work



          Attached is a simple client configuration file that will work.
          Edit it to match your server’s settings where appropriate.
          You will need this and your ca.crt in the same directory.



          On linux my file is called /etc/openvpn/client.conf



          ##############################################
          # Sample client-side OpenVPN 2.0 config file.
          # for connecting to multi-client server.
          ##############################################

          # Specify that we are a client and that we
          # will be pulling certain config file directives
          # from the server.
          client

          dev tun
          proto udp

          # The hostname/IP and port of the server.
          remote my-server-2.domain 1194


          # host name of the OpenVPN server. Very useful
          # on machines which are not permanently connected
          # to the internet such as laptops.
          resolv-retry infinite

          # Most clients don't need to bind to
          # a specific local port number.
          nobind

          # Try to preserve some state across restarts.
          persist-key
          persist-tun

          # Certificate Authority
          ca ca.crt

          # Username/Password authentication is used on the server
          auth-user-pass

          # Verify server certificate by checking
          # that the certicate has the nsCertType
          # field set to "server". This is an
          # important precaution to protect against
          # a potential attack discussed here:
          # http://openvpn.net/howto.html#mitm
          #
          # To use this feature, you will need to generate
          # your server certificates with the nsCertType
          # field set to "server". The build-key-server
          # script in the easy-rsa folder will do this.
          ns-cert-type server

          # Set log file verbosity.
          verb 3

          # To start the openvpn client, simply type:
          # openvpn --config /etc/openvpn/client.conf


          That's it.






          share|improve this answer
































            0














            On the server side you need a line like:



            plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn


            The above will enable the pam plugin and make it to use the /etc/pam.d/openvpn file as config (note: file does not exist by default, you may use 'login' instead of it to validate unix credentials or set up the openvpn one with the authentication method of your choice (ie: google authenticator))



            On the client side as mentioned above you should use auth-user-pass in openvpn configfile, or if you use network manager choose "Password with Certfificates" (User + Pass + cert based auth) or the simple "Password" option (User + Pass based auth) on the Identity tab.






            share|improve this answer








            New contributor




            Lorant Nemeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.




















              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "89"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f193611%2fconnect-to-openvpn-using-username-and-password%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              11














              Yes it's possible.
              To do this, you have already an OpenVPN server installed, and the user created in the server.



              The easiest openvpn client is network-manager. If you are using Ubuntu run:



              aptitude install network-manager-openvpn
              restart network-manager


              Now click on the network-manager applet, select configure VPN, and setup a new open-vpn connection.
              Set the gateway to you server
              Set the type to Password
              Point your CA to a copy of your server’s ca.crt and everything should just work



              Attached is a simple client configuration file that will work.
              Edit it to match your server’s settings where appropriate.
              You will need this and your ca.crt in the same directory.



              On linux my file is called /etc/openvpn/client.conf



              ##############################################
              # Sample client-side OpenVPN 2.0 config file.
              # for connecting to multi-client server.
              ##############################################

              # Specify that we are a client and that we
              # will be pulling certain config file directives
              # from the server.
              client

              dev tun
              proto udp

              # The hostname/IP and port of the server.
              remote my-server-2.domain 1194


              # host name of the OpenVPN server. Very useful
              # on machines which are not permanently connected
              # to the internet such as laptops.
              resolv-retry infinite

              # Most clients don't need to bind to
              # a specific local port number.
              nobind

              # Try to preserve some state across restarts.
              persist-key
              persist-tun

              # Certificate Authority
              ca ca.crt

              # Username/Password authentication is used on the server
              auth-user-pass

              # Verify server certificate by checking
              # that the certicate has the nsCertType
              # field set to "server". This is an
              # important precaution to protect against
              # a potential attack discussed here:
              # http://openvpn.net/howto.html#mitm
              #
              # To use this feature, you will need to generate
              # your server certificates with the nsCertType
              # field set to "server". The build-key-server
              # script in the easy-rsa folder will do this.
              ns-cert-type server

              # Set log file verbosity.
              verb 3

              # To start the openvpn client, simply type:
              # openvpn --config /etc/openvpn/client.conf


              That's it.






              share|improve this answer





























                11














                Yes it's possible.
                To do this, you have already an OpenVPN server installed, and the user created in the server.



                The easiest openvpn client is network-manager. If you are using Ubuntu run:



                aptitude install network-manager-openvpn
                restart network-manager


                Now click on the network-manager applet, select configure VPN, and setup a new open-vpn connection.
                Set the gateway to you server
                Set the type to Password
                Point your CA to a copy of your server’s ca.crt and everything should just work



                Attached is a simple client configuration file that will work.
                Edit it to match your server’s settings where appropriate.
                You will need this and your ca.crt in the same directory.



                On linux my file is called /etc/openvpn/client.conf



                ##############################################
                # Sample client-side OpenVPN 2.0 config file.
                # for connecting to multi-client server.
                ##############################################

                # Specify that we are a client and that we
                # will be pulling certain config file directives
                # from the server.
                client

                dev tun
                proto udp

                # The hostname/IP and port of the server.
                remote my-server-2.domain 1194


                # host name of the OpenVPN server. Very useful
                # on machines which are not permanently connected
                # to the internet such as laptops.
                resolv-retry infinite

                # Most clients don't need to bind to
                # a specific local port number.
                nobind

                # Try to preserve some state across restarts.
                persist-key
                persist-tun

                # Certificate Authority
                ca ca.crt

                # Username/Password authentication is used on the server
                auth-user-pass

                # Verify server certificate by checking
                # that the certicate has the nsCertType
                # field set to "server". This is an
                # important precaution to protect against
                # a potential attack discussed here:
                # http://openvpn.net/howto.html#mitm
                #
                # To use this feature, you will need to generate
                # your server certificates with the nsCertType
                # field set to "server". The build-key-server
                # script in the easy-rsa folder will do this.
                ns-cert-type server

                # Set log file verbosity.
                verb 3

                # To start the openvpn client, simply type:
                # openvpn --config /etc/openvpn/client.conf


                That's it.






                share|improve this answer



























                  11












                  11








                  11







                  Yes it's possible.
                  To do this, you have already an OpenVPN server installed, and the user created in the server.



                  The easiest openvpn client is network-manager. If you are using Ubuntu run:



                  aptitude install network-manager-openvpn
                  restart network-manager


                  Now click on the network-manager applet, select configure VPN, and setup a new open-vpn connection.
                  Set the gateway to you server
                  Set the type to Password
                  Point your CA to a copy of your server’s ca.crt and everything should just work



                  Attached is a simple client configuration file that will work.
                  Edit it to match your server’s settings where appropriate.
                  You will need this and your ca.crt in the same directory.



                  On linux my file is called /etc/openvpn/client.conf



                  ##############################################
                  # Sample client-side OpenVPN 2.0 config file.
                  # for connecting to multi-client server.
                  ##############################################

                  # Specify that we are a client and that we
                  # will be pulling certain config file directives
                  # from the server.
                  client

                  dev tun
                  proto udp

                  # The hostname/IP and port of the server.
                  remote my-server-2.domain 1194


                  # host name of the OpenVPN server. Very useful
                  # on machines which are not permanently connected
                  # to the internet such as laptops.
                  resolv-retry infinite

                  # Most clients don't need to bind to
                  # a specific local port number.
                  nobind

                  # Try to preserve some state across restarts.
                  persist-key
                  persist-tun

                  # Certificate Authority
                  ca ca.crt

                  # Username/Password authentication is used on the server
                  auth-user-pass

                  # Verify server certificate by checking
                  # that the certicate has the nsCertType
                  # field set to "server". This is an
                  # important precaution to protect against
                  # a potential attack discussed here:
                  # http://openvpn.net/howto.html#mitm
                  #
                  # To use this feature, you will need to generate
                  # your server certificates with the nsCertType
                  # field set to "server". The build-key-server
                  # script in the easy-rsa folder will do this.
                  ns-cert-type server

                  # Set log file verbosity.
                  verb 3

                  # To start the openvpn client, simply type:
                  # openvpn --config /etc/openvpn/client.conf


                  That's it.






                  share|improve this answer















                  Yes it's possible.
                  To do this, you have already an OpenVPN server installed, and the user created in the server.



                  The easiest openvpn client is network-manager. If you are using Ubuntu run:



                  aptitude install network-manager-openvpn
                  restart network-manager


                  Now click on the network-manager applet, select configure VPN, and setup a new open-vpn connection.
                  Set the gateway to you server
                  Set the type to Password
                  Point your CA to a copy of your server’s ca.crt and everything should just work



                  Attached is a simple client configuration file that will work.
                  Edit it to match your server’s settings where appropriate.
                  You will need this and your ca.crt in the same directory.



                  On linux my file is called /etc/openvpn/client.conf



                  ##############################################
                  # Sample client-side OpenVPN 2.0 config file.
                  # for connecting to multi-client server.
                  ##############################################

                  # Specify that we are a client and that we
                  # will be pulling certain config file directives
                  # from the server.
                  client

                  dev tun
                  proto udp

                  # The hostname/IP and port of the server.
                  remote my-server-2.domain 1194


                  # host name of the OpenVPN server. Very useful
                  # on machines which are not permanently connected
                  # to the internet such as laptops.
                  resolv-retry infinite

                  # Most clients don't need to bind to
                  # a specific local port number.
                  nobind

                  # Try to preserve some state across restarts.
                  persist-key
                  persist-tun

                  # Certificate Authority
                  ca ca.crt

                  # Username/Password authentication is used on the server
                  auth-user-pass

                  # Verify server certificate by checking
                  # that the certicate has the nsCertType
                  # field set to "server". This is an
                  # important precaution to protect against
                  # a potential attack discussed here:
                  # http://openvpn.net/howto.html#mitm
                  #
                  # To use this feature, you will need to generate
                  # your server certificates with the nsCertType
                  # field set to "server". The build-key-server
                  # script in the easy-rsa folder will do this.
                  ns-cert-type server

                  # Set log file verbosity.
                  verb 3

                  # To start the openvpn client, simply type:
                  # openvpn --config /etc/openvpn/client.conf


                  That's it.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Apr 16 '18 at 19:23









                  Marco Roy

                  1035




                  1035










                  answered Sep 27 '12 at 12:51









                  Octávio Filipe GonçalvesOctávio Filipe Gonçalves

                  11.1k41423




                  11.1k41423























                      0














                      On the server side you need a line like:



                      plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn


                      The above will enable the pam plugin and make it to use the /etc/pam.d/openvpn file as config (note: file does not exist by default, you may use 'login' instead of it to validate unix credentials or set up the openvpn one with the authentication method of your choice (ie: google authenticator))



                      On the client side as mentioned above you should use auth-user-pass in openvpn configfile, or if you use network manager choose "Password with Certfificates" (User + Pass + cert based auth) or the simple "Password" option (User + Pass based auth) on the Identity tab.






                      share|improve this answer








                      New contributor




                      Lorant Nemeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.
























                        0














                        On the server side you need a line like:



                        plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn


                        The above will enable the pam plugin and make it to use the /etc/pam.d/openvpn file as config (note: file does not exist by default, you may use 'login' instead of it to validate unix credentials or set up the openvpn one with the authentication method of your choice (ie: google authenticator))



                        On the client side as mentioned above you should use auth-user-pass in openvpn configfile, or if you use network manager choose "Password with Certfificates" (User + Pass + cert based auth) or the simple "Password" option (User + Pass based auth) on the Identity tab.






                        share|improve this answer








                        New contributor




                        Lorant Nemeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.






















                          0












                          0








                          0







                          On the server side you need a line like:



                          plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn


                          The above will enable the pam plugin and make it to use the /etc/pam.d/openvpn file as config (note: file does not exist by default, you may use 'login' instead of it to validate unix credentials or set up the openvpn one with the authentication method of your choice (ie: google authenticator))



                          On the client side as mentioned above you should use auth-user-pass in openvpn configfile, or if you use network manager choose "Password with Certfificates" (User + Pass + cert based auth) or the simple "Password" option (User + Pass based auth) on the Identity tab.






                          share|improve this answer








                          New contributor




                          Lorant Nemeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          On the server side you need a line like:



                          plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn


                          The above will enable the pam plugin and make it to use the /etc/pam.d/openvpn file as config (note: file does not exist by default, you may use 'login' instead of it to validate unix credentials or set up the openvpn one with the authentication method of your choice (ie: google authenticator))



                          On the client side as mentioned above you should use auth-user-pass in openvpn configfile, or if you use network manager choose "Password with Certfificates" (User + Pass + cert based auth) or the simple "Password" option (User + Pass based auth) on the Identity tab.







                          share|improve this answer








                          New contributor




                          Lorant Nemeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          share|improve this answer



                          share|improve this answer






                          New contributor




                          Lorant Nemeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 3 hours ago









                          Lorant NemethLorant Nemeth

                          1




                          1




                          New contributor




                          Lorant Nemeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Lorant Nemeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Lorant Nemeth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f193611%2fconnect-to-openvpn-using-username-and-password%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

                              Where else does the Shulchan Aruch quote an authority by name?Parashat Metzora+HagadolPesach/PassoverShulchan Aruch UTF-8Anonymous glosses in the Shulchan AruchWhy is the Shulchan Aruch definitive?Siman 32, Kitzur Shulchan Aruch: UntranslatedLitvaks/Yeshivish and Shulchan AruchBuying a Shulchan AruchEnglish version of SHULCHAN ARUCHIs there any place where Shulchan Aruch rules with the Rosh against the Rif and Rambam?Are there practices where Sepharadim do not hold by Shulchan Aruch?5th part of the shulchan aruch

                              fallocate: fallocate failed: Text file busy in Ubuntu 17.04? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)defragmenting and increasing performance of old lubuntu system with swap partitionIssue with increasing the root partition from the swapthis /usr/bin/dpkg returned error || ubuntu-16.04, 64bitDefault 17.04 swap file locationHow to Resize Ubuntu 17.04 Zesty Swap file size?Ubuntu freezes from online formsMy Laptop is not starting after upgrade ubuntu 16.04 (Kernel 4.8.0-38 to 04.10.0-36)hcp: ERROR: FALLOCATE FAILED!Not sure my swap is being usedWine 3.0 asking for more virtual free swap