From owner-freebsd-current@freebsd.org Wed Dec 23 10:32:20 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C146A4FC28; Wed, 23 Dec 2015 10:32:20 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1168317C8; Wed, 23 Dec 2015 10:32:20 +0000 (UTC) (envelope-from cochard@gmail.com) Received: by mail-lb0-x22b.google.com with SMTP id sv6so37472444lbb.0; Wed, 23 Dec 2015 02:32:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=UaMrUq246YYzdUdt3KOtQzfHESEUs8aMpG/DFi4I0yQ=; b=QlXHLRmJnZa+YvhBMS2KhU4Uuwjl989oIfMH2cGPOTuTkxu5v5ex7HJi1CkGyKBnAL GFNYKaYE2DU5U8uad+Zk9anz9Fw8YVJRIYpyC/9ES9Xh/pPn6FspvMLtp0eLYlFdHoXk z6CicKaPaf4jUZLfLET+wCbt43zLSoNruB+GStyKHHbQvqjZdlR8cQx4IdzXOtDVgY5X /E6w5tZixw4bDVxJsflOEKvtGagFFVLUQbH6G+uhGK0A3V0Y2iRqMC/NHOFLVlPuPCYN 6i0difQaoqZ+gbCU/FSiQy7MUBQws2mHipn9J09HWDm+fTRVs4WTJQEQn/8BwsxsXIMi gByA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cochard-me.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=UaMrUq246YYzdUdt3KOtQzfHESEUs8aMpG/DFi4I0yQ=; b=VMXcbNw21QG5+wTnDYyRG3M/z1VY9EhZKt8T1cRXkByy3mhl8I4/4u//5r2EbqltMN amBgOXAE0T7RL+TK238RCcy+bF2Ptk0D4mVA1EjqpYyLmUevTx/g0OvlI+GZYnqs5B0k HMkA0sc5Qe7FSlLHlFg0v3HXjYhfN6bkJjiuF5ogovzQuYCqYVf04wgjU0/Ep0hkOkDz x7cFWpkAoMURUz2XhFMVHgTEHd40hN+JABtbN6du/3irg2e7dAevcwnUUa/cZD/MesI+ 8l9Nuq0MU9itVDaGmSe1nJXa6hfdabRXgDQLGEiw/a+YTyZWhYVH1aJm1/7Me74gvalI z4zQ== X-Received: by 10.112.132.6 with SMTP id oq6mr5835032lbb.38.1450866737590; Wed, 23 Dec 2015 02:32:17 -0800 (PST) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.25.147.78 with HTTP; Wed, 23 Dec 2015 02:31:58 -0800 (PST) From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Wed, 23 Dec 2015 11:31:58 +0100 X-Google-Sender-Auth: W5DKbrfSsF8ZFa8daXTGGYS6rbY Message-ID: Subject: forwarding didn't work if wlan0 is member of a bridge To: "freebsd-current@freebsd.org" , "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2015 10:32:20 -0000 Hi, If wlan0 interface is member of a bridge, FreeBSD didn't reach to forward-back packets to wireless client My setup is this one: internet gateway <--> [net0] fbsd router [net1 + wifi-hostap in bridge0] <--> wireless client and the problem description: - wireless clients didn't receive any packet back: the fbsd-router blocks answers because it thinks wireless clients are "unreachable". - But wireless clients can reach all IP of the fbsd-router hitself without problem, and fbsd-router can ping them too. - Ethernet clients connected to the same bridge0 didn't have problem A tcpdump on the outgoing interface shows the fbsd-router correctly receiving/NATing/forwarding the wireless-client packet (10.239.142.104 natted to 192.168.100.70) toward the Internet-gateway (192.168.100.254), but once received the response from the internet-gateway it is not able to reach the wireless-client (unreachable): [fbsd-router]~> sudo tcpdump -pni net0 icmp tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on net0, link-type EN10MB (Ethernet), capture size 262144 bytes 07:35:24.869560 IP 192.168.100.70 > 192.168.100.254: ICMP echo request, id 1, seq 375, length 40 07:35:24.869772 IP 192.168.100.254 > 192.168.100.70: ICMP echo reply, id 1, seq 375, length 40 07:35:24.870314 IP 192.168.100.70 > 192.168.100.254: ICMP host 10.239.142.104 unreachable, length 36 But directly from the fbsd-router, there is no problem for reaching the wireless-client: [fbsd-router]~> ping wireless-client PING 10.239.142.104 (10.239.142.104): 56 data bytes 64 bytes from 10.239.142.104: icmp_seq=0 ttl=128 time=2.633 ms 64 bytes from 10.239.142.104: icmp_seq=1 ttl=128 time=1.614 ms I'm using a bridge because I need to use only one subnet for all my clients (ethernet and wifi): [fbsd-router]~> ifconfig bridge0 bridge0: flags=8843 metric 0 mtu 1500 ether 02:82:9f:45:81:00 inet 10.239.142.126 netmask 0xffffffe0 broadcast 10.239.142.127 nd6 options=49 groups: bridge id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: wlan0 flags=143 ifmaxaddr 0 port 6 priority 128 path cost 33333 member: net1 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 55 And this "unreacheable" problem is related to the bridge, if I remove the wlan0 from the bridge, there is no more problem. What problem can cause FreeBSD to answer back "unreachable" when wlan0 is member of a bridge ? Head versions tested: r290522, r291362, r292613. Thanks,