How to disconnect internet when VPN fails?












5















Normally I'm connected to the Internet with a VPN, but sometimes it fails and some programs may automatically start to use the default unsecure connection.



How do I disconnect all the internet until the VPN connection is back up? I want to make sure all the traffic goes exclusively over VPN.










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    5















    Normally I'm connected to the Internet with a VPN, but sometimes it fails and some programs may automatically start to use the default unsecure connection.



    How do I disconnect all the internet until the VPN connection is back up? I want to make sure all the traffic goes exclusively over VPN.










    share|improve this question














    bumped to the homepage by Community yesterday


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      5












      5








      5








      Normally I'm connected to the Internet with a VPN, but sometimes it fails and some programs may automatically start to use the default unsecure connection.



      How do I disconnect all the internet until the VPN connection is back up? I want to make sure all the traffic goes exclusively over VPN.










      share|improve this question














      Normally I'm connected to the Internet with a VPN, but sometimes it fails and some programs may automatically start to use the default unsecure connection.



      How do I disconnect all the internet until the VPN connection is back up? I want to make sure all the traffic goes exclusively over VPN.







      networking vpn






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 23 '12 at 16:14









      BobBob

      2613




      2613





      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community yesterday


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Tried unplugging the cable until VPN comes back up?



          In any case you could delete all the Wired/Wireless connections that Network Manager has stored and just leave the VPN ones there with the "automatic" option activated so when VPN comes back up it will connect to it automatically.



          enter image description here



          Just to make my point a little more clear. In the Wired, Wireless, Mobile Broadband and DSL set any connections you might have there to not automatic (Remove the Connect Automatically check from the checkbox). Or to be more drastic remove the connection completely. The only one that should be in Connect Automatically is the VPN connection you have.



          With this you should have a system that automatically connects to the VPN when it is available. When it disconnects the system will stay offline until the VPN comes back.






          share|improve this answer





















          • 1





            I'm looking for a solution to make it automatically (even if I'm not around the computer)

            – Bob
            Feb 23 '12 at 16:34











          • Then this one will work. Removing all other connections from the Wired/Wireless tabs in the network manager and leaving only the VPN one with the automatic setting will leave the PC in a state where it does not matter what other connections appear. It will connect to the VPN automatically when it appears again.

            – Luis Alvarado
            Feb 23 '12 at 16:35






          • 1





            So next I will have to manually add them back, connect back to VPN and remove the connections?

            – Bob
            Feb 23 '12 at 16:44






          • 2





            Or just simply leave them without the "Connect automatically". That way you do not need to delete them. Of course they will be in manual mode so you would need to click on them to connect them. The only one that should stay in "Connect automatically" would be the one about the VPN. If this helps remember to accept/upvote the answer. Only if it helps.

            – Luis Alvarado
            Feb 23 '12 at 16:47






          • 1





            It starts using the main connection after the VPN disconnects - same as before

            – Bob
            Feb 23 '12 at 16:54











          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%2f106990%2fhow-to-disconnect-internet-when-vpn-fails%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














          Tried unplugging the cable until VPN comes back up?



          In any case you could delete all the Wired/Wireless connections that Network Manager has stored and just leave the VPN ones there with the "automatic" option activated so when VPN comes back up it will connect to it automatically.



          enter image description here



          Just to make my point a little more clear. In the Wired, Wireless, Mobile Broadband and DSL set any connections you might have there to not automatic (Remove the Connect Automatically check from the checkbox). Or to be more drastic remove the connection completely. The only one that should be in Connect Automatically is the VPN connection you have.



          With this you should have a system that automatically connects to the VPN when it is available. When it disconnects the system will stay offline until the VPN comes back.






          share|improve this answer





















          • 1





            I'm looking for a solution to make it automatically (even if I'm not around the computer)

            – Bob
            Feb 23 '12 at 16:34











          • Then this one will work. Removing all other connections from the Wired/Wireless tabs in the network manager and leaving only the VPN one with the automatic setting will leave the PC in a state where it does not matter what other connections appear. It will connect to the VPN automatically when it appears again.

            – Luis Alvarado
            Feb 23 '12 at 16:35






          • 1





            So next I will have to manually add them back, connect back to VPN and remove the connections?

            – Bob
            Feb 23 '12 at 16:44






          • 2





            Or just simply leave them without the "Connect automatically". That way you do not need to delete them. Of course they will be in manual mode so you would need to click on them to connect them. The only one that should stay in "Connect automatically" would be the one about the VPN. If this helps remember to accept/upvote the answer. Only if it helps.

            – Luis Alvarado
            Feb 23 '12 at 16:47






          • 1





            It starts using the main connection after the VPN disconnects - same as before

            – Bob
            Feb 23 '12 at 16:54
















          0














          Tried unplugging the cable until VPN comes back up?



          In any case you could delete all the Wired/Wireless connections that Network Manager has stored and just leave the VPN ones there with the "automatic" option activated so when VPN comes back up it will connect to it automatically.



          enter image description here



          Just to make my point a little more clear. In the Wired, Wireless, Mobile Broadband and DSL set any connections you might have there to not automatic (Remove the Connect Automatically check from the checkbox). Or to be more drastic remove the connection completely. The only one that should be in Connect Automatically is the VPN connection you have.



          With this you should have a system that automatically connects to the VPN when it is available. When it disconnects the system will stay offline until the VPN comes back.






          share|improve this answer





















          • 1





            I'm looking for a solution to make it automatically (even if I'm not around the computer)

            – Bob
            Feb 23 '12 at 16:34











          • Then this one will work. Removing all other connections from the Wired/Wireless tabs in the network manager and leaving only the VPN one with the automatic setting will leave the PC in a state where it does not matter what other connections appear. It will connect to the VPN automatically when it appears again.

            – Luis Alvarado
            Feb 23 '12 at 16:35






          • 1





            So next I will have to manually add them back, connect back to VPN and remove the connections?

            – Bob
            Feb 23 '12 at 16:44






          • 2





            Or just simply leave them without the "Connect automatically". That way you do not need to delete them. Of course they will be in manual mode so you would need to click on them to connect them. The only one that should stay in "Connect automatically" would be the one about the VPN. If this helps remember to accept/upvote the answer. Only if it helps.

            – Luis Alvarado
            Feb 23 '12 at 16:47






          • 1





            It starts using the main connection after the VPN disconnects - same as before

            – Bob
            Feb 23 '12 at 16:54














          0












          0








          0







          Tried unplugging the cable until VPN comes back up?



          In any case you could delete all the Wired/Wireless connections that Network Manager has stored and just leave the VPN ones there with the "automatic" option activated so when VPN comes back up it will connect to it automatically.



          enter image description here



          Just to make my point a little more clear. In the Wired, Wireless, Mobile Broadband and DSL set any connections you might have there to not automatic (Remove the Connect Automatically check from the checkbox). Or to be more drastic remove the connection completely. The only one that should be in Connect Automatically is the VPN connection you have.



          With this you should have a system that automatically connects to the VPN when it is available. When it disconnects the system will stay offline until the VPN comes back.






          share|improve this answer















          Tried unplugging the cable until VPN comes back up?



          In any case you could delete all the Wired/Wireless connections that Network Manager has stored and just leave the VPN ones there with the "automatic" option activated so when VPN comes back up it will connect to it automatically.



          enter image description here



          Just to make my point a little more clear. In the Wired, Wireless, Mobile Broadband and DSL set any connections you might have there to not automatic (Remove the Connect Automatically check from the checkbox). Or to be more drastic remove the connection completely. The only one that should be in Connect Automatically is the VPN connection you have.



          With this you should have a system that automatically connects to the VPN when it is available. When it disconnects the system will stay offline until the VPN comes back.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 23 '12 at 16:39

























          answered Feb 23 '12 at 16:21









          Luis AlvaradoLuis Alvarado

          145k135486653




          145k135486653








          • 1





            I'm looking for a solution to make it automatically (even if I'm not around the computer)

            – Bob
            Feb 23 '12 at 16:34











          • Then this one will work. Removing all other connections from the Wired/Wireless tabs in the network manager and leaving only the VPN one with the automatic setting will leave the PC in a state where it does not matter what other connections appear. It will connect to the VPN automatically when it appears again.

            – Luis Alvarado
            Feb 23 '12 at 16:35






          • 1





            So next I will have to manually add them back, connect back to VPN and remove the connections?

            – Bob
            Feb 23 '12 at 16:44






          • 2





            Or just simply leave them without the "Connect automatically". That way you do not need to delete them. Of course they will be in manual mode so you would need to click on them to connect them. The only one that should stay in "Connect automatically" would be the one about the VPN. If this helps remember to accept/upvote the answer. Only if it helps.

            – Luis Alvarado
            Feb 23 '12 at 16:47






          • 1





            It starts using the main connection after the VPN disconnects - same as before

            – Bob
            Feb 23 '12 at 16:54














          • 1





            I'm looking for a solution to make it automatically (even if I'm not around the computer)

            – Bob
            Feb 23 '12 at 16:34











          • Then this one will work. Removing all other connections from the Wired/Wireless tabs in the network manager and leaving only the VPN one with the automatic setting will leave the PC in a state where it does not matter what other connections appear. It will connect to the VPN automatically when it appears again.

            – Luis Alvarado
            Feb 23 '12 at 16:35






          • 1





            So next I will have to manually add them back, connect back to VPN and remove the connections?

            – Bob
            Feb 23 '12 at 16:44






          • 2





            Or just simply leave them without the "Connect automatically". That way you do not need to delete them. Of course they will be in manual mode so you would need to click on them to connect them. The only one that should stay in "Connect automatically" would be the one about the VPN. If this helps remember to accept/upvote the answer. Only if it helps.

            – Luis Alvarado
            Feb 23 '12 at 16:47






          • 1





            It starts using the main connection after the VPN disconnects - same as before

            – Bob
            Feb 23 '12 at 16:54








          1




          1





          I'm looking for a solution to make it automatically (even if I'm not around the computer)

          – Bob
          Feb 23 '12 at 16:34





          I'm looking for a solution to make it automatically (even if I'm not around the computer)

          – Bob
          Feb 23 '12 at 16:34













          Then this one will work. Removing all other connections from the Wired/Wireless tabs in the network manager and leaving only the VPN one with the automatic setting will leave the PC in a state where it does not matter what other connections appear. It will connect to the VPN automatically when it appears again.

          – Luis Alvarado
          Feb 23 '12 at 16:35





          Then this one will work. Removing all other connections from the Wired/Wireless tabs in the network manager and leaving only the VPN one with the automatic setting will leave the PC in a state where it does not matter what other connections appear. It will connect to the VPN automatically when it appears again.

          – Luis Alvarado
          Feb 23 '12 at 16:35




          1




          1





          So next I will have to manually add them back, connect back to VPN and remove the connections?

          – Bob
          Feb 23 '12 at 16:44





          So next I will have to manually add them back, connect back to VPN and remove the connections?

          – Bob
          Feb 23 '12 at 16:44




          2




          2





          Or just simply leave them without the "Connect automatically". That way you do not need to delete them. Of course they will be in manual mode so you would need to click on them to connect them. The only one that should stay in "Connect automatically" would be the one about the VPN. If this helps remember to accept/upvote the answer. Only if it helps.

          – Luis Alvarado
          Feb 23 '12 at 16:47





          Or just simply leave them without the "Connect automatically". That way you do not need to delete them. Of course they will be in manual mode so you would need to click on them to connect them. The only one that should stay in "Connect automatically" would be the one about the VPN. If this helps remember to accept/upvote the answer. Only if it helps.

          – Luis Alvarado
          Feb 23 '12 at 16:47




          1




          1





          It starts using the main connection after the VPN disconnects - same as before

          – Bob
          Feb 23 '12 at 16:54





          It starts using the main connection after the VPN disconnects - same as before

          – Bob
          Feb 23 '12 at 16:54


















          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%2f106990%2fhow-to-disconnect-internet-when-vpn-fails%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

          How did Captain America manage to do this?

          迪纳利

          南乌拉尔铁路局