From nobody Wed Nov 15 08:44:14 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 4SVcCl1tWKz51BCl for ; Wed, 15 Nov 2023 08:44:19 +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 4SVcCj6zzyz3ftq for ; Wed, 15 Nov 2023 08:44:17 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de; dmarc=none Received: from [212.222.85.178] (helo=pureos) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1r3BVP-000P0L-W0; Wed, 15 Nov 2023 09:44:16 +0100 Date: Wed, 15 Nov 2023 09:44:14 +0100 From: Matthias Apitz To: Alexander Burke , 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 1400094 (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: 212.222.85.178 X-Spamd-Result: default: False [-3.10 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MID_RHS_NOT_FQDN(0.50)[]; RWL_MAILSPIKE_EXCELLENT(-0.40)[178.254.4.101:from]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[questions@freebsd.org]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; MIME_TRACE(0.00)[0:+]; REPLYTO_EQ_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; DMARC_NA(0.00)[unixarea.de]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de] X-Rspamd-Queue-Id: 4SVcCj6zzyz3ftq X-Spamd-Bar: --- El día miércoles, noviembre 15, 2023 a las 08:14:24 +0100, Matthias Apitz escribió: > 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. The posting is here: https://forums.puri.sm/t/usb-tethering-freebsd-laptop-with-l5/21819/3 -- 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.