No internet once connected to OpenVPN server
I'm new here so please do not hesitate if you need additional informations :)
I have an old PC on which one I have installed Ubuntu with a web server (PHP, MySQL...) so that I can access all of its services (Web (port 80), SSH and FTP) from my local network via local IP 192.168.1.X (static).
Now, I want to be able to connect to the local network and do the same things but from everywhere in the world. Moreover, I want the connection to be secure: what I mean is that I don't want anybody to access my web pages.
The best solution I found is via VPN: I installed OpenVPN server and now I can access SSH, FTP and web from everywhere. The last problem is that, when I am connected to the VPN, I haven't any internet connection. I cannot understand why the OpenVPN server does not handle the requests.
To setup the OpenVPN server, I used this, using my PC's local IP for the first step and using my router's IP when asked for NATed connection details.
After many attemps, I am asking you some help.
If you need any log or info, just ask :)
Thanks !
internet vpn openvpn webserver
add a comment |
I'm new here so please do not hesitate if you need additional informations :)
I have an old PC on which one I have installed Ubuntu with a web server (PHP, MySQL...) so that I can access all of its services (Web (port 80), SSH and FTP) from my local network via local IP 192.168.1.X (static).
Now, I want to be able to connect to the local network and do the same things but from everywhere in the world. Moreover, I want the connection to be secure: what I mean is that I don't want anybody to access my web pages.
The best solution I found is via VPN: I installed OpenVPN server and now I can access SSH, FTP and web from everywhere. The last problem is that, when I am connected to the VPN, I haven't any internet connection. I cannot understand why the OpenVPN server does not handle the requests.
To setup the OpenVPN server, I used this, using my PC's local IP for the first step and using my router's IP when asked for NATed connection details.
After many attemps, I am asking you some help.
If you need any log or info, just ask :)
Thanks !
internet vpn openvpn webserver
I did not specify it in my post, but I did a lot of research on the web
– BlueskyFR
Jan 4 '18 at 22:18
2
Tecnically if you're connected to the vpn you have internet connection. I've recently connected to a network where i was able to see the other machines but no "internet connection". The problem was the dns server, there wasn't any configured as default. Ping google dns serverping 8.8.8.8
, if you can ping it, the problem is solvable withecho 'nameserver 8.8.8.8' | sudo tee --append /etc/resolv.conf && echo 'nameserver 8.8.4.4' | sudo tee --append /etc/resolv.conf
– bistoco
Jan 4 '18 at 22:32
add a comment |
I'm new here so please do not hesitate if you need additional informations :)
I have an old PC on which one I have installed Ubuntu with a web server (PHP, MySQL...) so that I can access all of its services (Web (port 80), SSH and FTP) from my local network via local IP 192.168.1.X (static).
Now, I want to be able to connect to the local network and do the same things but from everywhere in the world. Moreover, I want the connection to be secure: what I mean is that I don't want anybody to access my web pages.
The best solution I found is via VPN: I installed OpenVPN server and now I can access SSH, FTP and web from everywhere. The last problem is that, when I am connected to the VPN, I haven't any internet connection. I cannot understand why the OpenVPN server does not handle the requests.
To setup the OpenVPN server, I used this, using my PC's local IP for the first step and using my router's IP when asked for NATed connection details.
After many attemps, I am asking you some help.
If you need any log or info, just ask :)
Thanks !
internet vpn openvpn webserver
I'm new here so please do not hesitate if you need additional informations :)
I have an old PC on which one I have installed Ubuntu with a web server (PHP, MySQL...) so that I can access all of its services (Web (port 80), SSH and FTP) from my local network via local IP 192.168.1.X (static).
Now, I want to be able to connect to the local network and do the same things but from everywhere in the world. Moreover, I want the connection to be secure: what I mean is that I don't want anybody to access my web pages.
The best solution I found is via VPN: I installed OpenVPN server and now I can access SSH, FTP and web from everywhere. The last problem is that, when I am connected to the VPN, I haven't any internet connection. I cannot understand why the OpenVPN server does not handle the requests.
To setup the OpenVPN server, I used this, using my PC's local IP for the first step and using my router's IP when asked for NATed connection details.
After many attemps, I am asking you some help.
If you need any log or info, just ask :)
Thanks !
internet vpn openvpn webserver
internet vpn openvpn webserver
asked Jan 4 '18 at 22:05
BlueskyFR
12
12
I did not specify it in my post, but I did a lot of research on the web
– BlueskyFR
Jan 4 '18 at 22:18
2
Tecnically if you're connected to the vpn you have internet connection. I've recently connected to a network where i was able to see the other machines but no "internet connection". The problem was the dns server, there wasn't any configured as default. Ping google dns serverping 8.8.8.8
, if you can ping it, the problem is solvable withecho 'nameserver 8.8.8.8' | sudo tee --append /etc/resolv.conf && echo 'nameserver 8.8.4.4' | sudo tee --append /etc/resolv.conf
– bistoco
Jan 4 '18 at 22:32
add a comment |
I did not specify it in my post, but I did a lot of research on the web
– BlueskyFR
Jan 4 '18 at 22:18
2
Tecnically if you're connected to the vpn you have internet connection. I've recently connected to a network where i was able to see the other machines but no "internet connection". The problem was the dns server, there wasn't any configured as default. Ping google dns serverping 8.8.8.8
, if you can ping it, the problem is solvable withecho 'nameserver 8.8.8.8' | sudo tee --append /etc/resolv.conf && echo 'nameserver 8.8.4.4' | sudo tee --append /etc/resolv.conf
– bistoco
Jan 4 '18 at 22:32
I did not specify it in my post, but I did a lot of research on the web
– BlueskyFR
Jan 4 '18 at 22:18
I did not specify it in my post, but I did a lot of research on the web
– BlueskyFR
Jan 4 '18 at 22:18
2
2
Tecnically if you're connected to the vpn you have internet connection. I've recently connected to a network where i was able to see the other machines but no "internet connection". The problem was the dns server, there wasn't any configured as default. Ping google dns server
ping 8.8.8.8
, if you can ping it, the problem is solvable with echo 'nameserver 8.8.8.8' | sudo tee --append /etc/resolv.conf && echo 'nameserver 8.8.4.4' | sudo tee --append /etc/resolv.conf
– bistoco
Jan 4 '18 at 22:32
Tecnically if you're connected to the vpn you have internet connection. I've recently connected to a network where i was able to see the other machines but no "internet connection". The problem was the dns server, there wasn't any configured as default. Ping google dns server
ping 8.8.8.8
, if you can ping it, the problem is solvable with echo 'nameserver 8.8.8.8' | sudo tee --append /etc/resolv.conf && echo 'nameserver 8.8.4.4' | sudo tee --append /etc/resolv.conf
– bistoco
Jan 4 '18 at 22:32
add a comment |
2 Answers
2
active
oldest
votes
Finally, thanks to bistoco's answer, I changed the DNS on both the ubuntu server and the client (Windows) to Google's one (8.8.8.8) because I was able to ping it successfully. On ubuntu, I used the GUI; on Windows, I changed the DNS for my wifi card and for the OpenVPN TAP Adapter.
I hope it will help someone :)
add a comment |
Unfortunately my reputation wont allow for comments. So an answer. Seems like your you didnt update your configuration. This answer works but the internet connectivity is very slow. This answer is better. To sum up things mentioned there, you need to update your ubuntu DNS configuration at the client side. Add the following lines in the openvpn key
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
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%2f992421%2fno-internet-once-connected-to-openvpn-server%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
Finally, thanks to bistoco's answer, I changed the DNS on both the ubuntu server and the client (Windows) to Google's one (8.8.8.8) because I was able to ping it successfully. On ubuntu, I used the GUI; on Windows, I changed the DNS for my wifi card and for the OpenVPN TAP Adapter.
I hope it will help someone :)
add a comment |
Finally, thanks to bistoco's answer, I changed the DNS on both the ubuntu server and the client (Windows) to Google's one (8.8.8.8) because I was able to ping it successfully. On ubuntu, I used the GUI; on Windows, I changed the DNS for my wifi card and for the OpenVPN TAP Adapter.
I hope it will help someone :)
add a comment |
Finally, thanks to bistoco's answer, I changed the DNS on both the ubuntu server and the client (Windows) to Google's one (8.8.8.8) because I was able to ping it successfully. On ubuntu, I used the GUI; on Windows, I changed the DNS for my wifi card and for the OpenVPN TAP Adapter.
I hope it will help someone :)
Finally, thanks to bistoco's answer, I changed the DNS on both the ubuntu server and the client (Windows) to Google's one (8.8.8.8) because I was able to ping it successfully. On ubuntu, I used the GUI; on Windows, I changed the DNS for my wifi card and for the OpenVPN TAP Adapter.
I hope it will help someone :)
answered Jan 5 '18 at 11:46
BlueskyFR
12
12
add a comment |
add a comment |
Unfortunately my reputation wont allow for comments. So an answer. Seems like your you didnt update your configuration. This answer works but the internet connectivity is very slow. This answer is better. To sum up things mentioned there, you need to update your ubuntu DNS configuration at the client side. Add the following lines in the openvpn key
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
add a comment |
Unfortunately my reputation wont allow for comments. So an answer. Seems like your you didnt update your configuration. This answer works but the internet connectivity is very slow. This answer is better. To sum up things mentioned there, you need to update your ubuntu DNS configuration at the client side. Add the following lines in the openvpn key
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
add a comment |
Unfortunately my reputation wont allow for comments. So an answer. Seems like your you didnt update your configuration. This answer works but the internet connectivity is very slow. This answer is better. To sum up things mentioned there, you need to update your ubuntu DNS configuration at the client side. Add the following lines in the openvpn key
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Unfortunately my reputation wont allow for comments. So an answer. Seems like your you didnt update your configuration. This answer works but the internet connectivity is very slow. This answer is better. To sum up things mentioned there, you need to update your ubuntu DNS configuration at the client side. Add the following lines in the openvpn key
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
answered Dec 16 '18 at 6:37
Sai Kiran
1
1
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.
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.
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%2f992421%2fno-internet-once-connected-to-openvpn-server%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 did not specify it in my post, but I did a lot of research on the web
– BlueskyFR
Jan 4 '18 at 22:18
2
Tecnically if you're connected to the vpn you have internet connection. I've recently connected to a network where i was able to see the other machines but no "internet connection". The problem was the dns server, there wasn't any configured as default. Ping google dns server
ping 8.8.8.8
, if you can ping it, the problem is solvable withecho 'nameserver 8.8.8.8' | sudo tee --append /etc/resolv.conf && echo 'nameserver 8.8.4.4' | sudo tee --append /etc/resolv.conf
– bistoco
Jan 4 '18 at 22:32