Sun Microsystems VERSION 3.1.0_BETA2 user manual Enabling DNS proxy in NAT mode

Models: VERSION 3.1.0_BETA2

1 283
Download 283 pages 42.34 Kb
Page 150
Image 150

9 Advanced topics

VBoxManage setextradata "Linux Guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/BindIP" "10.45.0.2"

After this, all outgoing traffic will be sent through the interface with the IP address

10.45.0.2.Please make sure that this interface is up and running prior to this assign-

ment.

Also, if you have configured port forwarding for the NAT engine as described in chapter 6.3.1, Configuring port forwarding with NAT, page 90, you can bind this con- figuration only to a particular interface as well. Assuming that you have configured port forwarding for a “guestssh” service, you would use the following additional com- mand:

VBoxManage setextradata "Linux Guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/BindIP" "127.0.0.1"

This would make ssh port forwarding available from host only.

9.13.5 Enabling DNS proxy in NAT mode

For resolving network names the DHCP server of the NAT engine offers a list of regis- tered DNS servers of the host. For some reason you might need to hide the DNS server list, thereby forcing the VirtualBox NAT engine to react to changes in the host network settings, for example about the end of DHCP leases. Replacing of the real list with the address of the DNS proxy can be achieved with the following command:

VBoxManage setextradata "Linux Guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/DNSProxy" 1

9.13.6 Using the host’s resolver as a DNS proxy in NAT mode

For resolving network names, the DHCP server of the NAT engine offers a list of regis- tered DNS servers of the host. If for some reason you need to hide this DNS server list and use the host’s resolver settings, thereby forcing the VirtualBox NAT engine to in- tercept DNS requests and forward them to host’s resolver, use the following command:

VBoxManage setextradata "Linux Guest" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/UseHostResolver" 1

9.14Configuring the maximum resolution of guests when using the graphical frontend

When guest systems with the Guest Additions installed are started using the graphical frontend (the normal VirtualBox application), they will not be allowed to use screen resolutions greater than the host’s screen size unless the user manually resizes them

150

Page 150
Image 150
Sun Microsystems VERSION 3.1.0_BETA2 Enabling DNS proxy in NAT mode, Using the host’s resolver as a DNS proxy in NAT mode