Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    MAC address on the portal login page

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 3 Posters 3.0k Views
    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.
    • M
      m1s1u
      last edited by

      Hello,

      Is it possible to display MAC address of the client machine on the portal login page? If so how to achieve this?

      Mike

      1 Reply Last reply Reply Quote 0
      • S
        sullrich
        last edited by

        Not without modifying source code at the moment.

        1 Reply Last reply Reply Quote 0
        • GertjanG
          Gertjan
          last edited by

          @m1s1u:

          Is it possible to display MAC address of the client machine on the portal login page? If so how to achieve this?

          Actually, its possible - to have it on the 'Logout' box….
          Add this:

           LogoutWin.document.write('**Client MAC : {$clientmac}** ');
          

          To the file /usr/local/captiveportal/index.php
          on line 316 (search for the other LogoutWin.document.write…. code).
          Edit - save - Done

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.