From owner-freebsd-questions@freebsd.org Tue Jun 9 03:01:01 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A6D903459F4 for ; Tue, 9 Jun 2020 03:01:01 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49gvyK0gk9z4LY8 for ; Tue, 9 Jun 2020 03:00:56 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-il1-x12e.google.com with SMTP id 18so18873586iln.9 for ; Mon, 08 Jun 2020 20:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PBq+/arLAMdGKCBTkEjhPKoz32A27BunlxG2Li8KXuM=; b=YHrDXa4ahgAgw1R1YpczKch/CepbgvRn4eDEOQPmhURfycR1YFSC/CwOgic5/8DvCo sRJiHO2EJ7luImqOeE+Y1ZjfTD7YUFU4Z2N3GRWrl45sFTOLOn1DbtyPnt8AnRExVq7j RDiFC5ImeEPnCud28FEQKyPKt6TFh/aHaUeYeuWZ2sZCe9H0yMTFDMRCaPCPtMNuxQfr EakuOtQZ9KGnr7qL1BubTKEB/Fmx+6JZ+4co49M5oox/EOS0pbZs0BcwVbk4VIQLcrGY f5rWPtrE14bQaZ8Hjc42rNAbOswnWeioVspmv84iuA/PPP1x+EEis+vGG9v9ymuS/u9Z WKTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PBq+/arLAMdGKCBTkEjhPKoz32A27BunlxG2Li8KXuM=; b=CRa2cN8emLsFs7DdC3079ixaB8+EdfkNyQCXdJUnCPSDoFI8977XX8wgpWjIGTvGVH bx4/biqcyyy8ww2cT6oQXy6Pk99sDJtfrH2KF1HH/pOE5YlUgs9qErA+l5/Amnpb1DXh Y3EAF4fO5eGnglcRFmMyjQo0YRt+0EYcDjeRiVA8xj39pr11x1TjHfdZxpP5v+NJerp9 JrpDJzgB7MQCc7195cVL+H0Hr8GWUxGBwR49xYQeIKeI2rD9E9o0m2XfC7KJQH4CiRsb xOHmyYxfWAvVmbiMm43RCv8qPiqVaE93ualVElXigTCdGJ3Fa1vtrsGfsQmnwEf3oLrX jBEw== X-Gm-Message-State: AOAM5320vx2q8edyn9vq9mKRntj312LUE0MSvH5VyhINWQjiqaTQmA7+ 4jhlZUaf66SSWzxB3q/K0v/glz9dsY0ZQeEtTVs= X-Google-Smtp-Source: ABdhPJw7++9Z52+j+J9PbNpVWwdPy4I5bxhEXZy5f1PmO2fEIv6IzwDp+Wxk7OsXJw5F8DXrg462V5x2x8wP/qWR7ds= X-Received: by 2002:a05:6e02:eb0:: with SMTP id u16mr25903821ilj.81.1591671655860; Mon, 08 Jun 2020 20:00:55 -0700 (PDT) MIME-Version: 1.0 References: <5EDECAF9.3080406@gmail.com> <20200609032131.486b48a6.freebsd@edvax.de> <5EDEF7F9.6070001@gmail.com> In-Reply-To: <5EDEF7F9.6070001@gmail.com> From: Aryeh Friedman Date: Mon, 8 Jun 2020 23:00:44 -0400 Message-ID: Subject: Re: determining if host has a dynamic or static ip address To: Ernie Luzar Cc: Polytropon , "freebsd-questions@freebsd.org" X-Rspamd-Queue-Id: 49gvyK0gk9z4LY8 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=YHrDXa4a; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::12e as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-3.39 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.31)[-0.306]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.05)[-1.054]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.03)[-1.028]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::12e:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2020 03:01:01 -0000 On Mon, Jun 8, 2020 at 10:46 PM Ernie Luzar wrote: > Polytropon wrote: > > On Mon, 08 Jun 2020 19:34:17 -0400, Ernie Luzar wrote: > >> I am asking if anyone knows of a way to determine what type of public > ip > >> address the host has been ISP assigned [...] > > > > That's not exactly easy to tell. You can examine the hostname > > associated to the IP, and maybe it contains something like "pool" > > or "dynamic" - in that case, it's usually a dynamic IP from a > > specific range. > > > > There are ranges allocated by the ISPs that they use as a pool > > for customers' addresses assigned via DHCP (or a different means), > > for example. You can check if the IP is in such a range. Again, > > it's up to the ISP how they use such a range, as they could use > > a subset for addresses that they actually use as static IPs. > > > > The "rinse & repeat" method is also not reliable: You could > > disconnect and reconnect to your ISP, and if you get a different > > IP each time, it's probably dynamic. If not, it can still be > > assigned dynamically, so no way to be sure. Some ISPs sometimes > > "bind" the dynamic IP to the MAC address of the endpoint (and > > some even use the MAC address as the authentication factor for > > the customer). > > > > More information here: > > > > https://whatismyipaddress.com/dynamic-static > > > > > > > >> [...] by coding a csh script? > > > > Why should anyone do this in _C_ shell?! > > > > Tom Christiansen: "sh Programming Considered Harmful", 1996 > > > > http://harmful.cat-v.org/software/csh > > > > https://www-uxsup.csx.cam.ac.uk/misc/csh.html > > > > I know what I'm talking about, I exactly wrote (and still use) > > one, in numbers: 1, C shell script. ;-) > > > > > > > >> Is it even possible? > > > > Depends. :-) > > > > > > > > > Is there some ISP standard that blocks dynamic ip address customers from > being able to pass bridge and vlan info to the public internet while > static ip address allow that kind of stuff out to the public internet. > Short answer: No Long answer: Unless the dynamic IP's are also private IP's (unroutable blocks) and the static ones are public IP's (or the reverse is true) then no you can not tell the difference. Many ISP's make all their IP's private for two reasons 1) conserve a scarce non-renewable resource (public IP's) and 2) make it so people can't host services/sites on their machines unless they pay for a hosting plan -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org