VirtualBox

Ticket #4134 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

Host Only Networking: Route Connections

Reported by: scoopex Owned by:
Priority: major Component: network/hostif
Version: VirtualBox 2.2.4 Keywords:
Cc: Guest type: other
Host type: Linux

Description

To make host-only networking more user-friendly add the folwing configuration options to File -> Global Settings -> Networking -> HostOnly Networking Connection -> Change.

Add a additional tab to the existing "DHCP Settings" and "Adapter" tabs with the following checkboxes:

[ ] Routing

[ ] Regular Routing

(use the current default route to forward connections)

[ ] NAT

(hide the the hosts of the host-only-network behind the host-machine)

e.g.: iptables -t nat -A POSTROUTING -o ${IFNAME} -j MASQUERADE echo 1 >/proc/sys/net/ipv4/ip_forward

[ ] DNS Forwarding

Activate a proxy dns listening on the gateway ip of the host-only-network which forwards all requests to the currently(!) configured dns-servers in /etc/resolv.conf Maybe you can reuse "dnsmasq".

Keep in mind that virtualbox is used often on laptops - therefore the networking settings are changeing i.e. if you are at home (using wlan) or at work (using ethernet).

Change History

comment:1 Changed 4 years ago by Technologov

It looks somewhat related to wish #2728 but different.

It seems, that you basically want to switch network connections without powering down the VM.

With VBox 3.1 you can change network assignment type on the fly.

Is this feature-request still relevant for VBox 3.1 users ?

What your "Routing" Option supposed to do? (you cannot just use the current default route to forward connections without NAT)

-Technologov

comment:2 Changed 4 years ago by Technologov

original reporter, "scoopex", not answered questions. This feature is unclear.

I recommend closing this Wish as WONTFIX.

-Technologov

comment:3 Changed 4 years ago by scoopex

Hi,

this wish for improvement applies to the global settings of host-only networks - this can be summarized by:

  • The VBOX DHCP Server should be capable to announce the current dns-servers to the guests in the host only-network. Ideally a dedicated dns-proxy like dnsmasq ( http://www.thekelleys.org.uk/dnsmasq/doc.html) would be a cool idea. With this functionality it is not necessary anymore to change all dns-konfigurations of the vbox-guests if you connect your laptop to another network.
  • The vbox-hostonly-network should contain a gateway-ip which route/masquerades requests to other networks

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use