Received: from eggs.gnu.org ([208.118.235.92]:54207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYbUd-00041X-RI for qemu-devel@nongnu.org; Wed, 14 Nov 2012 06:50:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYbUa-0004Aa-P5 for qemu-devel@nongnu.org; Wed, 14 Nov 2012 06:50:55 -0500 Received: from indium.canonical.com ([91.189.90.7]:52497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYbUa-0004AK-J2 for qemu-devel@nongnu.org; Wed, 14 Nov 2012 06:50:52 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TYbUZ-00013p-6T for ; Wed, 14 Nov 2012 11:50:51 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 300AC2E807D for ; Wed, 14 Nov 2012 11:50:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 14 Nov 2012 11:42:17 -0000 From: Paolo Bonzini Sender: bounces@canonical.com References: <20121113144532.27126.48410.malonedeb@gac.canonical.com> Message-Id: <20121114114218.17284.40949.malone@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1078305] Re: source IP address of broadcast packets gets rewritten when using NAT Reply-To: Bug 1078305 <1078305@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org NAT networking is provided by libvirt, changing the package. ** Project changed: qemu =3D> libvirt (Ubuntu) -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1078305 Title: source IP address of broadcast packets gets rewritten when using NAT Status in =E2=80=9Clibvirt=E2=80=9D package in Ubuntu: New Bug description: If I send a broadcast message like this to the limited broadcast address: echo a | nc -bu 255.255.255.255 5000 then the resulting packet looks like this on the sender side: 14:36:17.997662 02:00:c0:a8:7a:fb (oui Unknown) > Broadcast, ethertyp= e IPv4 (0x0800), length 44: (tos 0x0, ttl 64, id 25278, offset 0, flags [DF= ], proto UDP (17), length 30) 192.168.122.251.42141 > 255.255.255.255.5000: [bad udp cksum 476f!] U= DP, length 2 However, an other VM on the same host sees the following packet: 14:36:19.247793 02:00:c0:a8:7a:fb (oui Unknown) > Broadcast, ethertype IP= v4 (0x0800), length 44: (tos 0x0, ttl 64, id 25278, offset 0, flags [DF], p= roto UDP (17), length 30) 192.168.122.1.42141 > 255.255.255.255.5000: [bad udp cksum 3b71!] UDP= , length 2 So the source MAC address and other headers are untouched, but the source IP address is changed to the default gateway's! If I use a the subnet-specific broadcast, then the packets are left untouched, i.e.: echo a | nc -bu 192.168.122.255 5000 14:41:33.313490 02:00:c0:a8:7a:fb (oui Unknown) > Broadcast, ethertype IP= v4 (0x0800), length 44: (tos 0x0, ttl 64, id 38571, offset 0, flags [DF], p= roto UDP (17), length 30) 192.168.122.251.46821 > 192.168.122.255.5000: [bad udp cksum aee5!] U= DP, length 2 14:41:34.563615 02:00:c0:a8:7a:fb (oui Unknown) > Broadcast, ethertype IP= v4 (0x0800), length 44: (tos 0x0, ttl 64, id 38571, offset 0, flags [DF], p= roto UDP (17), length 30) 192.168.122.251.46821 > 192.168.122.255.5000: [bad udp cksum aee5!] U= DP, length 2 Is this a configuration issue, or a more fundamental issue of the virtual switch itself? To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1078305/+subscriptio= ns