From: Avi Kivity <avi@qumranet.com>
To: Kurt Neufeld <kneufeld@burgundywall.com>
Cc: kvm-devel@lists.sourceforge.net
Subject: Re: howto set up a virtual firewall?
Date: Wed, 20 Feb 2008 15:44:01 +0200 [thread overview]
Message-ID: <47BC2EA1.600@qumranet.com> (raw)
In-Reply-To: <47BC2B85.7080404@burgundywall.com>
Kurt Neufeld wrote:
> Hey there,
>
> I've searched high and low but can't find an answer to my problem and I
> find it hard to believe that I'm the only person that wants to do this.
>
> I would like to setup a virtual machine that is my firewall. So far I've
> got Shorewall setup in a virtual machine and the "internal" nic works
> and I can ping the host and vice versa.
>
> However, I can't figure out the "external" nic. I've setup bridging on
> my hosts eth0 (currently my internet facing nic) but if I understand
>
> 3. public bridge from http://kvm.qumranet.com/kvmwiki/Networking then I
> have to have an ip address on my host? That would defeat the purpose of
> the virtual firewall.
>
> So what I want is to have the virtual machine have "complete" control of
> the external nic (not configured, no ip addr on host), the internal nic
> can either be on a virtual network or bridged internally, either works
> for me.
>
Assuming you have eth0 on the host, tap0 on the host visible as eth0 in
the guest, and tap1 in the host visible as eth1 in the guest, you can
add a bridge between eth0 and tap0, and use tap1 as the nic in the host
for IP (e.g. run 'dhclient tap1' to obtain an internal IP address).
--
Any sufficiently difficult bug is indistinguishable from a feature.
-------------------------------------------------------------------------
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-20 13:44 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 [this message]
2008-02-20 13:58 ` Javier Guerra
2008-02-21 6:16 ` Kurt Neufeld
2008-02-25 20:23 ` Kurt Neufeld
-- 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=47BC2EA1.600@qumranet.com \
--to=avi@qumranet.com \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox