From nobody Wed Nov 15 07:14:24 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 4SVZD353Nhz5163J for ; Wed, 15 Nov 2023 07:14:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SVZD31dwvz3NXh for ; Wed, 15 Nov 2023 07:14:27 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; none Received: from [188.174.60.234] (helo=c720-1400094.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1r3A6T-00GGXt-0X; Wed, 15 Nov 2023 08:14:25 +0100 Received: from c720-1400094.fritz.box (localhost [127.0.0.1]) by c720-1400094.unixarea.de (8.17.1/8.14.9) with ESMTP id 3AF7EOq4002644; Wed, 15 Nov 2023 08:14:24 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by c720-1400094.fritz.box (8.17.1/8.14.9/Submit) id 3AF7EOLF002643; Wed, 15 Nov 2023 08:14:24 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: c720-1400094.fritz.box: guru set sender to guru@unixarea.de using -f Date: Wed, 15 Nov 2023 08:14:24 +0100 From: Matthias Apitz To: Alexander Burke Cc: questions@freebsd.org Subject: Re: USB tethering between FreeBSD and mobile phone (Debian OS) Message-ID: Reply-To: Matthias Apitz References: <65b7ecef-b189-4350-a246-3cab934151fd@alexburke.ca> <091f7b66-ce45-4cf4-a4a9-6cd1de66c09b@qeng-ho.org> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 14.0-CURRENT r1400094 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.60.234 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:42730, ipnet:178.254.0.0/19, country:DE] X-Rspamd-Queue-Id: 4SVZD31dwvz3NXh El día miércoles, noviembre 15, 2023 a las 07:14:53a. m. +0100, Alexander Burke escribió: > Hi Matthias (and anyone who comes across this later), > > The DHCP server should be run on the device capable of acting as an internet gateway (in this case, the phone) or else the setup is backwards from every setup I've come across in 25 years in IT. (In fact, your phone probably already had dhcpd installed for exactly that reason.) > > ... Hi Alexander (and anyone who comes across this later), There is no DHCP server installed in the phone, only a DHCP client: purism@pureos:~$ dpkg -l | grep dhcp ii isc-dhcp-client 4.4.1-2.3+deb11u2 arm64 DHCP client for automatically obtaining an IP address ii isc-dhcp-common 4.4.1-2.3+deb11u2 arm64 common manpages relevant to all of the isc-dhcp packages purism@pureos:~$ apt info isc-dhcp-server Package: isc-dhcp-server Version: 4.4.1-2.3+deb11u2 Priority: optional ... Download-Size: 524 kB APT-Sources: https://repo.pureos.net/pureos byzantium/main arm64 Packages ... i.e. could be downloaded and installed, but it is not. For the reasos that this is not installed and configured in the phone one could read and understand these posting in the Purism's forum: https://forums.puri.sm/t/l5-dhcp-server/21828 I'm not an Debian and NetworkManager expert. It is just a fact, that the phone device sends DHCP requests when carrier comes up. The solution I've configured and documented gives what I was in need: SSH access from the FreeBSD laptop into the phone (to do things there like installations, troubleshooting, readin my mails, etc.). Hope it helps someone in the same need. > > Why swim against the current and make things more complex than they need to be? Because there is no DHCP server installed in the phone. I will copy your (Alexander) public reply from this mailing list into the forum and will ask Purism staff why the things have been setup this ways. Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland.