Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1207368pxb; Thu, 4 Mar 2021 06:10:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxc483EETub5ASx6cTimWH0EK6GGes4tmt0LaLlWR/Jl2mxSA1YeWqD/DsKZhFt7Ojk5XZs X-Received: by 2002:a17:906:5607:: with SMTP id f7mr4352406ejq.262.1614867056736; Thu, 04 Mar 2021 06:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614867056; cv=none; d=google.com; s=arc-20160816; b=0+fh/X8bCmXJ1e5JKeJjFGHjifKESBc+9V01eBMcJc6vkui9KISce/6WSQE9PNeUKN om9GmcQMvaBZXdcPJRX77PpA/vlS3hPlZo76Fr+k4MrRpuJZF+dgflT/ztYwNSw0oju0 Ix8tGwFn/DIfSLH3QVerfSHXox3qKvZBxYpQwx/+mn8QD93VOjy1Ua+TRF2rAF2gDA5R lgqiPgDZcBGPI+6PySYt7W1q1Dk7kgxq2WA1RbayyVgfPV2MpCThu72zy1gySNmEtdBV ORM50nF+W8zfPJ1aIm7DfTLpKqExbFjkV1lxkflB0ZPAS5fG6UbZ7sPNtxBoCj29CJJ+ 6fuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=Dw8xFgrZVztIlPSuTy10oAfdTu62xOSo1BQjghZZXo8=; b=j7+RGLnAZN6HsIIFCJNRazunnccp58twrbwjo9hx0ONvQXRJilck4XM/aoQYfkZgr2 Bunrzto7voEMX4aULc95UjAaPCW/kqleKNyz3BM1U1Sd89fkrDpJjLhFPeY3eeSUyhc+ xOQGIAvuDxC+r8tQIb5L6Z+HQJ3Y4eB9A03e6Zo+1MOv5xUmFVOBgqghRu72leyfFWAm H+tD6tThuS3g+RZQLLngvhcTFuE5X/Ok3sF/Ro8Y58xIemvHaSn9GPwuo6Fpa+68TlTZ ABMXKEBRXTlvvzdzqJ1pWAUxaQ1AlK7Bh8MceVstIAftyQV7Zc27JyKWJ8TmHD4ywB0S BLxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cld5GzQl; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h19si3137334edb.134.2021.03.04.06.10.33; Thu, 04 Mar 2021 06:10:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Cld5GzQl; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235188AbhCDA6g (ORCPT + 99 others); Wed, 3 Mar 2021 19:58:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388623AbhCDAMN (ORCPT ); Wed, 3 Mar 2021 19:12:13 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9210CC061763 for ; Wed, 3 Mar 2021 16:06:30 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id k66so7887455wmf.1 for ; Wed, 03 Mar 2021 16:06:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Dw8xFgrZVztIlPSuTy10oAfdTu62xOSo1BQjghZZXo8=; b=Cld5GzQlscnuJ4EmVzW8EFD/IWW4j+t6apQ87rw4rSpHip0miKspaqhC5lH3UHXsPK zcRgqG1DuzC3oSDDTzcIRuMxuOcEmXp7y1bKIPN3veJsljeeymg1GVUU+uZvGIGBJ5RW BDe0329dBpnTi4moeiRkdHtloP1lzxZMLF8MmcNmNiYv3ZT4sA8J+6RWPE8lUZb/wl7R CD2uL3IrjlocBsn1FGvKfH9mWq0AlHkSwkPFB4PkVaeEt7rk/eAMjbAjcx6Qn9SYlF6X QB2fQnHNQPJCsMJh/JnrpunsfiOUJf9tAt52neMAqxEVRpoIL0iFrTz9y2UoPv5DS5r4 0t1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Dw8xFgrZVztIlPSuTy10oAfdTu62xOSo1BQjghZZXo8=; b=ikb4o1QdYtUVLZW+jIhK85kWuwejLs5SlTj7X37AGGUK3ccuf2Ir0W1OW0N9o9eIxB TYs8IHpG+oMCCxt27LH9e97BRiwsZa8NMlcsjYIPk4TH+D1VhugNjKIO/OZwOmz6zb75 UH/qEOljODwQYwo3tIAj8rbIT/ZqhiK5xa9pSHW5IqcyAg+QYAxnfpnUxIYOOrcPmrPV yiIc/6ypJySAhCP9EhlQESdP7UHSRv7wW4kzTgwaHupL1+WfQItGt6nUMq/IHwfW8jaI YkrSEWlOeVvnZLozdx3nPGTYapGZ9/4VuT9BkaBneTgwBOQnqs5o6i5f43P/UBSh0MpZ 4E7A== X-Gm-Message-State: AOAM532MAG/z6tlktm9MKu87Ino4fTEBH+necbA0t2KWXA9d0qC0IuAD rupM/pLxOsq7oZpBnD9ZgVL2WMDpOGVKlScyAEBMP8mIUNs= X-Received: by 2002:a05:600c:2947:: with SMTP id n7mr1180349wmd.61.1614816389028; Wed, 03 Mar 2021 16:06:29 -0800 (PST) MIME-Version: 1.0 From: Joshua Zhao Date: Wed, 3 Mar 2021 16:06:18 -0800 Message-ID: Subject: bridge mac80211_hwsim AP to internet? To: linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, I'm using mac80211_hwsim to simulate a virtual STA and a virtual AP. How can I bridge the virtual AP to a backhaul link on my PC (e.g. a physical ethernet link) for real internet connection? i.e. so that my virtual STA can access the internet. The AP could be configured in NAT mode or layer-2 bridge mode. Is it possible/supported? Many thanks! Joshua