qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Ben Taylor" <bentaylor.solx86@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Disabling outgoing connectiong from within guest
Date: Fri, 20 Jun 2008 09:23:10 -0400	[thread overview]
Message-ID: <cef699d70806200623u49f38c9fp8256121007ffa227@mail.gmail.com> (raw)
In-Reply-To: <200806201413.29778.paul@codesourcery.com>

On Fri, Jun 20, 2008 at 9:13 AM, Paul Brook <paul@codesourcery.com> wrote:
> On Friday 20 June 2008, Johannes Schindelin wrote:
>> Hi,
>>
>> On Thu, 19 Jun 2008, Paul Brook wrote:
>> > On Wednesday 18 June 2008, Łukasz Taczuk wrote:
>> > > I would like to create a sandboxed environment in which random users
>> > > would be able to roam freely using ssh. However, I don't want to allow
>> > > them to open outgoing connections just as if the box was offline (even
>> > > if the guest is compromised). Basically I would like to have something
>> > > like reversed user mode network stack: you can log in to the guest,
>> > > but once you're in, you cannot connect to the host nor any other
>> > > machine.
>> >
>> > Your host OS firewall/packet filter should already be able to do this.
>> > IMHO there's little or no point reimplementing this functionality in
>> > qemu.
>>
>> Except that Lukasz wrote about users in the sandboxed environment, not all
>> users of the _host_ machine.
>
> Right. That's why you want to do the firewalling/sandboxing on the host. If
> you don't trust your host OS you're already screwed.

So in this situation, you're going to have a filter on the tap
device, that does something like:

allow incoming to port 22 (he did say ssh)

assuming guest is DHCP'd
allow incoming to port 68 (DHCP)
allow outgoing to port 68 (DHCP)

maybe allow dns so
allow incoming to port 53 (DNS) from dns server
allow outgoing to port 53 (DNS) to dns server

deny everything else incoming or outgoing

      reply	other threads:[~2008-06-20 13:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-18 21:41 [Qemu-devel] Disabling outgoing connectiong from within guest Łukasz Taczuk
2008-06-19  0:01 ` Paul Brook
2008-06-20 11:41   ` Johannes Schindelin
2008-06-20 13:13     ` Paul Brook
2008-06-20 13:23       ` Ben Taylor [this message]

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=cef699d70806200623u49f38c9fp8256121007ffa227@mail.gmail.com \
    --to=bentaylor.solx86@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).