Results 1 to 1 of 1

Thread: VirtualBox or network interfaces problem? Can't find a solution.

  1. #1
    Join Date
    Jul 2018
    Beans
    3

    Question VirtualBox or network interfaces problem? Can't find a solution.

    Hi everyone.

    I have installed two systems in VirtualBox one is UbuntuServer 16.04 (planing to use as a host with squid) and a second is Ubuntu 16.04 32-bit (just a client)

    InternalNetwork for machines was created with following command:
    Code:
    vboxmanage dhcpserver add --netname testlab --ip 10.10.0.1 --netmask 255.255.255.0 --lowerip 10.10.10.1 --upperip 10.10.10.100 --enable
    UbuntuServer(host) network settings in VirtualBox is:

    Ubuntu 16.04(client) VirtualBox network settings:


    NetworkInterfaces .conf on UbuntuServer looks like this:

    Code:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto enp0s3                    #Connection to the main internet (host machine of VB)
     iface enp0s3 inet dhcp
    
    auto enp0s8                    # Internal network connection
     iface enp0s8 inet dhcp
    And on the client machine everything just stays as it was from default.

    Lets get to the squid
    main config in http_acces I have added only this:
    Code:
    http_access allow all
    Here is the things that I also added:
    Code:
    forwarded_for off
    request_header_access Allow allow all
    request_header_access Authorization allow all
    request_header_access WWW-Authenticate allow all
    request_header_access Proxy-Authorization allow all
    request_header_access Proxy-Authenticate allow all
    request_header_access Cache-Control allow all
    request_header_access Content-Encoding allow all
    request_header_access Content-Length allow all
    request_header_access Content-Type allow all
    request_header_access Date allow all
    request_header_access Expires allow all
    request_header_access Host allow all
    request_header_access If-Modified-Since allow all
    request_header_access Last-Modified allow all
    request_header_access Location allow all
    request_header_access Pragma allow all
    request_header_access Accept allow all
    request_header_access Accept-Charset allow all
    request_header_access Accept-Encoding allow all
    request_header_access Accept-Language allow all
    request_header_access Content-Language allow all
    request_header_access Mime-Version allow all
    request_header_access Retry-After allow all
    request_header_access Title allow all
    request_header_access Connection allow all
    request_header_access Proxy-Connection allow all
    request_header_access User-Agent allow all
    request_header_access Cookie allow all
    request_header_access All deny all
    I want to establish a proxy connection for the client machine so the internet see the client with it's IP that was given buy a squid and not the main connection from a provider.

    Client machine can ping host but din't get any access to the internet itself.

    Here is the input from ifconfig on UbuntuServer(host)



    For now I'am stuck please help. I don't ask for a full solution just the direction will be good. Thank you.
    Last edited by harardin; July 11th, 2018 at 01:58 PM. Reason: Adding additional info.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •