UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Enabling MAC randomization

    Scheduled Pinned Locked Moved Unsolved Support
    1 Posts 1 Posters 26 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • nielsbasjesN Offline
        nielsbasjes
        last edited by

        Hi,

        I have installed Ubuntu Touch on a FairPhone 5.
        I would like to configure MAC randomization on the WIFI connection.
        I have not been able to find this as a setting in the config app.

        The normal way of doing this with the NetworkManager is by setting these kinds of properties in the config files

        wifi.scan-rand-mac-address=yes
        wifi.cloned-mac-address=random
        

        What I found on my phone is that apparently the /etc/NetworkManager.conf and /etc/NetworkManager/conf.d are all on a readonly file system.
        The /etc/NetworkManager/system-connections is explicitly mounted on a special directory which is writable.

        So far I have only come up with these steps, but they seem to me like too much of a hack.

        • Adding an extra conf.d directory in a writable location (next to the place where the /etc/NetworkManager/system-connections is mounted)
        • Copy all files that are already in there to the new location
        • Add an extra mount line in the /etc/fstab
        • Mount it
        • Add a new config with the above mentioned lines.

        My question is simple: What is the proper way to enable MAC randomization on Ubuntu Touch? Or is the above mentioned way the best available solution?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post