From owner-freebsd-questions@FreeBSD.ORG Sat Mar 11 17:20:00 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 1888116A41F for ; Sat, 11 Mar 2006 17:20:00 +0000 (GMT) (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 4577643D48 for ; Sat, 11 Mar 2006 17:19:58 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 1014 invoked from network); 11 Mar 2006 17:19:56 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[217.50.146.132]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 11 Mar 2006 17:19:56 -0000 Date: Sat, 11 Mar 2006 18:19:40 +0100 From: Fabian Keil To: FreeBSD Questions Message-ID: <20060311181940.7307f6e7@localhost> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.6; i386-portbld-freebsd6.0) 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_ZJiwF4gqZcQJ9W1KYp2pVAV; protocol="application/pgp-signature"; micalg=PGP-SHA1 Subject: Trouble with if_bridge and wlan nic in infrastructure mode 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: Sat, 11 Mar 2006 17:20:00 -0000 --Sig_ZJiwF4gqZcQJ9W1KYp2pVAV Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I have a problem with if_bridge if one of the members is a wlan nic in infrastructure mode. Bridges between the following device combinations work: em0 and tap0; em0 and wi0 in hostap mode; em0 and ath0 in hostap mode; rl0 and re0 (different system); Bridges between the following don't: em0 and ndis0 in infrastructure mode; em0 and wi0 in infrastructure mode; em0 and ath0 infrastructure mode; tap0 and ndis0 in infrastructure mode;=20 My bridge is a ThinkPad R51 running FreeBSD 6.1-PRERELEASE #11: Fri Mar 10 13:05:07 CET 2006. PF is disabled and all net.link.bridge sysctls are set to 0. I tested two Access Points for the infrastructure mode, a Netgear WGT624 and another Laptop running Anonym.OS. The ThinkPad can ping the AP and the system behind em0 (or tap0), but the system behind em0 (or tap0) can't reach the AP and can't be reached by the AP either. Both systems between the bridge can ping the bridge itself.=20 If I run tcpdump on the members of the bridge I can see arp requests (who has IP foo tell bar) on both members, but answers coming in on em0 don't appear on the wlan nic in infrastructure mode and the wlan nic doesn't get any answers which could be bridged to em0 at all.=20 I'm under the impression that even the arp requests coming in on em0 and shown on the wlan nic in infrastructure mode aren't send out. At least I can't see them on the AP running Anonym.OS. Arp requests made my the AP are bridged and answered by the system behind em0, but the answers itself aren't bridged. man if_bridge's wi0 example assumes "the 802.11 interface is in ad-hoc mode" but it doesn't say wlan bridging would be limited to ad-hoc and hostap mode. I worked around the problem by using NAT, but I'm still interested if anybody is using an if_bridge member in infrastructure mode or if there's a reason why it shouldn't work.=20 Fabian --=20 http://www.fabiankeil.de/ --Sig_ZJiwF4gqZcQJ9W1KYp2pVAV Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEEwa5jV8GA4rMKUQRAkivAJ4pQen710YwjQjiaZwbY3i+ppvEpQCffYFX yCOM6P9yeWNCbFqndKnhp+g= =sJVL -----END PGP SIGNATURE----- --Sig_ZJiwF4gqZcQJ9W1KYp2pVAV--