From owner-freebsd-questions@freebsd.org Sun Jun 20 18:31:52 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1710F657119 for ; Sun, 20 Jun 2021 18:31:52 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G7Lpv0x4Bz4bBD for ; Sun, 20 Jun 2021 18:31:50 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wr1-x429.google.com with SMTP id a11so17014936wrt.13 for ; Sun, 20 Jun 2021 11:31:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=K6DUqvfnrfCws9wJ+5xqMsXub9zLrjZ5NgaT4RFmu8M=; b=RC2fCl2EnF2UN+28B3NTVpRSGocf8QK1u2NX7mQevtbpalJLKYkI2YNFlLNS4jtpiX SRlMUIzbGrrsoBu0JZj2Ak9rD7K3dyn346WueoiKGX+fNpCVsC7bHLqsZIX7qclWjUVa /CSSYFcpJa4vN5uoZM8rwkvlJaNTaLJWYLC/vcl+An41znmloHZConDwEp34qEiyeIEg c6RaSlaYL8IC4YgL5VoXWlhEEZjso/Vw/0A/9WRVexp/jmvmrSG4oEfyVMYGKWs624s9 sylVm4CUEJD6AYsYS2bg4Pz2cqhsqFp8xjGFxhIF/PAhN9YI9eLu4VdzygaajVBfdH5r vbdg== X-Gm-Message-State: AOAM532rlBj01/wWekHLcq5w1DCJXczt5JXXJLQsNz4D5UpDHSjjAG1E El4mSZjt7QEoFVCYhKuRJ9FL7i1I3Tw= X-Google-Smtp-Source: ABdhPJzX4W8xDoOtClzDynyiepmv4d2NkUf6gXun+SOHg5fvS/5L8+GZoHe/cvjApf6DNH9mdaVlOQ== X-Received: by 2002:a5d:4acf:: with SMTP id y15mr12644237wrs.96.1624213909637; Sun, 20 Jun 2021 11:31:49 -0700 (PDT) Received: from gumby.homeunix.com (88-111-224-31.dynamic.dsl.as9105.com. [88.111.224.31]) by smtp.gmail.com with ESMTPSA id i3sm9098951wmb.15.2021.06.20.11.31.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 11:31:49 -0700 (PDT) Date: Sun, 20 Jun 2021 19:31:47 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Bridging from WiFi to ethernet Message-ID: <20210620193147.326e6e84@gumby.homeunix.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd12.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4G7Lpv0x4Bz4bBD X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[googlemail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RECEIVED_SPAMHAUS_PBL(0.00)[88.111.224.31:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::429:from]; DWL_DNSWL_NONE(0.00)[googlemail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::429:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::429:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2021 18:31:52 -0000 Does anyone have a working set of entries in rc.conf to bridge traffic between ethernet and WiFI adaptors? The reason I ask is that I have an ethernet printer that I only use from a Windows laptop (and maybe android in future). The printer used to plug into the wireless router, but a new router is next to the master socket, and the printer is now inaccessible from mobile devices. My wifi is set up like this wlans_rtwn0="wlan0" create_args_wlan0="country GB" ifconfig_wlan0="WPA inet 192.168.1.101 netmask 255.255.255.0 ssid mynetworkname" and it works (without bridging). From what it says in section 32.6 of the handbook I thought that something like the following would work: ifconfig_re0="up" # Ethernet adaptor wlans_rtwn0="wlan0" create_args_wlan0="country GB" ifconfig_wlan0="up WPA ssid mynetworkname" # IP address goes on the bridge ifconfig_bridge0=" inet 192.168.1.101/24 addm re0 addm wlan0 up" but after booting the bridge had no IP address and only had re0 as a member. Thinking it was likely a timing problem I commented-out the bridge line and configured the bridge manually after boot. I also ran route add default 192.168.1.1 The bridge now had an IP address and two member interfaces. bridge0 was also showing as the interface for the default route. It all looked OK, but it doesn't work. I can't even ping the router.