Browse code

man: Clarify IV_HWADDR

The IV_HWADDR description was only partially correct, as there are more
implementations using other values than the MAC address of the default
gateway.

The intention of this value is to provide a unique identifier of the
client and on some platforms this is not possible to retrieve other than
to generate this information.

The 64 bytes limitation is an arbitrary value, it is not enforced by
OpenVPN 2.x. But it was considered a good idea to at least have some
reasonable upper limit of how long this string can be, at least for
those implementing support for this information.

Signed-off-by: David Sommerseth <davids@openvpn.net>

Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20210709134849.161728-1-openvpn@sf.lists.topphemmelig.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22625.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>

David Sommerseth authored on 2021/07/09 22:48:49
Showing 1 changed files
... ...
@@ -467,8 +467,14 @@ fast hardware. SSL/TLS authentication must be used in this mode.
467 467
   When ``--push-peer-info`` is enabled the additional information consists
468 468
   of the following data:
469 469
 
470
-  :code:`IV_HWADDR=<mac address>`
471
-        The MAC address of clients default gateway
470
+  :code:`IV_HWADDR=<string>`
471
+        This is intended to be a unique and persistent ID of the client.
472
+        The string value can be any readable ASCII string up to 64 bytes.
473
+        OpenVPN 2.x and some other implementations use the MAC address of
474
+        the client's interface used to reach the default gateway. If this
475
+        string is generated by the client, it should be consistent and
476
+        preserved across independent session and preferably
477
+        re-installations and upgrades.
472 478
 
473 479
   :code:`IV_SSL=<version string>`
474 480
         The ssl version used by the client, e.g.