Linux OpenVPN systemctl list-units configuration Unicorn Meta Zoo #1: Why another podcast? ...

What's the difference between using dependency injection with a container and using a service locator?

Why isn't everyone flabbergasted about Bran's "gift"?

How to open locks without disable device?

Why did Israel vote against lifting the American embargo on Cuba?

Multiple options vs single option UI

Arriving in Atlanta after US Preclearance in Dublin. Will I go through TSA security in Atlanta to transfer to a connecting flight?

c++ diamond problem - How to call base method only once

Do I need to protect SFP ports and optics from dust/contaminants? If so, how?

What is the best way to deal with NPC-NPC combat?

What if Force was not Mass times Acceleration?

How to keep bees out of canned beverages?

Book with legacy programming code on a space ship that the main character hacks to escape

Did the Roman Empire have penal colonies?

With indentation set to `0em`, when using a line break, there is still an indentation of a size of a space

How to count in linear time worst-case?

Trumpet valves, lengths, and pitch

Multiple fireplaces in an apartment building?

Suing a Police Officer Instead of the Police Department

Check if a string is entirely made of the same substring

What is the ongoing value of the Kanban board to the developers as opposed to management

What was Apollo 13's "Little Jolt" after MECO?

Is a 5 watt UHF/VHF handheld considered QRP?

Is Electric Central Heating worth it if using Solar Panels?

Implementing 3DES algorithm in Java: is my code secure?



Linux OpenVPN systemctl list-units configuration



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraUnable to connect to OpenVPN serverOpenVPN on router, router requirements?can't vnc to a machine connected through openvpnOpenVPN server forwards DNS and Traffic to private + WWANOpenVPN client fails to activate pushed DHCP options for DNS and DOMAINCan't SSH via router port-forward when openvpn client runningConnect to a VPN (OpenVPN) from a docker service on swarmProper configuration for Quagga OSPF on an OpenVPN networkOpenVPN - Performance issues - Different bandwith on different client systems but same server - Windows & LinuxConnecting to OpenVPN but unable to do anything but ping on WAN





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have set up OpenVPN client on my linux laptop (debian based).



It works by manually starting things up. However, I had tried to do this previously with little success.



I checked my processes, to see what have spun up. I noticed 2 openvpn processes. I noticed the client process. That I expected. However, I did not expect a openvpn which appears to be starting the server mode of the service.



I look at systemctl to see what units were listed, active, etc.
systemctl list-units | grep openvpn



There were 5 units listed.



openvpn.service
openvpn@client.service
openvpn@.service
openvpn@server.service
system-openvpn.slice



i recognize the as that is the provider I am connecting to. However, I do not recognize the rest.



My first question is



A) Can i just disable/remove them all and enable/start the one I want.



B) what is the command(s) that I should use to do the above task.



Thanks.










share|improve this question







New contributor




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



























    0















    I have set up OpenVPN client on my linux laptop (debian based).



    It works by manually starting things up. However, I had tried to do this previously with little success.



    I checked my processes, to see what have spun up. I noticed 2 openvpn processes. I noticed the client process. That I expected. However, I did not expect a openvpn which appears to be starting the server mode of the service.



    I look at systemctl to see what units were listed, active, etc.
    systemctl list-units | grep openvpn



    There were 5 units listed.



    openvpn.service
    openvpn@client.service
    openvpn@.service
    openvpn@server.service
    system-openvpn.slice



    i recognize the as that is the provider I am connecting to. However, I do not recognize the rest.



    My first question is



    A) Can i just disable/remove them all and enable/start the one I want.



    B) what is the command(s) that I should use to do the above task.



    Thanks.










    share|improve this question







    New contributor




    xOrMalware 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








      I have set up OpenVPN client on my linux laptop (debian based).



      It works by manually starting things up. However, I had tried to do this previously with little success.



      I checked my processes, to see what have spun up. I noticed 2 openvpn processes. I noticed the client process. That I expected. However, I did not expect a openvpn which appears to be starting the server mode of the service.



      I look at systemctl to see what units were listed, active, etc.
      systemctl list-units | grep openvpn



      There were 5 units listed.



      openvpn.service
      openvpn@client.service
      openvpn@.service
      openvpn@server.service
      system-openvpn.slice



      i recognize the as that is the provider I am connecting to. However, I do not recognize the rest.



      My first question is



      A) Can i just disable/remove them all and enable/start the one I want.



      B) what is the command(s) that I should use to do the above task.



      Thanks.










      share|improve this question







      New contributor




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












      I have set up OpenVPN client on my linux laptop (debian based).



      It works by manually starting things up. However, I had tried to do this previously with little success.



      I checked my processes, to see what have spun up. I noticed 2 openvpn processes. I noticed the client process. That I expected. However, I did not expect a openvpn which appears to be starting the server mode of the service.



      I look at systemctl to see what units were listed, active, etc.
      systemctl list-units | grep openvpn



      There were 5 units listed.



      openvpn.service
      openvpn@client.service
      openvpn@.service
      openvpn@server.service
      system-openvpn.slice



      i recognize the as that is the provider I am connecting to. However, I do not recognize the rest.



      My first question is



      A) Can i just disable/remove them all and enable/start the one I want.



      B) what is the command(s) that I should use to do the above task.



      Thanks.







      linux openvpn






      share|improve this question







      New contributor




      xOrMalware 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 question







      New contributor




      xOrMalware 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 question




      share|improve this question






      New contributor




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









      asked 14 hours ago









      xOrMalwarexOrMalware

      11




      11




      New contributor




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





      New contributor





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






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






















          1 Answer
          1






          active

          oldest

          votes


















          0















          Can i just disable/remove them all and enable/start the one I want.




          Yes, you can. However, keep in mind that 2 of those are "meta" services that'd always work and 1 is a slice.



          The services openvpn.service, openvpn@.service will always work and you shouldn't worry about them. And system-openvpn.slice is also something you shouldn't worry about, it's like a cgroup in which all openvpn services run.



          As you've listed the services that are running, we can see that the important ones are two:



          openvpn@client.service
          openvpn@server.service


          You can disable the server service with the following command:



          systemctl disable openvpn@server.service


          I suggest the rest be left alone. Read below if you want to know why the openvpn@server.service is starting like it is.





          The client services is running as expected, but the most likely reason why the openvpn@server.service is the following systemd configuration for openvpn@.service:



          ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid


          This means that openvpn can start seperate services for seperate configuration files in your /etc/openvpn/ directory. If openvpn@server.service is running, you most likely have a /etc/openvpn/server.config. Nonetheless, you can still disable it.






          what is the command(s) that I should use to do the above task.




          The most common commands you can use are as follows:



          1. Disabling/enabling a service:



          systemctl disable/enable service_name.service


          2. Starting/stopping/restarting a service:



          systemctl start/stop/restart service_name.service


          To read more: systemctl manual page






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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
            });


            }
            });






            xOrMalware is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429025%2flinux-openvpn-systemctl-list-units-configuration%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            Can i just disable/remove them all and enable/start the one I want.




            Yes, you can. However, keep in mind that 2 of those are "meta" services that'd always work and 1 is a slice.



            The services openvpn.service, openvpn@.service will always work and you shouldn't worry about them. And system-openvpn.slice is also something you shouldn't worry about, it's like a cgroup in which all openvpn services run.



            As you've listed the services that are running, we can see that the important ones are two:



            openvpn@client.service
            openvpn@server.service


            You can disable the server service with the following command:



            systemctl disable openvpn@server.service


            I suggest the rest be left alone. Read below if you want to know why the openvpn@server.service is starting like it is.





            The client services is running as expected, but the most likely reason why the openvpn@server.service is the following systemd configuration for openvpn@.service:



            ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid


            This means that openvpn can start seperate services for seperate configuration files in your /etc/openvpn/ directory. If openvpn@server.service is running, you most likely have a /etc/openvpn/server.config. Nonetheless, you can still disable it.






            what is the command(s) that I should use to do the above task.




            The most common commands you can use are as follows:



            1. Disabling/enabling a service:



            systemctl disable/enable service_name.service


            2. Starting/stopping/restarting a service:



            systemctl start/stop/restart service_name.service


            To read more: systemctl manual page






            share|improve this answer




























              0















              Can i just disable/remove them all and enable/start the one I want.




              Yes, you can. However, keep in mind that 2 of those are "meta" services that'd always work and 1 is a slice.



              The services openvpn.service, openvpn@.service will always work and you shouldn't worry about them. And system-openvpn.slice is also something you shouldn't worry about, it's like a cgroup in which all openvpn services run.



              As you've listed the services that are running, we can see that the important ones are two:



              openvpn@client.service
              openvpn@server.service


              You can disable the server service with the following command:



              systemctl disable openvpn@server.service


              I suggest the rest be left alone. Read below if you want to know why the openvpn@server.service is starting like it is.





              The client services is running as expected, but the most likely reason why the openvpn@server.service is the following systemd configuration for openvpn@.service:



              ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid


              This means that openvpn can start seperate services for seperate configuration files in your /etc/openvpn/ directory. If openvpn@server.service is running, you most likely have a /etc/openvpn/server.config. Nonetheless, you can still disable it.






              what is the command(s) that I should use to do the above task.




              The most common commands you can use are as follows:



              1. Disabling/enabling a service:



              systemctl disable/enable service_name.service


              2. Starting/stopping/restarting a service:



              systemctl start/stop/restart service_name.service


              To read more: systemctl manual page






              share|improve this answer


























                0












                0








                0








                Can i just disable/remove them all and enable/start the one I want.




                Yes, you can. However, keep in mind that 2 of those are "meta" services that'd always work and 1 is a slice.



                The services openvpn.service, openvpn@.service will always work and you shouldn't worry about them. And system-openvpn.slice is also something you shouldn't worry about, it's like a cgroup in which all openvpn services run.



                As you've listed the services that are running, we can see that the important ones are two:



                openvpn@client.service
                openvpn@server.service


                You can disable the server service with the following command:



                systemctl disable openvpn@server.service


                I suggest the rest be left alone. Read below if you want to know why the openvpn@server.service is starting like it is.





                The client services is running as expected, but the most likely reason why the openvpn@server.service is the following systemd configuration for openvpn@.service:



                ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid


                This means that openvpn can start seperate services for seperate configuration files in your /etc/openvpn/ directory. If openvpn@server.service is running, you most likely have a /etc/openvpn/server.config. Nonetheless, you can still disable it.






                what is the command(s) that I should use to do the above task.




                The most common commands you can use are as follows:



                1. Disabling/enabling a service:



                systemctl disable/enable service_name.service


                2. Starting/stopping/restarting a service:



                systemctl start/stop/restart service_name.service


                To read more: systemctl manual page






                share|improve this answer














                Can i just disable/remove them all and enable/start the one I want.




                Yes, you can. However, keep in mind that 2 of those are "meta" services that'd always work and 1 is a slice.



                The services openvpn.service, openvpn@.service will always work and you shouldn't worry about them. And system-openvpn.slice is also something you shouldn't worry about, it's like a cgroup in which all openvpn services run.



                As you've listed the services that are running, we can see that the important ones are two:



                openvpn@client.service
                openvpn@server.service


                You can disable the server service with the following command:



                systemctl disable openvpn@server.service


                I suggest the rest be left alone. Read below if you want to know why the openvpn@server.service is starting like it is.





                The client services is running as expected, but the most likely reason why the openvpn@server.service is the following systemd configuration for openvpn@.service:



                ExecStart=/usr/sbin/openvpn --daemon ovpn-%i --status /run/openvpn/%i.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid


                This means that openvpn can start seperate services for seperate configuration files in your /etc/openvpn/ directory. If openvpn@server.service is running, you most likely have a /etc/openvpn/server.config. Nonetheless, you can still disable it.






                what is the command(s) that I should use to do the above task.




                The most common commands you can use are as follows:



                1. Disabling/enabling a service:



                systemctl disable/enable service_name.service


                2. Starting/stopping/restarting a service:



                systemctl start/stop/restart service_name.service


                To read more: systemctl manual page







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 13 hours ago









                FanatiqueFanatique

                1,9861418




                1,9861418






















                    xOrMalware is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    xOrMalware is a new contributor. Be nice, and check out our Code of Conduct.













                    xOrMalware is a new contributor. Be nice, and check out our Code of Conduct.












                    xOrMalware is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1429025%2flinux-openvpn-systemctl-list-units-configuration%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

                    Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

                    Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...