<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[USD$50 - DHCP Option 82 on status_dhcp_leases.php page]]></title><description><![CDATA[<p dir="auto">We configure our switches to do DHCP Snooping and add option 82 information. WiFi access points can also be configured to inject values, as can a variety of equipment.</p>
<p dir="auto">This information, if included in the dhcp packets, is already saved in /var/dhcpd/var/db/dhcpd.leases</p>
<blockquote>
<p dir="auto">lease 192.168.1.53 {<br />
  starts 0 2014/01/19 23:44:58;<br />
  ends 1 2014/01/20 01:44:58;<br />
  cltt 0 2014/01/19 23:44:58;<br />
  binding state active;<br />
  next binding state free;<br />
  rewind binding state free;<br />
  hardware ethernet aa:08:19:0c:9c:ff;<br />
  uid "\001\000\010\031\014\234\307";<br />
  option agent.circuit-id 0:1:0:e;<br />
  option agent.remote-id 64:66:b3:a3:e9:80;<br />
  client-hostname "samoa";<br />
}</p>
</blockquote>
<p dir="auto">This bounty is merely to display this information on the status_dhcp_leases.php page. The Hex values should be decoded back to ascii.</p>
]]></description><link>https://forum.netgate.com/topic/64792/usd-50-dhcp-option-82-on-status_dhcp_leases-php-page</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 03:45:48 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/64792.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Jan 2014 23:51:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Mon, 13 Jul 2020 07:11:58 GMT]]></title><description><![CDATA[<p dir="auto">Feature request: https://redmine.pfsense.org/issues/6544</p>
]]></description><link>https://forum.netgate.com/post/924079</link><guid isPermaLink="true">https://forum.netgate.com/post/924079</guid><dc:creator><![CDATA[viktor_g]]></dc:creator><pubDate>Mon, 13 Jul 2020 07:11:58 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Thu, 11 May 2017 18:26:30 GMT]]></title><description><![CDATA[<p dir="auto">Could you be more clear. I have it already displaying the values I need to understand which ones and in <a href="https://www.clippp.com/" target="_blank" rel="noopener noreferrer nofollow ugc">what</a> format.</p>
]]></description><link>https://forum.netgate.com/post/699081</link><guid isPermaLink="true">https://forum.netgate.com/post/699081</guid><dc:creator><![CDATA[hermandalig]]></dc:creator><pubDate>Thu, 11 May 2017 18:26:30 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Fri, 21 Apr 2017 22:53:39 GMT]]></title><description><![CDATA[<p dir="auto">This is an old thread, but posting here anyway for future reference :)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djzort">@<bdi>djzort</bdi></a>:</p>
<blockquote>
<p dir="auto">agent.circuit-id is the "port" that the dhcp client is attached to. the hover-over tip should explain that. it would probably be most useful to convert from hex to int and display with slashes or dashes or something. so in this case 0:1:0:e becomes 0/1/0/14</p>
<p dir="auto">agent.remote-id is a mac address or the device that the dhcp client is connected to. the hover-over tip should explain that too. i guess not much to decode for this really. maybe link it to dhcp leases?</p>
</blockquote>
<p dir="auto">Please see RFC 3046:</p>
<ul>
<li>Agent Circuit ID Sub-option: https://tools.ietf.org/html/rfc3046#section-3.1</li>
<li>Agent Remote ID Sub-option: https://tools.ietf.org/html/rfc3046#section-3.2</li>
</ul>
<p dir="auto">Both are supposed to be opaque:<br />
    "The Circuit ID SHOULD be considered an opaque value, with policies based on exact string match only; that is, the Circuit ID SHOULD NOT be internally parsed by the server."<br />
    "The option [NB: Remote ID] SHOULD be considered an opaque value, with policies based on exact string match only; that is, the option SHOULD NOT be internally parsed by the server."</p>
<p dir="auto">In addition, the meaning of both are left to the specific implementations of each particular DHCP Relay Agents:<br />
    Circuit ID:<br />
      - Router interface number<br />
      - Switching Hub port number<br />
      - Remote Access Server port number<br />
      - Frame Relay DLCI<br />
      - ATM virtual circuit number<br />
      - Cable Data virtual circuit number<br />
    Remote ID:<br />
      – a "caller ID" telephone number for dial-up connection<br />
      -- a "user name" prompted for by a Remote Access Server<br />
      -- a remote caller ATM address<br />
      -- a "modem ID" of a cable data modem<br />
      -- the remote IP address of a point-to-point link<br />
      -- a remote X.25 address for X.25 connections</p>
<p dir="auto">IMHO, each switch/router/ras manufacturer/model would have its own implementation that would invalidate the code below (or above depending on sorting :) )</p>
<p dir="auto">If one would be to implement such a feature, maybe an optional input box with some modifiable regex that would be applied on the raw strings might be more future-proof ?</p>
]]></description><link>https://forum.netgate.com/post/690863</link><guid isPermaLink="true">https://forum.netgate.com/post/690863</guid><dc:creator><![CDATA[pzaharia]]></dc:creator><pubDate>Fri, 21 Apr 2017 22:53:39 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Tue, 18 Mar 2014 00:22:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/klaws">@<bdi>Klaws</bdi></a>:</p>
<blockquote>
<p dir="auto">Yes.</p>
<p dir="auto">I'd suggest to use the System Patches package to add this feature to a specific installation.</p>
</blockquote>
<p dir="auto">Yeah probably but then again we may see it get broken. maybe a setting to turn off or on somewhere</p>
]]></description><link>https://forum.netgate.com/post/449486</link><guid isPermaLink="true">https://forum.netgate.com/post/449486</guid><dc:creator><![CDATA[bryan.paradis]]></dc:creator><pubDate>Tue, 18 Mar 2014 00:22:53 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Mon, 17 Mar 2014 15:24:51 GMT]]></title><description><![CDATA[<p dir="auto">Yes.</p>
<p dir="auto">I'd suggest to use the System Patches package to add this feature to a specific installation.</p>
]]></description><link>https://forum.netgate.com/post/449384</link><guid isPermaLink="true">https://forum.netgate.com/post/449384</guid><dc:creator><![CDATA[Klaws]]></dc:creator><pubDate>Mon, 17 Mar 2014 15:24:51 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Thu, 06 Mar 2014 01:57:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djzort">@<bdi>djzort</bdi></a>:</p>
<blockquote>
<p dir="auto">yup looks good.</p>
<p dir="auto">please submit for inclusion in pfsense and pm me your paypal details</p>
</blockquote>
<p dir="auto">Behavoir before merge. Because it is an odd ball thing what do you think about having a option somewhere to enable it or make it show the information if it is exists? I have a feeling that just having it always show up as another column may come up as a problem with the devs on merge.</p>
]]></description><link>https://forum.netgate.com/post/447338</link><guid isPermaLink="true">https://forum.netgate.com/post/447338</guid><dc:creator><![CDATA[bryan.paradis]]></dc:creator><pubDate>Thu, 06 Mar 2014 01:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Thu, 30 Jan 2014 04:46:01 GMT]]></title><description><![CDATA[<p dir="auto">yup looks good.</p>
<p dir="auto">please submit for inclusion in pfsense and pm me your paypal details</p>
]]></description><link>https://forum.netgate.com/post/441340</link><guid isPermaLink="true">https://forum.netgate.com/post/441340</guid><dc:creator><![CDATA[djzort]]></dc:creator><pubDate>Thu, 30 Jan 2014 04:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Tue, 28 Jan 2014 06:19:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djzort">@<bdi>djzort</bdi></a>:</p>
<blockquote>
<p dir="auto">dont forget to add yourself to the credits at the top?</p>
</blockquote>
<p dir="auto">So has this work forfilled your bounty requirements? Have you tried it out yet? Simply backup your status_dhcp_leases.php file and place the one posted above.</p>
]]></description><link>https://forum.netgate.com/post/440928</link><guid isPermaLink="true">https://forum.netgate.com/post/440928</guid><dc:creator><![CDATA[bryan.paradis]]></dc:creator><pubDate>Tue, 28 Jan 2014 06:19:50 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Tue, 28 Jan 2014 02:04:36 GMT]]></title><description><![CDATA[<p dir="auto">dont forget to add yourself to the credits at the top?</p>
]]></description><link>https://forum.netgate.com/post/440922</link><guid isPermaLink="true">https://forum.netgate.com/post/440922</guid><dc:creator><![CDATA[djzort]]></dc:creator><pubDate>Tue, 28 Jan 2014 02:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Fri, 24 Jan 2014 03:14:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djzort">@<bdi>djzort</bdi></a>:</p>
<blockquote>
<p dir="auto">agent.circuit-id is the "port" that the dhcp client is attached to. the hover-over tip should explain that.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djzort">@<bdi>djzort</bdi></a>:</p>
<blockquote>
<p dir="auto">agent.remote-id is a mac address or the device that the dhcp client is connected to. the hover-over tip should explain that too.</p>
</blockquote>
<p dir="auto">Added tooltips to each row and to column title. Let me know if you want just column title tooltips.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djzort">@<bdi>djzort</bdi></a>:</p>
<blockquote>
<p dir="auto">It would probably be most useful to convert from hex to int and display with slashes or dashes or something. so in this case 0:1:0:e becomes 0/1/0/14</p>
</blockquote>
<p dir="auto">Did the conversion of client-id. Remote-id resting as is.</p>
<pre><code>client-id: hex:hex:hex:hex -&gt; dec/dec/dec/dec
remote-id: hex:hex:hex:hex:hex:hex
</code></pre>
<p dir="auto"><a href="https://raw2.github.com/parawizard/pfsense-DHCP82/master/status_dhcp_leases.php" target="_blank" rel="noopener noreferrer nofollow ugc">status_dhcp_leases.php with agent.circuit-id &amp; agent.-remote-id</a></p>
]]></description><link>https://forum.netgate.com/post/440185</link><guid isPermaLink="true">https://forum.netgate.com/post/440185</guid><dc:creator><![CDATA[bryan.paradis]]></dc:creator><pubDate>Fri, 24 Jan 2014 03:14:57 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Fri, 24 Jan 2014 01:17:56 GMT]]></title><description><![CDATA[<p dir="auto">agent.circuit-id is the "port" that the dhcp client is attached to. the hover-over tip should explain that. it would probably be most useful to convert from hex to int and display with slashes or dashes or something. so in this case 0:1:0:e becomes 0/1/0/14</p>
<p dir="auto">agent.remote-id is a mac address or the device that the dhcp client is connected to. the hover-over tip should explain that too. i guess not much to decode for this really. maybe link it to dhcp leases?</p>
]]></description><link>https://forum.netgate.com/post/440176</link><guid isPermaLink="true">https://forum.netgate.com/post/440176</guid><dc:creator><![CDATA[djzort]]></dc:creator><pubDate>Fri, 24 Jan 2014 01:17:56 GMT</pubDate></item><item><title><![CDATA[Reply to USD$50 - DHCP Option 82 on status_dhcp_leases.php page on Fri, 24 Jan 2014 03:15:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/djzort">@<bdi>djzort</bdi></a>:</p>
<blockquote>
<p dir="auto">We configure our switches to do DHCP Snooping and add option 82 information. WiFi access points can also be configured to inject values, as can a variety of equipment.</p>
<p dir="auto">This information, if included in the dhcp packets, is already saved in /var/dhcpd/var/db/dhcpd.leases</p>
<blockquote>
<p dir="auto">lease 192.168.1.53 {<br />
  starts 0 2014/01/19 23:44:58;<br />
  ends 1 2014/01/20 01:44:58;<br />
  cltt 0 2014/01/19 23:44:58;<br />
  binding state active;<br />
  next binding state free;<br />
  rewind binding state free;<br />
  hardware ethernet aa:08:19:0c:9c:ff;<br />
  uid "\001\000\010\031\014\234\307";<br />
  option agent.circuit-id 0:1:0:e;<br />
  option agent.remote-id 64:66:b3:a3:e9:80;<br />
  client-hostname "samoa";<br />
}</p>
</blockquote>
<p dir="auto">This bounty is merely to display this information on the status_dhcp_leases.php page. The Hex values should be decoded back to ascii.</p>
</blockquote>
<p dir="auto">Could you be more clear. I have it already displaying the values I need to understand which ones and in what format.</p>
]]></description><link>https://forum.netgate.com/post/440031</link><guid isPermaLink="true">https://forum.netgate.com/post/440031</guid><dc:creator><![CDATA[bryan.paradis]]></dc:creator><pubDate>Fri, 24 Jan 2014 03:15:57 GMT</pubDate></item></channel></rss>