From nobody Tue Nov 14 09:27:49 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SV1Dk1Fq4z51BmZ for ; Tue, 14 Nov 2023 09:28:06 +0000 (UTC) (envelope-from alex@alexburke.ca) Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [IPv6:2001:41d0:203:375::b6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SV1Dj6SyKz4Hgb for ; Tue, 14 Nov 2023 09:28:05 +0000 (UTC) (envelope-from alex@alexburke.ca) Authentication-Results: mx1.freebsd.org; none Message-ID: <65b7ecef-b189-4350-a246-3cab934151fd@alexburke.ca> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alexburke.ca; s=key1; t=1699954075; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qGZQvYpXx0NYzufIIqb5TIvQzsVjwXNBXpNYTW5FHh4=; b=k534JP+Omz4LRY3W3wDTurxe9agozySn8w+ZutmoVkx65NiyND68k/db3o50wRgt4BFNiq vl/1uLbyZyMjsLnGLcCij7/7yCn4QIIcz86lfDYmSrShVh/DF4pdZqJYDerKfQHgfAwjQm nhjALDxv2VxT3tp5r4QfAtkMiDDN1Z4= Date: Tue, 14 Nov 2023 10:27:49 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Alexander Burke Subject: USB tethering between FreeBSD and mobile phone (Debian OS) To: questions@freebsd.org Cc: Matthias Apitz References: Content-Language: en-CA, ca, fr, es-ES In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR] X-Rspamd-Queue-Id: 4SV1Dj6SyKz4Hgb Hi Mathias, I added a single line in `/etc/rc.conf` to take care of this automagically when I need to tether via USB to my Pixel running GrapheneOS (which also produces a `ue0` interface on the FreeBSD side): ifconfig_ue0="up SYNCDHCP" IIRC, I found this solution here: https://forums.freebsd.org/threads/wireless-setup-and-syncdhcp.41488/ I'm usually not tethering so it thus causes a slight delay at boot because the interface isn't up at that point and boot is paused until this times out, but it causes `dhclient` to remain running and fetch an address whenever it does come up. It's possible this isn't the best way to do it; perhaps others can chime in to improve further on this implementation. Cheers, Alex