Allowing DHCP service to virtual machines

"Theodore Ruegsegger" <[email protected]>
Newsgroups gmane.network.guarddog
Message-ID <[email protected]>
I use Guarddog as a firewall on my Kubuntu Gutsy laptop.

Now I've installed VirtualBox and I find that my virtual machines
can't get DHCP service unless I disable the firewall.

I s'pect this is a trivial tweak but, alas, DHCP isn't one of the
protocols that I can turn on and off between zones. On the "Advanced"
tab there's a DHCP box with two options:

Enable DHCP on interfaces:
Enable DHCP server on interfaces:

Each option has a check box as well as a text box where I can enter a
comma-separated list of interfaces. The first one contains eth0 (by
default, I think, but I've had GuardDog a while).

I've attached some more details about my situation. They're
VirtualBox-specific but it seems the problem lies with GuardDog.

So now I have three possible interface names to give to Guarddog, and
I tried enabling them all in both options:

x Enable DHCP on interfaces: vbox0,br0,eth0
x Enable DHCP server on interfaces: vbox0,br0,eth0

My virtual machine (also Kubuntu Gutsy) still can't get an IP address
from DHCP. When I disable the firewall, it gets the address in a
couple of seconds.

I tried adding a user-defined protocol, UDP, ports 67 & 68,
bidirectional. Still no joy.

Grateful for the words to set me straight,
Ted



--
    
Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________
Guarddog-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/guarddog-user
configbridge.txt (text/plain, 925 B)
To allow bridged networking for my virtual machines, I've set up a
bridge as follows:

 1. Set up bridging once:

    sudo apt-get install bridge-utils uml-utilities
    sudo chgrp vboxusers /dev/net/tun
    sudo chmod g+rw /dev/net/tun
    sudo /etc/init.d/networking stop

 2. Edit /etc/network/interfaces:
    =========================
    auto lo
    iface lo inet loopback

    # Note this one is manual (not dhcp) so br0 gets the IP address
    auto eth0
    iface eth0 inet manual

    # bridge
    auto br0
    iface br0 inet dhcp
    	bridge_ports eth0
    =========================

 3. Restart networking (from the console!). It's possible you'll need
    to power-cycle the machine, but try this first:

    sudo /etc/init.d/networking start

 4. Create at least one permanent, bridged TAP interface, assigned to
    the desired user. I like to name them vbox0, vbox1, and so on:

    sudo VBoxAddIF vbox0 ted br0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.