<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=6852&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / What is the real MAC of wlan0 ?]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=6852</link>
		<description><![CDATA[The most recent posts in What is the real MAC of wlan0 ?.]]></description>
		<lastBuildDate>Thu, 28 Nov 2024 15:59:55 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=53137#p53137</link>
			<description><![CDATA[<p>Thanks @... </p><p><span class="bbc">lshw</span> give me</p><div class="quotebox"><blockquote><div><p>bash: lshw: command not found</p></div></blockquote></div><p>but <span class="bbc">ifconfig</span> seem correct btw</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Thu, 28 Nov 2024 15:59:55 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=53137#p53137</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52373#p52373</link>
			<description><![CDATA[<p>The command &quot;sudo lshw&quot; provides this information on my MacBook Pro:<br />============================================<br />*-network<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; description: Wireless interface<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; product: BCM4331 802.11a/b/g/n<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; vendor: Broadcom Inc. and subsidiaries<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; physical id: 0<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; bus info: pci@0000:03:00.0<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; logical name: wlp3s0b1<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; version: 02<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <strong>serial: ce:90:b4:79:b7:53</strong><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; width: 64 bits<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; clock: 33MHz<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; configuration: broadcast=yes driver=b43 driverversion=6.1.0-25-rt-amd64 firmware=784.2 latency=0 link=no multicast=yes wireless=IEEE 802.11<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; resources: irq:17 memory:a0600000-a0603fff<br />============================================<br />Does this help?</p>]]></description>
			<author><![CDATA[dummy@example.com (Babarosa)]]></author>
			<pubDate>Sat, 21 Sep 2024 14:54:52 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52373#p52373</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52372#p52372</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>quickfur wrote:</cite><blockquote><div><p>... gone are the good ole days where you can count on MACs being a reliable device identifier.</p></div></blockquote></div><p>Been following this thread because it is of interest to me.<br />eg: I have wireless turned off in my fibre modem but was <em>considering</em> turning it on only for very specific purposes.</p><p>So ...<br />What is left if the only protection left seems to be WPA2?</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 21 Sep 2024 09:04:47 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52372#p52372</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52370#p52370</link>
			<description><![CDATA[<p>In the good ole days MAC addresses are supposed to be unique and immutable, but unfortunately, these days MAC randomization is definitely a thing, and getting more and more widespread. More and more devices and peripherals these days come with randomization built-in, and some devices even offer user-customizable MAC addresses. Many modern cellphones automatically randomize their MACs upon connecting to a new WiFi network. </p><p>I&#039;ve actually looked into firewall filtering by MAC before, for a fairly large public Wi-Fi network. My conclusion, unfortunately, is that these days it is essentially useless, because (1) it is broadcast in the clear, and (2) people can and do eavesdrop on your MAC addresses and spoof them. It&#039;s as easy as changing a system setting. Which means (3) filtering by MAC is basically worthless. Worse yet, (4) many devices actually stop working properly if you force them not to randomize their MACs. If they even let you turn it off in the first place. Some devices no longer even offer the option.</p><p>Given this state of affairs, it&#039;s hardly surprising that the firmware driver will automatically do MAC randomization upon startup. Long gone are the good ole days where you can count on MACs being a reliable device identifier.</p>]]></description>
			<author><![CDATA[dummy@example.com (quickfur)]]></author>
			<pubDate>Sat, 21 Sep 2024 05:58:13 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52370#p52370</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52369#p52369</link>
			<description><![CDATA[<p><span class="bbc">ethtool -P wlan0</span> might show something, probably the working address though.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 21 Sep 2024 03:43:03 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52369#p52369</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52368#p52368</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>I suppose it could store it textually?<br />would be 37363a30633a64313a34363a66373a3839 in hex</p></div></blockquote></div><p>Good idea but no luck. I think we&#039;ve excluded that the initial mac address is hardcoded in the firmware.</p><p>Hi pcalvert. That&#039;s a good thought, but not applicable to my setup. The settings you are referring to are <span class="bbc">wifi.scan-rand-mac-address</span> and <span class="bbc">wifi.mac-address-randomization</span>. I use MAC address filtering in my router, so definitely don&#039;t want my devices to connect using randomized MAC addresses. I can confirm that NetworkManager is not using any of these settings:</p><div class="codebox"><pre><code>$ cd /etc/NetworkManager/
$ sudo grep -r &#039;mac-address&#039; *
[no hits]</code></pre></div><p>Plus, I dual boot Devuan and Tiny Core Linux. In the latter, MAC address of my wireless card is the same as what Devuan is showing me (i.e., <span class="bbc">54:2a:a2:6a:xx:xx</span>).</p><p>Ralph, I think your initial theory is sounds right: There must be a hardware MAC address, which the driver or firmware changes to what I think of as my &quot;actual&quot; MAC address.&#160; A small amount of time (~2 seconds) elapses between wlan0 being brought up and the driver/firmware changing the MAC address.</p><p>EDIT: Ralph, if you run my trivial script in reply #2 as a startup job, can you reproduce my observation that MAC address changes? (Although exactly what happens--and when--likely depends on the specific hardware, driver, and firmware.)</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Sat, 21 Sep 2024 03:23:08 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52368#p52368</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52367#p52367</link>
			<description><![CDATA[<p>I recently read that Network Manager automatically generates a random MAC address for a wireless connection.</p>]]></description>
			<author><![CDATA[dummy@example.com (pcalvert)]]></author>
			<pubDate>Sat, 21 Sep 2024 02:13:54 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52367#p52367</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52366#p52366</link>
			<description><![CDATA[<p>I suppose it could store it textually?<br />would be 37363a30633a64313a34363a66373a3839 in hex</p><p>EDIT: would be odd to do</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 21 Sep 2024 01:07:12 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52366#p52366</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52365#p52365</link>
			<description><![CDATA[<p>This wireless card requires two firmware files. I cannot find that initial MAC address in either file. </p><div class="codebox"><pre><code>$ xxd -p mt7662.bin | tr -d &#039;\n&#039; | grep 760cd146f789
[no hits]
$ xxd -p mt7662_rom_patch.bin | tr -d &#039;\n&#039; | grep 760cd146f789
[no hits]</code></pre></div><p>Maybe I&#039;m not looking the right way.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Sat, 21 Sep 2024 00:33:46 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52365#p52365</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52364#p52364</link>
			<description><![CDATA[<p>mmm then maybe it&#039;s the opposite way; that the firmware loads with some random default mac, and this eventually gets updated from the hardware. If so I suppose a binary scan of the firmware could possibly find that first mac...</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 20 Sep 2024 23:49:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52364#p52364</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52363#p52363</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Perhaps the MAC is changed by firmware?</p></div></blockquote></div><p>Hi ralph.ronnquist. I&#039;d love to get to the bottom of this if you can help me. I tried removing the firmware files to see what would happen. If I boot without the firmware, I get this (which is more or less what I expected):</p><div class="codebox"><pre><code>$ cat /sys/class/net/wlan0/address
cat: /sys/class/net/wlan0/address: No such file or directory</code></pre></div><p>What would be the best way to test your theory?</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Fri, 20 Sep 2024 23:27:35 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52363#p52363</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52362#p52362</link>
			<description><![CDATA[<p>Perhaps the MAC is changed by firmware? In that story the first would be hardware (PROM) MAC while the latter would be a firmware derivative. Guesswork.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 20 Sep 2024 20:34:28 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52362#p52362</guid>
		</item>
		<item>
			<title><![CDATA[Re: What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52361#p52361</link>
			<description><![CDATA[<p>Hi SpongeBOB. Try <span class="bbc">cat /sys/class/net/wlan0/address</span></p><p>Although in my tests on Devuan, the above command gives a nonsense address if run in the first two seconds after booting. Does anyone know why? If I run this little script at boot:</p><div class="codebox"><pre><code>#!/bin/sh
while true; do
    cat /sys/class/net/wlan0/address &gt;&gt;/home/bruno/Deskop/log.txt
    sleep 1
done</code></pre></div><p>The first two lines in the log file show the unexpected <span class="bbc">76:0c:d1:46:f7:89</span>. Lines three onwards show the device&#039;s true mac address, which is <span class="bbc">54:2a:a2:6a:xx:xx</span> (redacted for privacy).</p><p>I&#039;ve always wondered why wlan0&#039;s mac address in /sys/class/net/wlan0/address is only accurate approximately 2 seconds after boot. Does anyone have any idea?</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Fri, 20 Sep 2024 20:21:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52361#p52361</guid>
		</item>
		<item>
			<title><![CDATA[What is the real MAC of wlan0 ?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=52354#p52354</link>
			<description><![CDATA[<p>Hi,</p><p>in Devuan 4 (that run as a Virtual Machine) </p><p>in the xfce GUI Network connection, under the tab Wi-Fi I can see Device: wlan0 (a MAC address )</p><p>with <span class="bbc">nmcli</span></p><div class="quotebox"><blockquote><div><p>...<br />wifi (the chipset name), a different MAC address <br />...</p></div></blockquote></div><p>So I was wondering which one give the true &quot;physical&quot;/OEM MAC address </p><p>Thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (SpongeBOB)]]></author>
			<pubDate>Fri, 20 Sep 2024 10:12:44 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=52354#p52354</guid>
		</item>
	</channel>
</rss>
