From owner-freebsd-questions@FreeBSD.ORG Fri Jul 28 19:29:33 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C031816A4E7 for ; Fri, 28 Jul 2006 19:29:33 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9F3A43D78 for ; Fri, 28 Jul 2006 19:29:23 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 5499 invoked from network); 28 Jul 2006 19:29:21 -0000 Received: from unknown (HELO localhost) (775067@[217.50.135.184]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 28 Jul 2006 19:29:21 -0000 Date: Fri, 28 Jul 2006 21:29:09 +0200 From: Fabian Keil To: "mal content" Message-ID: <20060728212909.032e047c@localhost> In-Reply-To: <8e96a0b90607280942o7fb9d5e5s876ad7367379210@mail.gmail.com> References: <8e96a0b90607280942o7fb9d5e5s876ad7367379210@mail.gmail.com> X-Mailer: Sylpheed-Claws 2.3.1 (GTK+ 2.8.19; i386-portbld-freebsd6.1) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2006-08-19.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_gtzwsgbe60qcEZ./QY3NMHW"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-questions@freebsd.org Subject: Re: qemu with tap networking on FreeBSD 6.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2006 19:29:33 -0000 --Sig_gtzwsgbe60qcEZ./QY3NMHW Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable "mal content" wrote: > Followed instructions from various places and ended up with > the following procedure: >=20 > # kldload bridge.ko > # sysctl net.link.ether.bridge_cfg=3Dfxp0,tap0 > # sysctl net.link.ether.bridge.enable=3D1 I don't think it's part of your problem, but on FreeBSD 6.1 it is recommended to use if_bridge instead of bridge.=20 =20 > I created 'if-up' for qemu: >=20 > #!/bin/sh > ifconfig ${1} 0.0.0.0 =20 > I have a working OpenBSD image, 3.9. I started it up, > set an IP address and default route, etc. Everything appears > to be fine there. The network was working? =20 > I reboot the qemu image and just before the login prompt, > qemu goes insane. For some reason, it blasts UDP packets: >=20 > (on the host) > # netstat -an > > udp4 0 0 *.62756 *.* > udp4 0 0 *.62324 *.* > udp4 0 0 *.62127 *.* > udp4 0 0 *.62741 *.* > udp4 0 0 *.59182 *.* > udp4 0 0 *.63792 *.* > How do you know that these connections came from qemu? Personally I prefer to use NAT to connect qemu (and jails) with the world outside. This way you can use pfctl -ss -r to see which connections come from the host system and which don't.=20 Fabian --=20 http://www.fabiankeil.de/ --Sig_gtzwsgbe60qcEZ./QY3NMHW Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEymWPjV8GA4rMKUQRAmRGAJ42qaYB3SkGvCe+CCNGQWMtvdpEHwCgtQ0M 7hzH5+r68hBiLX7ad7Y1HgI= =oVg0 -----END PGP SIGNATURE----- --Sig_gtzwsgbe60qcEZ./QY3NMHW--