Static MAC address

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
nobaq
OpenVpn Newbie
Posts: 7
Joined: Sun Jul 28, 2013 11:43 pm

Static MAC address

Post by nobaq » Wed Aug 07, 2013 4:28 pm

Hi,

To have a special configuration pushed to my clients, I want to give each client a static MAC address.

I found lladdr. However, this option seem sto be ignored! I set e.g.:
dev tap
lladdr 00:FF:33:AC:7F:84
dev-node "OpenVPN"

but ipconfig /all still reports the old MAC address - also the DHCP server on the other end receives the old MAC. Is lladdr broken?

Is there a different way how I can set a static/persistent MAC address for a tap device?
Thank you!

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Static MAC address

Post by maikcat » Thu Aug 08, 2013 10:38 am

can you post the output of ipconfig on your windows client?

if you ommit dev-node parameter,still not working?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

nobaq
OpenVpn Newbie
Posts: 7
Joined: Sun Jul 28, 2013 11:43 pm

Re: Static MAC address

Post by nobaq » Thu Aug 08, 2013 10:03 pm

Hi, thanks.

No change if I remove dev-node.

Code: Select all

...
Ethernet adapter OpenVPN:

   Connection-specific DNS Suffix  . : intra.example.com
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-33-AA-6F-DD
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.0.204(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, August 07, 2013 10:06:03
   Lease Expires . . . . . . . . . . : Thursday, October 03, 2013 14:40:23
   DHCP Server . . . . . . . . . . . : 192.168.0.10
   DNS Servers . . . . . . . . . . . : 192.168.0.10
   Primary WINS Server . . . . . . . : 192.168.0.10
   NetBIOS over Tcpip. . . . . . . . : Enabled
...
But when starting the tunnel from command line I found an interesting message now: "Thu Aug 08 22:41:03 2013 Sorry, but I don't know how to configure link layer addresses on this operating system."

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Static MAC address

Post by maikcat » Fri Aug 09, 2013 6:07 am

what OS is your client?
can you post full client log?
what openvpn version are you using?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

nobaq
OpenVpn Newbie
Posts: 7
Joined: Sun Jul 28, 2013 11:43 pm

Re: Static MAC address

Post by nobaq » Fri Aug 09, 2013 11:17 pm

Hi,

Thanks again. The full log is (replaced public IP with 192.0.2.1 for privacy reaons):

Code: Select all

Fri Aug 09 23:51:29 2013 OpenVPN 2.3.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Jun  3 2013
Fri Aug 09 23:51:29 2013 UDPv4 link local (bound): [undef]
Fri Aug 09 23:51:29 2013 UDPv4 link remote: [AF_INET]192.0.2.1:1194
Fri Aug 09 23:51:32 2013 [server] Peer Connection Initiated with [AF_INET]192.0.2.1:1194
Fri Aug 09 23:51:34 2013 open_tun, tt->ipv6=0
Fri Aug 09 23:51:34 2013 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{33AA6FDD-9E44-42F4-AE15-DBF15360B579}.tap
Fri Aug 09 23:51:34 2013 Successful ARP Flush on interface [25] {33AA6FDD-9E44-42F4-AE15-DBF15360B579}
Fri Aug 09 23:51:34 2013 Sorry, but I don't know how to configure link layer addresses on this operating system.
Fri Aug 09 23:51:39 2013 Initialization Sequence Completed
OpenVPN is the latest, 2.3.2 and Client is Windows 9. OpenVPN is started with admin rights.

Thanks!

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Static MAC address

Post by maikcat » Sat Aug 10, 2013 5:16 pm

windows 9...? :shock:

i dont know if openvpn works in win 9....

developers any comment? :)

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

nobaq
OpenVpn Newbie
Posts: 7
Joined: Sun Jul 28, 2013 11:43 pm

Re: Static MAC address

Post by nobaq » Sun Aug 11, 2013 2:04 am

Windows 8 of course ;)

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Static MAC address

Post by maikcat » Mon Aug 12, 2013 8:55 am

because i am not M$ expert , i still dont know if openvpn supports win8....

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply