Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2023 14:19:23 +0300
From:      Odhiambo Washington <odhiambo@gmail.com>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        questions@freebsd.org, Arthur Chance <freebsd@qeng-ho.org>,  Alexander Burke <alex@alexburke.ca>
Subject:   Re: USB tethering between FreeBSD and mobile phone (Debian OS)
Message-ID:  <CAAdA2WN%2Bk96-ru=PUb0hKsNAOAv0G4agJdHSzmx9S_TJVGxe8A@mail.gmail.com>
In-Reply-To: <ZVRavIq94cFxdAV4@c720-1400094.fritz.box>
References:  <ZVMO/8ord7UwUxnz@pureos> <65b7ecef-b189-4350-a246-3cab934151fd@alexburke.ca> <091f7b66-ce45-4cf4-a4a9-6cd1de66c09b@qeng-ho.org> <ZVOm1vDEYf9HUril@c720-1400094.fritz.box> <ZVRavIq94cFxdAV4@c720-1400094.fritz.box>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <guru@unixarea.de> 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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Wed, Nov 15, 2023 at 8:44=E2=80=AF=
AM Matthias Apitz &lt;<a href=3D"mailto:guru@unixarea.de">guru@unixarea.de<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><=
br>
Just to end this thread:<br>
<br>
<br>
How to tether the mobile phone Purism Librem 5 with FreeBSD<br>
<a href=3D"mailto:guru@unixarea.de" target=3D"_blank">guru@unixarea.de</a>,=
 November 2023<br>
<br>
The Purism Librem 5 (L5) runs PureOS, a Debian variant, but no DHCP server.=
<br>
When an USB-C cable connection between the laptop and the L5 is made, the<b=
r>
NetworkManager in the L5 sees the carrier in the network interface &#39;usb=
0&#39;<br>
and launches a DHCP client on the interface. All we have to do, or what<br>
can be done, is launching a DHCP server on the interface &#39;ue0&#39;. Her=
e is<br>
it&#39;s configuration.<br>
<br>
Build and install the port net/isc-dhcp44-server. <br>
<br>
We just use one of the existing example configuration from<br>
/usr/local/etc/dhcpd.conf:<br>
<br>
...<br>
# A slightly different configuration for an internal subnet.<br>
subnet 10.5.5.0 netmask 255.255.255.224 {<br>
=C2=A0 range 10.5.5.26 10.5.5.30;<br>
=C2=A0 option domain-name-servers <a href=3D"http://ns1.internal.example.or=
g" rel=3D"noreferrer" target=3D"_blank">ns1.internal.example.org</a>;<br>
=C2=A0 option domain-name &quot;<a href=3D"http://internal.example.org" rel=
=3D"noreferrer" target=3D"_blank">internal.example.org</a>&quot;;<br>
=C2=A0 option routers 10.5.5.1;<br></blockquote><div>^^^^^^^^^^^^^^^^^^^^^^=
^^^^^^^^^^^^</div><div></div></div><div><br></div>Whose IP is 10.5.5.1 ?? T=
he phone or the FreeBSD box?<div>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!</div><div>This config is=
 so in reverse that I fail to understand it.</div><div>Is this intended for=
 the FreeBSD box to access the Internet??<br clear=3D"all"><div><br></div><=
span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=
=3D"gmail_signature"><div dir=3D"ltr"><div dir=3D"ltr"><div>Best regards,<b=
r>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<b=
r>&quot;<span style=3D"font-size:12.8px">Oh, the cruft.</span><span style=
=3D"font-size:12.8px">&quot;,=C2=A0</span><span style=3D"font-size:12.8px">=
egrep -v &#39;^$|^.*#&#39;=C2=A0</span><span style=3D"background-color:rgb(=
34,34,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Con=
solas,&quot;Courier New&quot;,monospace;font-size:13.6px">=C2=AF\_(=E3=83=
=84)_/=C2=AF</span><span style=3D"font-size:12.8px">=C2=A0:-)</span></div><=
div><span style=3D"font-size:12.8px">[How to ask smart questions:=C2=A0</sp=
an><span style=3D"font-size:12.8px"><a href=3D"http://www.catb.org/~esr/faq=
s/smart-questions.html" target=3D"_blank">http://www.catb.org/~esr/faqs/sma=
rt-questions.html</a>]</span></div></div></div></div></div></div>

--000000000000785fc4060a2f1561--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WN%2Bk96-ru=PUb0hKsNAOAv0G4agJdHSzmx9S_TJVGxe8A>