openvpn connects but block websites doesn't open on ubuntu 17.04












1















I use the openvpn connection for a long time to open the block websites. I have 2 computers. Desktop and laptop. I use ubuntu 16.04 on desktop and 17.04 on laptop. since I update desktop a few days ago the openvpn connection connects but doesn't work. chrome says: ERR_CONNECTION_TIMED_OUT. it means that block websites doesn't open anymore. but other websites open as usual. same issue on laptop with a fresh ubuntu 17.04 installed.
I have tested some dns on openvn connection but doesn't work. and I read some articles from other users but didn't help.
thanks for your help










share|improve this question

























  • I am from iran and many wesites are blocked just like china as you know. like twitter and facebook and google plus and many others. I use this connection on my android devices and works perfectly. please tell me what kind of information do you need.

    – ariaman
    Jun 12 '17 at 9:37













  • as I said , this connection works on other divices like android and windows devices. I have this problem since I update my 16.04 ubuntu. 3 or 4 days ago.

    – ariaman
    Jun 12 '17 at 9:42











  • no. just block websites. google.com is not blocked but plus.google.com is blocked. (for example)

    – ariaman
    Jun 12 '17 at 9:47


















1















I use the openvpn connection for a long time to open the block websites. I have 2 computers. Desktop and laptop. I use ubuntu 16.04 on desktop and 17.04 on laptop. since I update desktop a few days ago the openvpn connection connects but doesn't work. chrome says: ERR_CONNECTION_TIMED_OUT. it means that block websites doesn't open anymore. but other websites open as usual. same issue on laptop with a fresh ubuntu 17.04 installed.
I have tested some dns on openvn connection but doesn't work. and I read some articles from other users but didn't help.
thanks for your help










share|improve this question

























  • I am from iran and many wesites are blocked just like china as you know. like twitter and facebook and google plus and many others. I use this connection on my android devices and works perfectly. please tell me what kind of information do you need.

    – ariaman
    Jun 12 '17 at 9:37













  • as I said , this connection works on other divices like android and windows devices. I have this problem since I update my 16.04 ubuntu. 3 or 4 days ago.

    – ariaman
    Jun 12 '17 at 9:42











  • no. just block websites. google.com is not blocked but plus.google.com is blocked. (for example)

    – ariaman
    Jun 12 '17 at 9:47
















1












1








1








I use the openvpn connection for a long time to open the block websites. I have 2 computers. Desktop and laptop. I use ubuntu 16.04 on desktop and 17.04 on laptop. since I update desktop a few days ago the openvpn connection connects but doesn't work. chrome says: ERR_CONNECTION_TIMED_OUT. it means that block websites doesn't open anymore. but other websites open as usual. same issue on laptop with a fresh ubuntu 17.04 installed.
I have tested some dns on openvn connection but doesn't work. and I read some articles from other users but didn't help.
thanks for your help










share|improve this question
















I use the openvpn connection for a long time to open the block websites. I have 2 computers. Desktop and laptop. I use ubuntu 16.04 on desktop and 17.04 on laptop. since I update desktop a few days ago the openvpn connection connects but doesn't work. chrome says: ERR_CONNECTION_TIMED_OUT. it means that block websites doesn't open anymore. but other websites open as usual. same issue on laptop with a fresh ubuntu 17.04 installed.
I have tested some dns on openvn connection but doesn't work. and I read some articles from other users but didn't help.
thanks for your help







16.04 networking vpn 17.04 openvpn






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 12 '17 at 9:35







ariaman

















asked Jun 12 '17 at 9:27









ariamanariaman

78115




78115













  • I am from iran and many wesites are blocked just like china as you know. like twitter and facebook and google plus and many others. I use this connection on my android devices and works perfectly. please tell me what kind of information do you need.

    – ariaman
    Jun 12 '17 at 9:37













  • as I said , this connection works on other divices like android and windows devices. I have this problem since I update my 16.04 ubuntu. 3 or 4 days ago.

    – ariaman
    Jun 12 '17 at 9:42











  • no. just block websites. google.com is not blocked but plus.google.com is blocked. (for example)

    – ariaman
    Jun 12 '17 at 9:47





















  • I am from iran and many wesites are blocked just like china as you know. like twitter and facebook and google plus and many others. I use this connection on my android devices and works perfectly. please tell me what kind of information do you need.

    – ariaman
    Jun 12 '17 at 9:37













  • as I said , this connection works on other divices like android and windows devices. I have this problem since I update my 16.04 ubuntu. 3 or 4 days ago.

    – ariaman
    Jun 12 '17 at 9:42











  • no. just block websites. google.com is not blocked but plus.google.com is blocked. (for example)

    – ariaman
    Jun 12 '17 at 9:47



















I am from iran and many wesites are blocked just like china as you know. like twitter and facebook and google plus and many others. I use this connection on my android devices and works perfectly. please tell me what kind of information do you need.

– ariaman
Jun 12 '17 at 9:37







I am from iran and many wesites are blocked just like china as you know. like twitter and facebook and google plus and many others. I use this connection on my android devices and works perfectly. please tell me what kind of information do you need.

– ariaman
Jun 12 '17 at 9:37















as I said , this connection works on other divices like android and windows devices. I have this problem since I update my 16.04 ubuntu. 3 or 4 days ago.

– ariaman
Jun 12 '17 at 9:42





as I said , this connection works on other divices like android and windows devices. I have this problem since I update my 16.04 ubuntu. 3 or 4 days ago.

– ariaman
Jun 12 '17 at 9:42













no. just block websites. google.com is not blocked but plus.google.com is blocked. (for example)

– ariaman
Jun 12 '17 at 9:47







no. just block websites. google.com is not blocked but plus.google.com is blocked. (for example)

– ariaman
Jun 12 '17 at 9:47












2 Answers
2






active

oldest

votes


















0














I couldn't leave a comment to your question (due to lack of reputation points). However, I also hit this with my recent upgrade from 16.10 to 17.04. I'm not sure how I got it to work (which is why I'd rather leave a comment than use this answer form). I don't know if you're using openvpn via the command line (my situation) but if you are this worked for me:




  1. sudo systemctl stop NewtworkManager.service

  2. sudo openvpn --config "your-config-file-here.ovpn" &

  3. Wait for: "Initialization Sequence Completed" from openvpn

  4. Test that you can reach the outside world: ping www.google.com or use dig +short myip.opendns.com @resolver1.opendns.com to see that your IP address has changed.

  5. sudo pkill -TERM openvpn

  6. sudo systemctl start NetworkManager.service


After performing these steps, subsequent starts of openvpn worked normally without having to resort to stopping NetworkManager. I even rebooted the machine and tested again to verify that it survived a reboot.



I can only guess that NetworkManager was preventing openvpn from touching some system files. Either way I wouldn't consider this a fix, but rather a work-around that may/may not help you.






share|improve this answer
























  • I use openvpn with network manager. I run this command sudo systemctl stop NewtworkManager.service ) and the result is : Failed to stop NewtworkManager.service: Unit NewtworkManager.service not loaded.

    – ariaman
    Jun 13 '17 at 5:31





















0














Probably this looks like a DNS leak issue you can fix this




  1. Edit The .ovpn File


You just need to add these three lines of config into your .ovpn file. Add these to the end of file as new lines.



script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf


Explanation: OpenVPN (if you install it from Ubuntu repo) has a special script named update-resolv-conf. This script will update your /etc/resolv.conf file automatically. It will force OpenVPN to use default DNS from your .ovpn file.




  1. Run The .ovpn File


sudo openvpn --config name_of_your_file.ovpn




  1. Test DNS Leak


Browse http://dnsleaktest.com and start a standard test. See that your DNS changed into another than your ISP DNS (thus VPN's DNS). In this example, I use vpngate VPN service and Google as my DNS.






share|improve this answer








New contributor




Shersha Fn 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%2f924553%2fopenvpn-connects-but-block-websites-doesnt-open-on-ubuntu-17-04%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









    0














    I couldn't leave a comment to your question (due to lack of reputation points). However, I also hit this with my recent upgrade from 16.10 to 17.04. I'm not sure how I got it to work (which is why I'd rather leave a comment than use this answer form). I don't know if you're using openvpn via the command line (my situation) but if you are this worked for me:




    1. sudo systemctl stop NewtworkManager.service

    2. sudo openvpn --config "your-config-file-here.ovpn" &

    3. Wait for: "Initialization Sequence Completed" from openvpn

    4. Test that you can reach the outside world: ping www.google.com or use dig +short myip.opendns.com @resolver1.opendns.com to see that your IP address has changed.

    5. sudo pkill -TERM openvpn

    6. sudo systemctl start NetworkManager.service


    After performing these steps, subsequent starts of openvpn worked normally without having to resort to stopping NetworkManager. I even rebooted the machine and tested again to verify that it survived a reboot.



    I can only guess that NetworkManager was preventing openvpn from touching some system files. Either way I wouldn't consider this a fix, but rather a work-around that may/may not help you.






    share|improve this answer
























    • I use openvpn with network manager. I run this command sudo systemctl stop NewtworkManager.service ) and the result is : Failed to stop NewtworkManager.service: Unit NewtworkManager.service not loaded.

      – ariaman
      Jun 13 '17 at 5:31


















    0














    I couldn't leave a comment to your question (due to lack of reputation points). However, I also hit this with my recent upgrade from 16.10 to 17.04. I'm not sure how I got it to work (which is why I'd rather leave a comment than use this answer form). I don't know if you're using openvpn via the command line (my situation) but if you are this worked for me:




    1. sudo systemctl stop NewtworkManager.service

    2. sudo openvpn --config "your-config-file-here.ovpn" &

    3. Wait for: "Initialization Sequence Completed" from openvpn

    4. Test that you can reach the outside world: ping www.google.com or use dig +short myip.opendns.com @resolver1.opendns.com to see that your IP address has changed.

    5. sudo pkill -TERM openvpn

    6. sudo systemctl start NetworkManager.service


    After performing these steps, subsequent starts of openvpn worked normally without having to resort to stopping NetworkManager. I even rebooted the machine and tested again to verify that it survived a reboot.



    I can only guess that NetworkManager was preventing openvpn from touching some system files. Either way I wouldn't consider this a fix, but rather a work-around that may/may not help you.






    share|improve this answer
























    • I use openvpn with network manager. I run this command sudo systemctl stop NewtworkManager.service ) and the result is : Failed to stop NewtworkManager.service: Unit NewtworkManager.service not loaded.

      – ariaman
      Jun 13 '17 at 5:31
















    0












    0








    0







    I couldn't leave a comment to your question (due to lack of reputation points). However, I also hit this with my recent upgrade from 16.10 to 17.04. I'm not sure how I got it to work (which is why I'd rather leave a comment than use this answer form). I don't know if you're using openvpn via the command line (my situation) but if you are this worked for me:




    1. sudo systemctl stop NewtworkManager.service

    2. sudo openvpn --config "your-config-file-here.ovpn" &

    3. Wait for: "Initialization Sequence Completed" from openvpn

    4. Test that you can reach the outside world: ping www.google.com or use dig +short myip.opendns.com @resolver1.opendns.com to see that your IP address has changed.

    5. sudo pkill -TERM openvpn

    6. sudo systemctl start NetworkManager.service


    After performing these steps, subsequent starts of openvpn worked normally without having to resort to stopping NetworkManager. I even rebooted the machine and tested again to verify that it survived a reboot.



    I can only guess that NetworkManager was preventing openvpn from touching some system files. Either way I wouldn't consider this a fix, but rather a work-around that may/may not help you.






    share|improve this answer













    I couldn't leave a comment to your question (due to lack of reputation points). However, I also hit this with my recent upgrade from 16.10 to 17.04. I'm not sure how I got it to work (which is why I'd rather leave a comment than use this answer form). I don't know if you're using openvpn via the command line (my situation) but if you are this worked for me:




    1. sudo systemctl stop NewtworkManager.service

    2. sudo openvpn --config "your-config-file-here.ovpn" &

    3. Wait for: "Initialization Sequence Completed" from openvpn

    4. Test that you can reach the outside world: ping www.google.com or use dig +short myip.opendns.com @resolver1.opendns.com to see that your IP address has changed.

    5. sudo pkill -TERM openvpn

    6. sudo systemctl start NetworkManager.service


    After performing these steps, subsequent starts of openvpn worked normally without having to resort to stopping NetworkManager. I even rebooted the machine and tested again to verify that it survived a reboot.



    I can only guess that NetworkManager was preventing openvpn from touching some system files. Either way I wouldn't consider this a fix, but rather a work-around that may/may not help you.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jun 12 '17 at 17:34









    AntDokAntDok

    1




    1













    • I use openvpn with network manager. I run this command sudo systemctl stop NewtworkManager.service ) and the result is : Failed to stop NewtworkManager.service: Unit NewtworkManager.service not loaded.

      – ariaman
      Jun 13 '17 at 5:31





















    • I use openvpn with network manager. I run this command sudo systemctl stop NewtworkManager.service ) and the result is : Failed to stop NewtworkManager.service: Unit NewtworkManager.service not loaded.

      – ariaman
      Jun 13 '17 at 5:31



















    I use openvpn with network manager. I run this command sudo systemctl stop NewtworkManager.service ) and the result is : Failed to stop NewtworkManager.service: Unit NewtworkManager.service not loaded.

    – ariaman
    Jun 13 '17 at 5:31







    I use openvpn with network manager. I run this command sudo systemctl stop NewtworkManager.service ) and the result is : Failed to stop NewtworkManager.service: Unit NewtworkManager.service not loaded.

    – ariaman
    Jun 13 '17 at 5:31















    0














    Probably this looks like a DNS leak issue you can fix this




    1. Edit The .ovpn File


    You just need to add these three lines of config into your .ovpn file. Add these to the end of file as new lines.



    script-security 2
    up /etc/openvpn/update-resolv-conf
    down /etc/openvpn/update-resolv-conf


    Explanation: OpenVPN (if you install it from Ubuntu repo) has a special script named update-resolv-conf. This script will update your /etc/resolv.conf file automatically. It will force OpenVPN to use default DNS from your .ovpn file.




    1. Run The .ovpn File


    sudo openvpn --config name_of_your_file.ovpn




    1. Test DNS Leak


    Browse http://dnsleaktest.com and start a standard test. See that your DNS changed into another than your ISP DNS (thus VPN's DNS). In this example, I use vpngate VPN service and Google as my DNS.






    share|improve this answer








    New contributor




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

























      0














      Probably this looks like a DNS leak issue you can fix this




      1. Edit The .ovpn File


      You just need to add these three lines of config into your .ovpn file. Add these to the end of file as new lines.



      script-security 2
      up /etc/openvpn/update-resolv-conf
      down /etc/openvpn/update-resolv-conf


      Explanation: OpenVPN (if you install it from Ubuntu repo) has a special script named update-resolv-conf. This script will update your /etc/resolv.conf file automatically. It will force OpenVPN to use default DNS from your .ovpn file.




      1. Run The .ovpn File


      sudo openvpn --config name_of_your_file.ovpn




      1. Test DNS Leak


      Browse http://dnsleaktest.com and start a standard test. See that your DNS changed into another than your ISP DNS (thus VPN's DNS). In this example, I use vpngate VPN service and Google as my DNS.






      share|improve this answer








      New contributor




      Shersha Fn 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







        Probably this looks like a DNS leak issue you can fix this




        1. Edit The .ovpn File


        You just need to add these three lines of config into your .ovpn file. Add these to the end of file as new lines.



        script-security 2
        up /etc/openvpn/update-resolv-conf
        down /etc/openvpn/update-resolv-conf


        Explanation: OpenVPN (if you install it from Ubuntu repo) has a special script named update-resolv-conf. This script will update your /etc/resolv.conf file automatically. It will force OpenVPN to use default DNS from your .ovpn file.




        1. Run The .ovpn File


        sudo openvpn --config name_of_your_file.ovpn




        1. Test DNS Leak


        Browse http://dnsleaktest.com and start a standard test. See that your DNS changed into another than your ISP DNS (thus VPN's DNS). In this example, I use vpngate VPN service and Google as my DNS.






        share|improve this answer








        New contributor




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










        Probably this looks like a DNS leak issue you can fix this




        1. Edit The .ovpn File


        You just need to add these three lines of config into your .ovpn file. Add these to the end of file as new lines.



        script-security 2
        up /etc/openvpn/update-resolv-conf
        down /etc/openvpn/update-resolv-conf


        Explanation: OpenVPN (if you install it from Ubuntu repo) has a special script named update-resolv-conf. This script will update your /etc/resolv.conf file automatically. It will force OpenVPN to use default DNS from your .ovpn file.




        1. Run The .ovpn File


        sudo openvpn --config name_of_your_file.ovpn




        1. Test DNS Leak


        Browse http://dnsleaktest.com and start a standard test. See that your DNS changed into another than your ISP DNS (thus VPN's DNS). In this example, I use vpngate VPN service and Google as my DNS.







        share|improve this answer








        New contributor




        Shersha Fn 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




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









        answered 10 mins ago









        Shersha FnShersha Fn

        101




        101




        New contributor




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





        New contributor





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






        Shersha Fn 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%2f924553%2fopenvpn-connects-but-block-websites-doesnt-open-on-ubuntu-17-04%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

            GameSpot

            日野市

            Tu-95轟炸機