1

I have a fresh install of CentOS 7 in a VirtualBoxVirtual Machine (itself hosted on Windows 10). In VirtualBox, the network configuration for this machine is:

Access method: NAT Interface

type: Para-virtual Network

Promiscuity mode: refused

Cable plugged in: True

I am behind a proxy so on my virtual machine I have added my proxy configuration to:

/etc/environment:

export http_proxy=http://my.proxy.server.here:8080
export https_proxy=http://my.proxy.server.here:8080
export HTTP_proxy=http://my.proxy.server.here:8080
export HTTPS_proxy=http://my.proxy.server.here:8080

/etc/profile.d/proxy.sh:

export http_proxy=http://my.proxy.server.here:8080
export https_proxy=http://my.proxy.server.here:8080
export HTTP_proxy=http://my.proxy.server.here:8080
export HTTPS_proxy=http://my.proxy.server.here:8080

/etc/wgetrc:

http_proxy = http://my.proxy.server.here:8080
https_proxy = http://my.proxy.server.here:8080
HTTP_proxy = http://my.proxy.server.here:8080
HTTPS_proxy = http://my.proxy.server.here:8080

...

use_proxy = on

and .bashrc:

export http_proxy=http://my.proxy.server.here:8080
export https_proxy=http://my.proxy.server.here:8080
export HTTP_proxy=http://my.proxy.server.here:8080
export HTTPS_proxy=http://my.proxy.server.here:8080

I have rebooted the VM a couple of times just to be sure, but when I try to ping, all my packets are lost:

$ ping google.com
PING google.com (172.217.19.238) 56(84) bytes of data.
^C
--- google.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4008ms

The VM only displays this one eth0connection and claims to be connected to it:

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:E8:76:82  
          inet adr:10.0.2.15  Bcast:10.0.2.255  Masque:255.255.255.0
          adr inet6: fe80::a00:27ff:fee8:7682/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36 errors:0 dropped:0 overruns:0 frame:0
          TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          RX bytes:11928 (11.6 KiB)  TX bytes:8682 (8.4 KiB)

The host machine has a correctly working internet connection and I am sure I am using the right proxy address.

What else do I need to do for my VM to be able to connect to the internet?

4
  • 1
    Can you talk to the administrator of the proxy to see if packets from your machine are reaching it?
    – halfer
    Commented Jan 14, 2020 at 8:24
  • Also, see if there is a host-side virtual networking device provided by VirtualBox. If there is, ping from the guest to the host, to ensure that part of the connection is working.
    – halfer
    Commented Jan 14, 2020 at 8:25
  • 1
    @halfer so I have just taken it to the admin, apparently pings are the only things that are blocked (intentionally) - so basically I should not have been using that as my gauge for my connection Commented Jan 14, 2020 at 8:25
  • Finally, are you able to ping from your host to Google? i.e. without VirtualBox?
    – halfer
    Commented Jan 14, 2020 at 8:26

1 Answer 1

0

After taking my computer to the admin, I found out that pinging was actually (intentionally) blocked on my machine (it had worked before but idk) so using it as a gauge for my connectivity was not a good idea.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .