OpenVPN - no internet on second device after reinstalling on Ubuntu 16.04











up vote
0
down vote

favorite












My VPN started disconnecting when I used the same VPN settings on 2 separate devices (should support up to 3 devices though).
I tried reinstalling VPN software on the 2nd device before removing all parts of it which might be the problem now.



Can installing over an existing installation cause problems?



It now works fine on the device I haven't changed anything on, but the other says I now have a VPN connection (little lock in the corner) but when I open the browser there is no internet connection.



As soon as I disconnect the VPN I get access again.



Can anyone suggest what to do, or should look at changing/deleting/reinstalling?



Any possible solution?



How do I delete/uninstall everything I might have installed for VPN that could be causing conflict, in order to reinstall without duplicate application conflict. (this might be the problem...how can I tell?)










share|improve this question
























  • try this askubuntu.com/a/713066/603891
    – janasaiarun
    Nov 5 at 12:18










  • Try not to shout... And make appropriate use of "?".
    – Yufenyuy Veyeh Dider
    Dec 1 at 2:54










  • You can check again your encryption settings. When you do import via the GUI the GUI on 16.04 tends to set the encryption incorrectly. Set it again via GUI and you should be fine.
    – kukulo
    Dec 1 at 8:03















up vote
0
down vote

favorite












My VPN started disconnecting when I used the same VPN settings on 2 separate devices (should support up to 3 devices though).
I tried reinstalling VPN software on the 2nd device before removing all parts of it which might be the problem now.



Can installing over an existing installation cause problems?



It now works fine on the device I haven't changed anything on, but the other says I now have a VPN connection (little lock in the corner) but when I open the browser there is no internet connection.



As soon as I disconnect the VPN I get access again.



Can anyone suggest what to do, or should look at changing/deleting/reinstalling?



Any possible solution?



How do I delete/uninstall everything I might have installed for VPN that could be causing conflict, in order to reinstall without duplicate application conflict. (this might be the problem...how can I tell?)










share|improve this question
























  • try this askubuntu.com/a/713066/603891
    – janasaiarun
    Nov 5 at 12:18










  • Try not to shout... And make appropriate use of "?".
    – Yufenyuy Veyeh Dider
    Dec 1 at 2:54










  • You can check again your encryption settings. When you do import via the GUI the GUI on 16.04 tends to set the encryption incorrectly. Set it again via GUI and you should be fine.
    – kukulo
    Dec 1 at 8:03













up vote
0
down vote

favorite









up vote
0
down vote

favorite











My VPN started disconnecting when I used the same VPN settings on 2 separate devices (should support up to 3 devices though).
I tried reinstalling VPN software on the 2nd device before removing all parts of it which might be the problem now.



Can installing over an existing installation cause problems?



It now works fine on the device I haven't changed anything on, but the other says I now have a VPN connection (little lock in the corner) but when I open the browser there is no internet connection.



As soon as I disconnect the VPN I get access again.



Can anyone suggest what to do, or should look at changing/deleting/reinstalling?



Any possible solution?



How do I delete/uninstall everything I might have installed for VPN that could be causing conflict, in order to reinstall without duplicate application conflict. (this might be the problem...how can I tell?)










share|improve this question















My VPN started disconnecting when I used the same VPN settings on 2 separate devices (should support up to 3 devices though).
I tried reinstalling VPN software on the 2nd device before removing all parts of it which might be the problem now.



Can installing over an existing installation cause problems?



It now works fine on the device I haven't changed anything on, but the other says I now have a VPN connection (little lock in the corner) but when I open the browser there is no internet connection.



As soon as I disconnect the VPN I get access again.



Can anyone suggest what to do, or should look at changing/deleting/reinstalling?



Any possible solution?



How do I delete/uninstall everything I might have installed for VPN that could be causing conflict, in order to reinstall without duplicate application conflict. (this might be the problem...how can I tell?)







vpn






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 1 at 6:11









Zanna

49.4k13127236




49.4k13127236










asked Nov 5 at 9:33









TED

13




13












  • try this askubuntu.com/a/713066/603891
    – janasaiarun
    Nov 5 at 12:18










  • Try not to shout... And make appropriate use of "?".
    – Yufenyuy Veyeh Dider
    Dec 1 at 2:54










  • You can check again your encryption settings. When you do import via the GUI the GUI on 16.04 tends to set the encryption incorrectly. Set it again via GUI and you should be fine.
    – kukulo
    Dec 1 at 8:03


















  • try this askubuntu.com/a/713066/603891
    – janasaiarun
    Nov 5 at 12:18










  • Try not to shout... And make appropriate use of "?".
    – Yufenyuy Veyeh Dider
    Dec 1 at 2:54










  • You can check again your encryption settings. When you do import via the GUI the GUI on 16.04 tends to set the encryption incorrectly. Set it again via GUI and you should be fine.
    – kukulo
    Dec 1 at 8:03
















try this askubuntu.com/a/713066/603891
– janasaiarun
Nov 5 at 12:18




try this askubuntu.com/a/713066/603891
– janasaiarun
Nov 5 at 12:18












Try not to shout... And make appropriate use of "?".
– Yufenyuy Veyeh Dider
Dec 1 at 2:54




Try not to shout... And make appropriate use of "?".
– Yufenyuy Veyeh Dider
Dec 1 at 2:54












You can check again your encryption settings. When you do import via the GUI the GUI on 16.04 tends to set the encryption incorrectly. Set it again via GUI and you should be fine.
– kukulo
Dec 1 at 8:03




You can check again your encryption settings. When you do import via the GUI the GUI on 16.04 tends to set the encryption incorrectly. Set it again via GUI and you should be fine.
– kukulo
Dec 1 at 8:03










2 Answers
2






active

oldest

votes

















up vote
0
down vote













The default Openvpn configuration supports only one client per one client key. Try to generate more client keys, when you want more client connections.



The no internet access part of your question:



Try to add a following line to your iptables rules:



iptables -t nat POSTROUTING -s 10.0.0.0/24 -o br-lan -j MASQUERADE


The 10.0.0.0 should be replaced with your Openvpn ip address and br-lan should be replaced with your physical or virtual lan interface (this depends on your setup).






share|improve this answer






























    up vote
    0
    down vote













    If you use on your devices same config and certificates you need add to server config



    duplicate-cn


    and restart openvpn service.
    OR run openvpn service with flag



    --duplicate-cn


    Then you can connect to your server from 2+ clients with same configs.






    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',
      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%2f1090166%2fopenvpn-no-internet-on-second-device-after-reinstalling-on-ubuntu-16-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








      up vote
      0
      down vote













      The default Openvpn configuration supports only one client per one client key. Try to generate more client keys, when you want more client connections.



      The no internet access part of your question:



      Try to add a following line to your iptables rules:



      iptables -t nat POSTROUTING -s 10.0.0.0/24 -o br-lan -j MASQUERADE


      The 10.0.0.0 should be replaced with your Openvpn ip address and br-lan should be replaced with your physical or virtual lan interface (this depends on your setup).






      share|improve this answer



























        up vote
        0
        down vote













        The default Openvpn configuration supports only one client per one client key. Try to generate more client keys, when you want more client connections.



        The no internet access part of your question:



        Try to add a following line to your iptables rules:



        iptables -t nat POSTROUTING -s 10.0.0.0/24 -o br-lan -j MASQUERADE


        The 10.0.0.0 should be replaced with your Openvpn ip address and br-lan should be replaced with your physical or virtual lan interface (this depends on your setup).






        share|improve this answer

























          up vote
          0
          down vote










          up vote
          0
          down vote









          The default Openvpn configuration supports only one client per one client key. Try to generate more client keys, when you want more client connections.



          The no internet access part of your question:



          Try to add a following line to your iptables rules:



          iptables -t nat POSTROUTING -s 10.0.0.0/24 -o br-lan -j MASQUERADE


          The 10.0.0.0 should be replaced with your Openvpn ip address and br-lan should be replaced with your physical or virtual lan interface (this depends on your setup).






          share|improve this answer














          The default Openvpn configuration supports only one client per one client key. Try to generate more client keys, when you want more client connections.



          The no internet access part of your question:



          Try to add a following line to your iptables rules:



          iptables -t nat POSTROUTING -s 10.0.0.0/24 -o br-lan -j MASQUERADE


          The 10.0.0.0 should be replaced with your Openvpn ip address and br-lan should be replaced with your physical or virtual lan interface (this depends on your setup).







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 5 at 11:44

























          answered Nov 5 at 11:37









          kukulo

          1,290418




          1,290418
























              up vote
              0
              down vote













              If you use on your devices same config and certificates you need add to server config



              duplicate-cn


              and restart openvpn service.
              OR run openvpn service with flag



              --duplicate-cn


              Then you can connect to your server from 2+ clients with same configs.






              share|improve this answer

























                up vote
                0
                down vote













                If you use on your devices same config and certificates you need add to server config



                duplicate-cn


                and restart openvpn service.
                OR run openvpn service with flag



                --duplicate-cn


                Then you can connect to your server from 2+ clients with same configs.






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  If you use on your devices same config and certificates you need add to server config



                  duplicate-cn


                  and restart openvpn service.
                  OR run openvpn service with flag



                  --duplicate-cn


                  Then you can connect to your server from 2+ clients with same configs.






                  share|improve this answer












                  If you use on your devices same config and certificates you need add to server config



                  duplicate-cn


                  and restart openvpn service.
                  OR run openvpn service with flag



                  --duplicate-cn


                  Then you can connect to your server from 2+ clients with same configs.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 5 at 11:57









                  mature

                  1,441421




                  1,441421






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f1090166%2fopenvpn-no-internet-on-second-device-after-reinstalling-on-ubuntu-16-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

                      Ellipse (mathématiques)

                      Quarter-circle Tiles

                      Mont Emei