Hello everyone,
I've set up an Ubuntu 18.04 guest machine on my Windows 10. On my windows 10 i have a VPN on and i'd like my Ubuntu to use it as well since i'm living in a country with a censored internet. After few research it seemed that i had to use the adapter NAT with Paravirtualization which i did, then after changing the dns using my host dns i managed to finally ping google from my guest (google being blocked here) and when i turn the VPN off then it's not pinging any longer so it's working for sure.
Now problem is, it seems nothing can reach me. telnet give me this: "telnet: Unable to connect to remote host: Network is unreachable", firefox can't browse anything, i can't apt update, nothing, i can just ping.
Did you guys ever faced this issue ? I spent the last 2 days searching online but i can't fix it...
Help
Ubuntu 18.04 with NAT network can ping but can't browse through VPN
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Ubuntu 18.04 with NAT network can ping but can't browse through VPN
That's expected with NAT, you got to setup port-forwarding. See ch. 6.3.1. Configuring Port Forwarding with NAT.Worlden wrote:it seems nothing can reach me
That's different, that's not "reaching you", that's "*you* reaching them"!. That's the opposite problem...Worlden wrote:firefox can't browse anything, i can't apt update
Post the following from your host:
ipconfig /all "C:\Program Files\Oracle\VirtualBox\VBoxManage" list dhcpservers
nmcli d show
Edit: |
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Ubuntu 18.04 with NAT network can ping but can't browse through VPN
Thanks for your answer !
For the ipconfig:
When i do the second command i get :
And for the guest command:
Sorry i'm new with VB and VM in general Don't really know where to look, i think the port-forwarding is working fine since a can ping any servers ?
For the ipconfig:
Code: Select all
Carte Ethernet VirtualBox Host-Only Network :
Suffixe DNS propre à la connexion. . . :
Description. . . . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
Adresse physique . . . . . . . . . . . : 0A-00-27-00-00-08
DHCP activé. . . . . . . . . . . . . . : Non
Configuration automatique activée. . . : Oui
Adresse IPv6 de liaison locale. . . . .: fe80::350d:df25:8337:9ef5%8(préféré)
Adresse IPv4. . . . . . . . . . . . . .: 192.168.56.1(préféré)
Masque de sous-réseau. . . . . . . . . : 255.255.255.0
Passerelle par défaut. . . . . . . . . :
IAID DHCPv6 . . . . . . . . . . . : 1024065575
DUID de client DHCPv6. . . . . . . . : 00-01-00-01-23-85-26-61-E0-D5-5E-F9-BE-6C
Serveurs DNS. . . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS sur Tcpip. . . . . . . . . . . : Activé
Carte Ethernet Ethernet :
Suffixe DNS propre à la connexion. . . :
Description. . . . . . . . . . . . . . : Realtek Gaming GbE Family Controller
Adresse physique . . . . . . . . . . . : E0-D5-5E-F9-BE-6C
DHCP activé. . . . . . . . . . . . . . : Oui
Configuration automatique activée. . . : Oui
Adresse IPv6 de liaison locale. . . . .: fe80::595a:fa84:5b7b:fecf%15(préféré)
Adresse IPv4. . . . . . . . . . . . . .: 192.168.1.6(préféré)
Masque de sous-réseau. . . . . . . . . : 255.255.255.0
Bail obtenu. . . . . . . . . . . . . . : vendredi 13 septembre 2019 16:46:27
Bail expirant. . . . . . . . . . . . . : samedi 14 septembre 2019 16:46:21
Passerelle par défaut. . . . . . . . . : 192.168.1.1
Serveur DHCP . . . . . . . . . . . . . : 192.168.1.1
IAID DHCPv6 . . . . . . . . . . . : 232838494
DUID de client DHCPv6. . . . . . . . : 00-01-00-01-23-85-26-61-E0-D5-5E-F9-BE-6C
Serveurs DNS. . . . . . . . . . . . . : 192.168.1.1
NetBIOS sur Tcpip. . . . . . . . . . . : Activé
Code: Select all
"C:\Program Files\Oracle\VirtualBox\VBoxBugReport" list dhcpservers
Oracle VM VirtualBox Bug Report Tool 6.0.10
(C) 2019 Oracle Corporation
All rights reserved.
ERROR: No such machine 'list' (hr=0x80bb0001)
Code: Select all
GENERAL.DEVICE: enp0s3
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 08:00:27:88:89:BA
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connecté)
GENERAL.CONNECTION: Connexion filaire 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveCo
WIRED-PROPERTIES.CARRIER: marche
IP4.ADDRESS[1]: 10.0.2.15/24
IP4.GATEWAY: 10.0.2.2
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 10.0.2.2, mt = 201
IP4.ROUTE[2]: dst = 10.0.2.0/24, nh = 0.0.0.0, mt = 10
IP4.ROUTE[3]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt =
IP4.DNS[1]: 10.0.2.3
IP6.ADDRESS[1]: fe80::eaad:2e12:1d33:671c/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table
IP6.ROUTE[2]: dst = fe80::/64, nh = ::, mt = 256
IP6.ROUTE[3]: dst = fe80::/64, nh = ::, mt = 100
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
lines 1-23...skipping...
GENERAL.DEVICE: enp0s3
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 08:00:27:88:89:BA
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connecté)
GENERAL.CONNECTION: Connexion filaire 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
WIRED-PROPERTIES.CARRIER: marche
IP4.ADDRESS[1]: 10.0.2.15/24
IP4.GATEWAY: 10.0.2.2
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 10.0.2.2, mt = 20100
IP4.ROUTE[2]: dst = 10.0.2.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[3]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 10.0.2.3
IP6.ADDRESS[1]: fe80::eaad:2e12:1d33:671c/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table=255
IP6.ROUTE[2]: dst = fe80::/64, nh = ::, mt = 256
IP6.ROUTE[3]: dst = fe80::/64, nh = ::, mt = 100
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (non-géré)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: 127.0.0.1/8
IP4.GATEWAY: --
IP6.ADDRESS[1]: ::1/128
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ::1/128, nh = ::, mt = 256
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Ubuntu 18.04 with NAT network can ping but can't browse through VPN
I'm sorry, I gave you the wrong command to try, I fixed it in my original post. But I don't need it anymore, you don't have to post the output of that VBoxManage command.
Your network setup seems fine. This is what mine looks like, very similar to yours:
If you want other computers to reach you, you should change your network option to something else. Please read ch. 6.2. Introduction to networking modes including the Overview table, which shows quickly what kind of connection is required to achieve what you want.
And remember, you can always have more than one network card in your guest to cover multiple scenarios.
Your network setup seems fine. This is what mine looks like, very similar to yours:
If you can "ping <DefaultGateway>", if you can "ping <DNSserver>", if you can "ping 1.1.1.1", if you can "ping download.virtualbox.org", VirtualBox is working as it should.$ nmcli d show GENERAL.DEVICE: enp0s3 GENERAL.HWADDR: 08:00:27:40:51:1a <-- all VirtualBox NICs start with that number IP4.ADDRESS[1]: 10.0.2.15/24 IP4.GATEWAY: 10.0.2.2 IP4.DNS[1]: 1.1.1.1
If you want other computers to reach you, you should change your network option to something else. Please read ch. 6.2. Introduction to networking modes including the Overview table, which shows quickly what kind of connection is required to achieve what you want.
And remember, you can always have more than one network card in your guest to cover multiple scenarios.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Ubuntu 18.04 with NAT network can ping but can't browse through VPN
Hey socratis ! First thanks for helping me through this i'm new with VMs and i don't even know where and what to look for
Yeah the NAT system seems to look correctly but what i want to achieve is that my guest managed to use internet through my host VPN. I checked many google page and basically everybody seems to say i need to use NAT:
https://askubuntu.com/questions/419327/ ... connection
But even if i can indeed ping some blocked services there is no way for me to use them :/ Do you have any idea about that ?
Thanks again !
Yeah the NAT system seems to look correctly but what i want to achieve is that my guest managed to use internet through my host VPN. I checked many google page and basically everybody seems to say i need to use NAT:
https://askubuntu.com/questions/419327/ ... connection
But even if i can indeed ping some blocked services there is no way for me to use them :/ Do you have any idea about that ?
Thanks again !
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Ubuntu 18.04 with NAT network can ping but can't browse through VPN
VirtualBox is working as it should. You should look elsewhere for your networking connectivity. Look in your host for firewalls, proxies, antivirus filters, web-cleaning applications, redirectors, etc.Worlden wrote:i can indeed ping some blocked services there is no way for me to use them
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.