Using the lladdr 00:11:22:33:44:55
option in the OpenVPN client custom configuration form doesn't change the MAC of the tap interface.
Paste this in the custom configuration box:
script-security 2
up "/bin/sh -c '/sbin/ifconfig ${dev} down; /usr/sbin/ip link set ${dev} address 00:11:22:33:44:55; /sbin/ifconfig ${dev} up;' "
The OpenVPN client sets dev
as an environment variable.
The lladdr
option does not work because the interface is already up, so OpenVPN (2.2.2) cannot set a MAC address (Device busy).
Hello,
Client connects to server, however the fixed Mac is not showing on the server client list; I'm getting the following message in the client log:
/bin/sh -c /sbin/ifconfig ${dev} down; /usr/sbin/ip link set ${dev} address 00:11:22:33:44:55; /sbin/ifconfig ${dev} up; tap11 1500 1584 192.168.1.
[: bad number
Am I missing something on my server settings? I have FreshTomato Version 2020.3. Thanks.