DNScrypt proxy and Ubuntu 16.04 - can't run it on startup












1















I have upgraded to Ubuntu 16.04 and I have installed dnscrypt-proxy from repository.
Then I have just edited the /etc/default/dnscrypt-proxy file changing the DNSCRYPT_PROXY_RESOLVER_NAME="" line with DNSCRYPT_PROXY_RESOLVER_NAME=cisco.
After that I have just ran the following commands:



sudo service dnscrypt-proxy stop
sudo service dnscrypt-proxy start


and everything was working fine.



The problem is that after reboot my internet connection does not work and I have to run this again:



sudo service dnscrypt-proxy stop
sudo service dnscrypt-proxy start


to make it work.
What I need is a way to make dnscrypt-proxy starts automatically at startup like it used to work before upgrading to 16.04.



I tried to put those commands in /etc/rc.local file but sometimes it did not work.
Also I created a bash script with those commands and I made it run at startup, but still no luck.



Could you help me?



Thanks










share|improve this question


















  • 2





    Note that cisco keeps logs of your connections, you may wanna try another one from the list.

    – lf_araujo
    Sep 26 '16 at 2:18
















1















I have upgraded to Ubuntu 16.04 and I have installed dnscrypt-proxy from repository.
Then I have just edited the /etc/default/dnscrypt-proxy file changing the DNSCRYPT_PROXY_RESOLVER_NAME="" line with DNSCRYPT_PROXY_RESOLVER_NAME=cisco.
After that I have just ran the following commands:



sudo service dnscrypt-proxy stop
sudo service dnscrypt-proxy start


and everything was working fine.



The problem is that after reboot my internet connection does not work and I have to run this again:



sudo service dnscrypt-proxy stop
sudo service dnscrypt-proxy start


to make it work.
What I need is a way to make dnscrypt-proxy starts automatically at startup like it used to work before upgrading to 16.04.



I tried to put those commands in /etc/rc.local file but sometimes it did not work.
Also I created a bash script with those commands and I made it run at startup, but still no luck.



Could you help me?



Thanks










share|improve this question


















  • 2





    Note that cisco keeps logs of your connections, you may wanna try another one from the list.

    – lf_araujo
    Sep 26 '16 at 2:18














1












1








1


2






I have upgraded to Ubuntu 16.04 and I have installed dnscrypt-proxy from repository.
Then I have just edited the /etc/default/dnscrypt-proxy file changing the DNSCRYPT_PROXY_RESOLVER_NAME="" line with DNSCRYPT_PROXY_RESOLVER_NAME=cisco.
After that I have just ran the following commands:



sudo service dnscrypt-proxy stop
sudo service dnscrypt-proxy start


and everything was working fine.



The problem is that after reboot my internet connection does not work and I have to run this again:



sudo service dnscrypt-proxy stop
sudo service dnscrypt-proxy start


to make it work.
What I need is a way to make dnscrypt-proxy starts automatically at startup like it used to work before upgrading to 16.04.



I tried to put those commands in /etc/rc.local file but sometimes it did not work.
Also I created a bash script with those commands and I made it run at startup, but still no luck.



Could you help me?



Thanks










share|improve this question














I have upgraded to Ubuntu 16.04 and I have installed dnscrypt-proxy from repository.
Then I have just edited the /etc/default/dnscrypt-proxy file changing the DNSCRYPT_PROXY_RESOLVER_NAME="" line with DNSCRYPT_PROXY_RESOLVER_NAME=cisco.
After that I have just ran the following commands:



sudo service dnscrypt-proxy stop
sudo service dnscrypt-proxy start


and everything was working fine.



The problem is that after reboot my internet connection does not work and I have to run this again:



sudo service dnscrypt-proxy stop
sudo service dnscrypt-proxy start


to make it work.
What I need is a way to make dnscrypt-proxy starts automatically at startup like it used to work before upgrading to 16.04.



I tried to put those commands in /etc/rc.local file but sometimes it did not work.
Also I created a bash script with those commands and I made it run at startup, but still no luck.



Could you help me?



Thanks







networking dnscrypt-proxy






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 3 '16 at 5:48









FrankFrank

65022136




65022136








  • 2





    Note that cisco keeps logs of your connections, you may wanna try another one from the list.

    – lf_araujo
    Sep 26 '16 at 2:18














  • 2





    Note that cisco keeps logs of your connections, you may wanna try another one from the list.

    – lf_araujo
    Sep 26 '16 at 2:18








2




2





Note that cisco keeps logs of your connections, you may wanna try another one from the list.

– lf_araujo
Sep 26 '16 at 2:18





Note that cisco keeps logs of your connections, you may wanna try another one from the list.

– lf_araujo
Sep 26 '16 at 2:18










1 Answer
1






active

oldest

votes


















0














The following things helped me:




  • run sudo systemctl edit --full dnscrypt-proxy.service


  • replace



    After=network.target iptables.service firewalld.service


    to



    After=network.target
    Before=nss-lookup.target


  • run sudo systemctl edit --full dnscrypt-proxy.socket


  • delete After=network.target


Also /etc/systemd/system/dnscrypt-proxy.service and /etc/systemd/system/dnscrypt-proxy.socket can be replaced with their latest versions.






share|improve this answer

























    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%2f820334%2fdnscrypt-proxy-and-ubuntu-16-04-cant-run-it-on-startup%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














    The following things helped me:




    • run sudo systemctl edit --full dnscrypt-proxy.service


    • replace



      After=network.target iptables.service firewalld.service


      to



      After=network.target
      Before=nss-lookup.target


    • run sudo systemctl edit --full dnscrypt-proxy.socket


    • delete After=network.target


    Also /etc/systemd/system/dnscrypt-proxy.service and /etc/systemd/system/dnscrypt-proxy.socket can be replaced with their latest versions.






    share|improve this answer






























      0














      The following things helped me:




      • run sudo systemctl edit --full dnscrypt-proxy.service


      • replace



        After=network.target iptables.service firewalld.service


        to



        After=network.target
        Before=nss-lookup.target


      • run sudo systemctl edit --full dnscrypt-proxy.socket


      • delete After=network.target


      Also /etc/systemd/system/dnscrypt-proxy.service and /etc/systemd/system/dnscrypt-proxy.socket can be replaced with their latest versions.






      share|improve this answer




























        0












        0








        0







        The following things helped me:




        • run sudo systemctl edit --full dnscrypt-proxy.service


        • replace



          After=network.target iptables.service firewalld.service


          to



          After=network.target
          Before=nss-lookup.target


        • run sudo systemctl edit --full dnscrypt-proxy.socket


        • delete After=network.target


        Also /etc/systemd/system/dnscrypt-proxy.service and /etc/systemd/system/dnscrypt-proxy.socket can be replaced with their latest versions.






        share|improve this answer















        The following things helped me:




        • run sudo systemctl edit --full dnscrypt-proxy.service


        • replace



          After=network.target iptables.service firewalld.service


          to



          After=network.target
          Before=nss-lookup.target


        • run sudo systemctl edit --full dnscrypt-proxy.socket


        • delete After=network.target


        Also /etc/systemd/system/dnscrypt-proxy.service and /etc/systemd/system/dnscrypt-proxy.socket can be replaced with their latest versions.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 27 '16 at 12:02

























        answered Sep 24 '16 at 21:00









        popov895popov895

        262




        262






























            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%2f820334%2fdnscrypt-proxy-and-ubuntu-16-04-cant-run-it-on-startup%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

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            張江高科駅