Re: USB tethering between FreeBSD and mobile phone (Debian OS)

From: Odhiambo Washington <odhiambo_at_gmail.com>
Date: Wed, 15 Nov 2023 11:19:23 UTC
On Wed, Nov 15, 2023 at 8:44 AM Matthias Apitz <guru@unixarea.de> wrote:

>
> 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 '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??

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]