Ticket #4134 (new enhancement)

Opened 11 years ago

Last modified 10 years ago

Host Only Networking: Route Connections

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


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 10 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)


comment:2 Changed 10 years ago by Technologov

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

I recommend closing this Wish as WONTFIX.


comment:3 Changed 10 years ago by scoopex


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 ( 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.
ContactPrivacy policyTerms of Use