From nobody Wed Nov 15 11:19:23 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 4SVggR5pFbz51R5h for ; Wed, 15 Nov 2023 11:20:03 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SVggR0Vfxz4SPt for ; Wed, 15 Nov 2023 11:20:03 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c5210a1515so92975041fa.0 for ; Wed, 15 Nov 2023 03:20:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700047200; x=1700652000; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qYExfDY7I6SXXTf0C8Djk4MCZ47AcvR+FeRl5guyNrg=; b=LLoe2Q5REtJKwFkStLzJy8SJcHVKx1BghVtZEs6jAbJybcN2+wYmfqf+LLsurx1kkx 20lS8SMPLrOZzohN/lPDbBd5xNTK0CX/EaNzIV8Q9DoVUypg0wFmi38SJMB3Jmkklw7c RVBsLF9EYMcJPsfdi8YpZe9oSGE3N1Aa4PXXU/UKt9OJRxdfEkCr8Bz+roigB3QM/2Qn 5SIYMKnHfzOQ4Tv5X33MFawTkrmOndztAG+EfxxXJsK5KCWd2guK8qyJjJJ/R+lTQMtm MnsHgDndBVm4r9FJXAatlUOuHuIdVn/Nzj/sfcdwHXxXdqUomevGuRR6RRNCq1yG0MHj hrQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700047200; x=1700652000; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qYExfDY7I6SXXTf0C8Djk4MCZ47AcvR+FeRl5guyNrg=; b=aUp9SmMlFpJ0Esi6858K1byy6hH/lwQQt4dQoTmn+NMdxXBbLrjR/CD7Gxluz1dAka 95wsnaJ9qKu/n8fBr1H5q+hX33chGWXg01YaPsRFJaLFN6cjm/Rkot97+Qdj93JdT0wV KhMRx2j1ZJnuex6b6WFbRNxjwh8ygUmBdReLA+CoIWIlMbte9V+7m+bEH7WxciMIgwH0 oS8N8suMiCMJgRntdUF+Yg6swpDsdazQU6PKoGR/wYhPSlrM8j9bx0jQCbXaPi27ecF8 hQMyb+UGyR6sDJJixsk+cxzpoivxZLUhbLQWBN1qMPJ9VmwtyNk8xT3UGY6wi2DtRso2 S4Lg== X-Gm-Message-State: AOJu0YxixcHmTWuwPc2gQr+OpHd5j1hpG7kJ6VIOLHV/g0+mCYkx9rVw 8tYzx3xabR125ADCcNQ71johtRebUWxb9P5tB1zYxgpPIxTd0Aw4TtM= X-Google-Smtp-Source: AGHT+IGCv30jaBP8/zy8UYyXhpsFwhwD7n6YJFHG86rKl/lT41+hcEcnWRMTMfBJP4fPcozST9hM+6bFXXViu0g7FRE= X-Received: by 2002:a2e:8758:0:b0:2c7:fa6:7183 with SMTP id q24-20020a2e8758000000b002c70fa67183mr4079136ljj.47.1700047200213; Wed, 15 Nov 2023 03:20:00 -0800 (PST) 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 References: <65b7ecef-b189-4350-a246-3cab934151fd@alexburke.ca> <091f7b66-ce45-4cf4-a4a9-6cd1de66c09b@qeng-ho.org> In-Reply-To: From: Odhiambo Washington Date: Wed, 15 Nov 2023 14:19:23 +0300 Message-ID: Subject: Re: USB tethering between FreeBSD and mobile phone (Debian OS) To: Matthias Apitz Cc: questions@freebsd.org, Arthur Chance , Alexander Burke Content-Type: multipart/alternative; boundary="000000000000785fc4060a2f1561" 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:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4SVggR0Vfxz4SPt --000000000000785fc4060a2f1561 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Nov 15, 2023 at 8:44=E2=80=AFAM Matthias Apitz w= rote: > > Just to end this thread: > > > How to tether the mobile phone Purism Librem 5 with FreeBSD > guru@unixarea.de, November 2023 > > The Purism Librem 5 (L5) runs PureOS, a Debian variant, but no DHCP serve= r. > When an USB-C cable connection between the laptop and the L5 is made, the > NetworkManager in the L5 sees the carrier in the network interface 'usb0' > and launches a DHCP client on the interface. All we have to do, or what > can be done, is launching a DHCP server on the interface 'ue0'. Here is > it's configuration. > > Build and install the port net/isc-dhcp44-server. > > We just use one of the existing example configuration from > /usr/local/etc/dhcpd.conf: > > ... > # A slightly different configuration for an internal subnet. > subnet 10.5.5.0 netmask 255.255.255.224 { > range 10.5.5.26 10.5.5.30; > option domain-name-servers ns1.internal.example.org; > option domain-name "internal.example.org"; > option routers 10.5.5.1; > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Whose IP is 10.5.5.1 ?? The phone or the FreeBSD box? If the phone is getting an IP address from the DHCP server running on the FreeBSD, that IP address is bound to change unless assigned statically by a DHCP reservation! This config is so in reverse that I fail to understand it. Is this intended for the FreeBSD box to access the Internet?? --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --000000000000785fc4060a2f1561 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Nov 15, 2023 at 8:44=E2=80=AF= AM Matthias Apitz <guru@unixarea.de<= /a>> wrote:
<= br> Just to end this thread:


How to tether the mobile phone Purism Librem 5 with FreeBSD
guru@unixarea.de,= November 2023

The Purism Librem 5 (L5) runs PureOS, a Debian variant, but no DHCP server.=
When an USB-C cable connection between the laptop and the L5 is made, the NetworkManager in the L5 sees the carrier in the network interface 'usb= 0'
and launches a DHCP client on the interface. All we have to do, or what
can be done, is launching a DHCP server on the interface 'ue0'. Her= e is
it's configuration.

Build and install the port net/isc-dhcp44-server.

We just use one of the existing example configuration from
/usr/local/etc/dhcpd.conf:

...
# A slightly different configuration for an internal subnet.
subnet 10.5.5.0 netmask 255.255.255.224 {
=C2=A0 range 10.5.5.26 10.5.5.30;
=C2=A0 option domain-name-servers ns1.internal.example.org;
=C2=A0 option domain-name "internal.example.org";
=C2=A0 option routers 10.5.5.1;
^^^^^^^^^^^^^^^^^^^^^^= ^^^^^^^^^^^^

Whose IP is 10.5.5.1 ?? T= he phone or the FreeBSD box?
If the phone is getting an IP address from= the DHCP server running on the FreeBSD, that IP address is bound to change= unless assigned statically by a DHCP reservation!
This config is= so in reverse that I fail to understand it.
Is this intended for= the FreeBSD box to access the Internet??

<= span class=3D"gmail_signature_prefix">--
Best regards,Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223"Oh, the cruft.",=C2=A0= egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83= =84)_/=C2=AF=C2=A0:-)
<= div>[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/sma= rt-questions.html]
--000000000000785fc4060a2f1561--