From owner-freebsd-questions@freebsd.org Tue Jun 9 02:46:22 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 1EF2C345399 for ; Tue, 9 Jun 2020 02:46:22 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 49gvdS5RLdz4JrK for ; Tue, 9 Jun 2020 02:46:20 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-qt1-x82f.google.com with SMTP id y1so16485260qtv.12 for ; Mon, 08 Jun 2020 19:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=AVxZbh7+vpckGoewRE4oRTbShSsrsVNot4Dir1qwEu4=; b=HGO2/WMntIh1HBk5ClBtkNL5+C+vXXknLfTMT684EtNsy3zRz+zVI3rfencFwN/wpA ICd5Q/oj0nggtMLkUHOFxzFdVJAuPGHbQaLsNv17HeKJPcL9HMqDS1gPvsaai5ex5hbD vikbnm6NxAGtRQLjnaJJVYq2udmxRD1dH7O4xOQnzbqtAgggV7RBECBsSmwryMcaG1/U h8BtTapDIry8YfwQyoeLj54U9YgtTLWTktPT8tfaAT+eVaWJyddClKjHn2NuEqEaAliz 2oMYl5F5+2ZAqUCfdunBt0zPyN0V+MfW+Zo0ZlPwzUSwy7IvsQTmRhQVuZA65xHSquMZ jT5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=AVxZbh7+vpckGoewRE4oRTbShSsrsVNot4Dir1qwEu4=; b=bAD9w0yD2KQjypR+GFox9tge7wEmfBZDXLI47IxeSBbpkEGaBbqcp1w1QMKitAPqqU eMrL9zH30AUae71Yq8VYb4oQwGYD4ojG6iIe/NQmLyD2DdKULPa5K0Gos01XxdXDlajK eiAib03kgTyBuDdz1NgdfRkE9ETlztfeCuIBmMVFR4dguyF60RXKFxMjWcFo5KWUhaM7 7I+TTwv9yX5TN9WFVSZ92UgXtf/qyOIFcY1uVTWP3TakMZaltUBmHzk09eZyjGXf/63j ZM6VmdPjDg/xNgpujh5jCuGIbuj67FFkFBlshHYDheF2N4rszVqD/ss9vyvPud2FXG6U sm1A== X-Gm-Message-State: AOAM531ihAwyxa6E/RlAd+gQgaZ2yktHW9AwEl/ZgPyNSjprt3XE/oRx ApMzF91H23acSf0yThN87PVkyITW X-Google-Smtp-Source: ABdhPJykzj7ecqb0ClaNMYUGW23jfgPulQ7c5Xs42cy3AbYM1Q/bRJgnob6LZnswNZLLiel18OJtXQ== X-Received: by 2002:ac8:5354:: with SMTP id d20mr27311719qto.363.1591670779673; Mon, 08 Jun 2020 19:46:19 -0700 (PDT) Received: from [10.0.10.8] (cpe-65-25-53-210.neo.res.rr.com. [65.25.53.210]) by smtp.googlemail.com with ESMTPSA id m94sm9197082qtd.29.2020.06.08.19.46.18 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Jun 2020 19:46:18 -0700 (PDT) Message-ID: <5EDEF7F9.6070001@gmail.com> Date: Mon, 08 Jun 2020 22:46:17 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Polytropon CC: "freebsd-questions@freebsd.org" Subject: Re: determining if host has a dynamic or static ip address References: <5EDECAF9.3080406@gmail.com> <20200609032131.486b48a6.freebsd@edvax.de> In-Reply-To: <20200609032131.486b48a6.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49gvdS5RLdz4JrK X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=HGO2/WMn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of luzar722@gmail.com designates 2607:f8b0:4864:20::82f as permitted sender) smtp.mailfrom=luzar722@gmail.com X-Spamd-Result: default: False [-3.50 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.41)[-0.410]; RECEIVED_SPAMHAUS_PBL(0.00)[65.25.53.210:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.05)[-1.053]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.04)[-1.040]; MIME_GOOD(-0.10)[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::82f:from]; RCVD_TLS_ALL(0.00)[] 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 02:46:22 -0000 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.