How to disconnect internet when VPN fails?
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
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.
add a comment |
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
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.
add a comment |
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
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
networking vpn
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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.
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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.
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
add a comment |
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.
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.
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
add a comment |
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.
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.
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.
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.
edited Feb 23 '12 at 16:39
answered Feb 23 '12 at 16:21
Luis Alvarado♦Luis 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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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