From: Kurt Neufeld <kneufeld@burgundywall.com>
To: kvm-devel@lists.sourceforge.net
Subject: Re: howto set up a virtual firewall?
Date: Mon, 25 Feb 2008 20:23:47 +0000 (UTC) [thread overview]
Message-ID: <loom.20080225T201337-21@post.gmane.org> (raw)
In-Reply-To: 47BD1745.5080707@burgundywall.com
Kurt Neufeld <kneufeld <at> burgundywall.com> writes:
>
> It turns out I did have everything correctly configured but it still
> doesn't work. The problem is that I cannot get a DHCP address on my vm.
Almost correctly.
> Some general questions, should br0 be up or down? What should my vm MAC
> be? The same as my physical card (peth) which is also the same as the
> bridge (br0)? The vnet0 does not match. (output later)
br0 needs to be up. peth0 should have a different mac address. Found out this
breakthrough on a Xen page: http://wiki.xensource.com/xenwiki/XenNetworking
So I got it working and life is now good.
Here's my rc.local script (which will probably change slightly as I refine what
I'm trying accomplish).
rc.local:
ifdown br0
ip link set peth0 down
ip link set peth0 address 00:ff:ff:ff:ff:00 arp off
ifup peth0
sleep 1
ifup br0 # but with no ip address, new mac address
route add default gw 192.168.5.254
iptables -P FORWARD DROP
iptables -A FORWARD -m physdev --physdev-is-bridged -j ACCEPT
service libvirtd start
::::::::::::::
ifcfg-br0
::::::::::::::
DEVICE=br0
BOOTPROTO=none
ONBOOT=yes
TYPE=bridge
MACADDR=fe:ff:ff:ff:ff:00 # doesn't work unfortunately
::::::::::::::
ifcfg-peth0
::::::::::::::
# 3Com Corporation 3c900B-TPO Etherlink XL [Cyclone]
DEVICE=peth0
HWADDR=00:50:04:7F:B5:A3
ONBOOT=yes
BRIDGE=br0
So over the weekend I got a virtual smoothwall firewall up and running and also
a virtual CentOS 5 mail and http server. I can now upgrade my "desktop" with
virtual impunity.
Thanks team.
Kurt
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-02-25 20:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-20 13:30 howto set up a virtual firewall? Kurt Neufeld
2008-02-20 13:44 ` Avi Kivity
2008-02-20 13:58 ` Javier Guerra
2008-02-21 6:16 ` Kurt Neufeld
2008-02-25 20:23 ` Kurt Neufeld [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-02-20 13:24 Kurt Neufeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20080225T201337-21@post.gmane.org \
--to=kneufeld@burgundywall.com \
--cc=kvm-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.