11-04-2019, 08:25 PM
Cloning a MAC address to bypass a captive portal
<div><p>If you ever attach to a WiFi system outside your home or office, you often see a portal page. This page may ask you to accept terms of service or some other agreement to get access. But what happens when you can’t connect through this kind of portal? This article shows you how to use NetworkManager on Fedora to deal with some failure cases so you can still access the internet.</p>
<p> <span id="more-29537"></span> </p>
<h2>How captive portals work</h2>
<p>Captive portals are web pages offered when a new device is connected to a network. When the user first accesses the Internet, the portal captures all web page requests and redirects them to a single portal page.</p>
<p>The page then asks the user to take some action, typically agreeing to a usage policy. Once the user agrees, they may authenticate to a RADIUS or other type of authentication system. In simple terms, the captive portal registers and authorizes a device based on the device’s MAC address and end user acceptance of terms. (The MAC address is <a href="https://en.wikipedia.org/wiki/MAC_address">a hardware-based value</a> attached to any network interface, like a WiFi chip or card.)</p>
<p>Sometimes a device doesn’t load the captive portal to authenticate and authorize the device to use the location’s WiFi access. Examples of this situation include mobile devices and gaming consoles (Switch, Playstation, etc.). They usually won’t launch a captive portal page when connecting to the Internet. You may see this situation when connecting to hotel or public WiFi access points. </p>
<p>You can use NetworkManager on Fedora to resolve these issues, though. Fedora will let you temporarily clone the connecting device’s MAC address and authenticate to the captive portal on the device’s behalf. You’ll need the MAC address of the device you want to connect. Typically this is printed somewhere on the device and labeled. It’s a six-byte hexadecimal value, so it might look like <em>4A:1A:4C:B0:38:1F</em>. You can also usually find it through the device’s built-in menus.</p>
<h2>Cloning with NetworkManager</h2>
<p>First, open <em><strong>nm-connection-editor</strong></em>, or open the WiFI settings via the Settings applet. You can then use NetworkManager to clone as follows:</p>
<ul>
<li>For Ethernet – Select the connected Ethernet connection. Then select the <em>Ethernet</em> tab. Note or copy the current MAC address. Enter the MAC address of the console or other device in the <em>Cloned MAC address</em> field.</li>
<li>For WiFi – Select the WiFi profile name. Then select the WiFi tab. Note or copy the current MAC address. Enter the MAC address of the console or other device in the <em>Cloned MAC address</em> field.</li>
</ul>
<h2><strong>Bringing up the desired device</strong></h2>
<p>Once the Fedora system connects with the Ethernet or WiFi profile, the cloned MAC address is used to request an IP address, and the captive portal loads. Enter the credentials needed and/or select the user agreement. The MAC address will then get authorized.</p>
<p>Now, disconnect the WiFi or Ethernet profile, and change the Fedora system’s MAC address back to its original value. Then boot up the console or other device. The device should now be able to access the Internet, because its network interface has been authorized via your Fedora system.</p>
<p>This isn’t all that NetworkManager can do, though. For instance, check out this article on <a href="https://fedoramagazine.org/randomize-mac-address-nm/">randomizing your system’s hardware address</a> for better privacy.</p>
<figure class="wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-fedora-magazine">
<div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="V7gFe0GI0s"><p><a href="https://fedoramagazine.org/randomize-mac-address-nm/">Randomize your MAC address using NetworkManager</a></p></blockquote>
</div>
</figure>
</div>
https://www.sickgaming.net/blog/2019/11/...ve-portal/
<div><p>If you ever attach to a WiFi system outside your home or office, you often see a portal page. This page may ask you to accept terms of service or some other agreement to get access. But what happens when you can’t connect through this kind of portal? This article shows you how to use NetworkManager on Fedora to deal with some failure cases so you can still access the internet.</p>
<p> <span id="more-29537"></span> </p>
<h2>How captive portals work</h2>
<p>Captive portals are web pages offered when a new device is connected to a network. When the user first accesses the Internet, the portal captures all web page requests and redirects them to a single portal page.</p>
<p>The page then asks the user to take some action, typically agreeing to a usage policy. Once the user agrees, they may authenticate to a RADIUS or other type of authentication system. In simple terms, the captive portal registers and authorizes a device based on the device’s MAC address and end user acceptance of terms. (The MAC address is <a href="https://en.wikipedia.org/wiki/MAC_address">a hardware-based value</a> attached to any network interface, like a WiFi chip or card.)</p>
<p>Sometimes a device doesn’t load the captive portal to authenticate and authorize the device to use the location’s WiFi access. Examples of this situation include mobile devices and gaming consoles (Switch, Playstation, etc.). They usually won’t launch a captive portal page when connecting to the Internet. You may see this situation when connecting to hotel or public WiFi access points. </p>
<p>You can use NetworkManager on Fedora to resolve these issues, though. Fedora will let you temporarily clone the connecting device’s MAC address and authenticate to the captive portal on the device’s behalf. You’ll need the MAC address of the device you want to connect. Typically this is printed somewhere on the device and labeled. It’s a six-byte hexadecimal value, so it might look like <em>4A:1A:4C:B0:38:1F</em>. You can also usually find it through the device’s built-in menus.</p>
<h2>Cloning with NetworkManager</h2>
<p>First, open <em><strong>nm-connection-editor</strong></em>, or open the WiFI settings via the Settings applet. You can then use NetworkManager to clone as follows:</p>
<ul>
<li>For Ethernet – Select the connected Ethernet connection. Then select the <em>Ethernet</em> tab. Note or copy the current MAC address. Enter the MAC address of the console or other device in the <em>Cloned MAC address</em> field.</li>
<li>For WiFi – Select the WiFi profile name. Then select the WiFi tab. Note or copy the current MAC address. Enter the MAC address of the console or other device in the <em>Cloned MAC address</em> field.</li>
</ul>
<h2><strong>Bringing up the desired device</strong></h2>
<p>Once the Fedora system connects with the Ethernet or WiFi profile, the cloned MAC address is used to request an IP address, and the captive portal loads. Enter the credentials needed and/or select the user agreement. The MAC address will then get authorized.</p>
<p>Now, disconnect the WiFi or Ethernet profile, and change the Fedora system’s MAC address back to its original value. Then boot up the console or other device. The device should now be able to access the Internet, because its network interface has been authorized via your Fedora system.</p>
<p>This isn’t all that NetworkManager can do, though. For instance, check out this article on <a href="https://fedoramagazine.org/randomize-mac-address-nm/">randomizing your system’s hardware address</a> for better privacy.</p>
<figure class="wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-fedora-magazine">
<div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="V7gFe0GI0s"><p><a href="https://fedoramagazine.org/randomize-mac-address-nm/">Randomize your MAC address using NetworkManager</a></p></blockquote>
</div>
</figure>
</div>
https://www.sickgaming.net/blog/2019/11/...ve-portal/