Android+Openvpn = random MACaddr (no static lease)

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Mike.Peterson
Posts: 3
Joined: Wed May 20, 2015 9:33 am

Android+Openvpn = random MACaddr (no static lease)

Post by Mike.Peterson » Wed May 20, 2015 9:41 am

I am using Softether without virtualNAT, I use dnsmasq and local bridge instead (tap). I have managed to assign static ip addresses using dhcp with dnsmasq.conf to Windows clients.
The problem is that when I connect to this server using Openvpn from Android the MAC address of the android is different each time! So it is impossible to set a static dhcp lease for android client.
The vpn itself works fine, the problem only with random MAC.
How can I set static lease to Ovpn client?
The dnsmasq.leases with android connected looks like this:
1xxxxxxxxx b4:xx:xx:xx:xx:56 192.168.6.33 * 01:xx:xx:xx:xx:xx:42 (those MACs are random on each connect)

Mike.Peterson
Posts: 3
Joined: Wed May 20, 2015 9:33 am

Re: Android+Openvpn = random MACaddr (no static lease)

Post by Mike.Peterson » Tue May 26, 2015 10:59 am

bump

Scriberguy
Posts: 6
Joined: Fri May 22, 2015 9:12 pm

Re: Android+Openvpn = random MACaddr (no static lease)

Post by Scriberguy » Wed May 27, 2015 8:47 pm

I have a similar issue. I use the built in android VPN client. The MACs are not random but seem to be assigned off a first come first serve list. I have an open post about this on this forum.

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Android+Openvpn = random MACaddr (no static lease)

Post by thisjun » Thu Jun 04, 2015 6:18 am

It's normal.
Open VPN or L2TP client doesn't send information to identify the client itself like as MAC address.
If you want to assign static MAC address, try to write a new code.
SoftEther is opensource.

Post Reply