OpenVPN connects but block websites doesn't open on Ubuntu 17.04
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
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 OpenVPN connection but doesn't work and I read some articles from other users but didn't help.
16.04 networking vpn 17.04 openvpn
add a comment |
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 OpenVPN connection but doesn't work and I read some articles from other users but didn't help.
16.04 networking vpn 17.04 openvpn
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
add a comment |
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 OpenVPN connection but doesn't work and I read some articles from other users but didn't help.
16.04 networking vpn 17.04 openvpn
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 OpenVPN connection but doesn't work and I read some articles from other users but didn't help.
16.04 networking vpn 17.04 openvpn
16.04 networking vpn 17.04 openvpn
edited Feb 15 at 8:56
mature
2,2054933
2,2054933
asked Jun 12 '17 at 9:27
ariamanariaman
83115
83115
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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:
sudo systemctl stop NewtworkManager.service
sudo openvpn --config "your-config-file-here.ovpn" &
- Wait for: "Initialization Sequence Completed" from openvpn
- Test that you can reach the outside world:
ping www.google.com
or usedig +short myip.opendns.com @resolver1.opendns.com
to see that your IP address has changed. sudo pkill -TERM openvpn
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.
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
add a comment |
Probably this looks like a DNS leak issue you can fix this
- 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.
- Run The .ovpn File
sudo openvpn --config name_of_your_file.ovpn
- 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.
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%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
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:
sudo systemctl stop NewtworkManager.service
sudo openvpn --config "your-config-file-here.ovpn" &
- Wait for: "Initialization Sequence Completed" from openvpn
- Test that you can reach the outside world:
ping www.google.com
or usedig +short myip.opendns.com @resolver1.opendns.com
to see that your IP address has changed. sudo pkill -TERM openvpn
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.
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
add a comment |
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:
sudo systemctl stop NewtworkManager.service
sudo openvpn --config "your-config-file-here.ovpn" &
- Wait for: "Initialization Sequence Completed" from openvpn
- Test that you can reach the outside world:
ping www.google.com
or usedig +short myip.opendns.com @resolver1.opendns.com
to see that your IP address has changed. sudo pkill -TERM openvpn
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.
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
add a comment |
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:
sudo systemctl stop NewtworkManager.service
sudo openvpn --config "your-config-file-here.ovpn" &
- Wait for: "Initialization Sequence Completed" from openvpn
- Test that you can reach the outside world:
ping www.google.com
or usedig +short myip.opendns.com @resolver1.opendns.com
to see that your IP address has changed. sudo pkill -TERM openvpn
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.
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:
sudo systemctl stop NewtworkManager.service
sudo openvpn --config "your-config-file-here.ovpn" &
- Wait for: "Initialization Sequence Completed" from openvpn
- Test that you can reach the outside world:
ping www.google.com
or usedig +short myip.opendns.com @resolver1.opendns.com
to see that your IP address has changed. sudo pkill -TERM openvpn
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.
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
add a comment |
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
add a comment |
Probably this looks like a DNS leak issue you can fix this
- 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.
- Run The .ovpn File
sudo openvpn --config name_of_your_file.ovpn
- 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.
add a comment |
Probably this looks like a DNS leak issue you can fix this
- 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.
- Run The .ovpn File
sudo openvpn --config name_of_your_file.ovpn
- 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.
add a comment |
Probably this looks like a DNS leak issue you can fix this
- 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.
- Run The .ovpn File
sudo openvpn --config name_of_your_file.ovpn
- 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.
Probably this looks like a DNS leak issue you can fix this
- 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.
- Run The .ovpn File
sudo openvpn --config name_of_your_file.ovpn
- 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.
answered Feb 15 at 7:27
Shersha FnShersha Fn
101
101
add a comment |
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%2f924553%2fopenvpn-connects-but-block-websites-doesnt-open-on-ubuntu-17-04%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
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