Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fedora - Cloning a MAC address to bypass a captive portal

#1
Cloning a MAC address to bypass a captive portal

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.

How captive portals work


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.

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 hardware-based value attached to any network interface, like a WiFi chip or card.)

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.

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 4A:1A:4C:B0:38:1F. You can also usually find it through the device’s built-in menus.

Cloning with NetworkManager


First, open nm-connection-editor, or open the WiFI settings via the Settings applet. You can then use NetworkManager to clone as follows:

  • For Ethernet – Select the connected Ethernet connection. Then select the Ethernet tab. Note or copy the current MAC address. Enter the MAC address of the console or other device in the Cloned MAC address field.
  • 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 Cloned MAC address field.

Bringing up the desired device


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.

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.

This isn’t all that NetworkManager can do, though. For instance, check out this article on randomizing your system’s hardware address for better privacy.




https://www.sickgaming.net/blog/2019/11/...ve-portal/
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Fedora - Contribute at Fedora Linux 34 Upgrade, Audio, and Virtualization test days xSicKxBot 0 10 04-06-2021, 10:27 AM
Last Post: xSicKxBot
  Fedora - Fedora Council statement on Richard Stallman rejoining FSF Board xSicKxBot 0 10 04-03-2021, 11:11 AM
Last Post: xSicKxBot
  Fedora - Network address translation part 3 – the conntrack event framework xSicKxBot 0 18 03-26-2021, 10:16 AM
Last Post: xSicKxBot
  Fedora - Announcing the release of Fedora Linux 34 Beta xSicKxBot 0 24 03-24-2021, 02:28 PM
Last Post: xSicKxBot
  Fedora - Fedora Workstation 34 Feature Focus: Updated Activities Overview xSicKxBot 0 28 03-17-2021, 03:08 PM
Last Post: xSicKxBot
  Fedora - How to use Poetry to manage your Python projects on Fedora xSicKxBot 0 28 03-09-2021, 10:57 AM
Last Post: xSicKxBot
  Fedora - Getting started with COBOL development on Fedora Linux 33 xSicKxBot 0 36 02-28-2021, 01:55 PM
Last Post: xSicKxBot
  Fedora - Contribute at the Fedora Audio, Kernel 5.11 and i18n test days xSicKxBot 0 46 02-26-2021, 01:09 PM
Last Post: xSicKxBot
  Fedora - Installing Nextcloud 20 on Fedora Linux with Podman xSicKxBot 0 67 02-16-2021, 07:51 AM
Last Post: xSicKxBot
  Fedora - Network address translation part 2 – the conntrack tool xSicKxBot 0 60 02-13-2021, 12:41 PM
Last Post: xSicKxBot

Forum Jump:

[-]
Active Threads
News - Japanese Charts: Monster Hunter R...
Last Post: xSicKxBot
Today 12:50 AM
» Replies: 0
» Views: 1
News - Power Rangers' Tyrannosaurus Sent...
Last Post: xSicKxBot
Today 12:50 AM
» Replies: 0
» Views: 1
[Tut] Your First Dash App – How to Get S...
Last Post: xSicKxBot
Yesterday 06:58 PM
» Replies: 0
» Views: 3
(Indie Deal) Patrician, Sudden Strike, C...
Last Post: xSicKxBot
Yesterday 05:40 PM
» Replies: 0
» Views: 3
picoCAD — A Tiny Modeller For Tiny Model...
Last Post: xSicKxBot
Yesterday 05:40 PM
» Replies: 0
» Views: 4
News - Community Focus – Gumpita
Last Post: xSicKxBot
Yesterday 05:38 PM
» Replies: 0
» Views: 3
Xbox Wire - Black Desert: New Sage Class...
Last Post: xSicKxBot
Yesterday 05:37 PM
» Replies: 0
» Views: 4
News - Twitch outlines plan to take acti...
Last Post: xSicKxBot
Yesterday 05:36 PM
» Replies: 0
» Views: 9
News - Don’t Miss: Devs reflect on the i...
Last Post: xSicKxBot
Yesterday 05:36 PM
» Replies: 0
» Views: 8
News - World War 2 MMO Enlisted Out Now ...
Last Post: xSicKxBot
Yesterday 05:36 PM
» Replies: 0
» Views: 8

[-]
Twitter

[-]
Sponsored
Get the Deal of the Week at RefurBees.com

Copyright © SickGaming.net 2012-2020