SoftEther OpenVPN random MAC addresses

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
pedroespe
Posts: 5
Joined: Tue Oct 06, 2015 8:31 am

SoftEther OpenVPN random MAC addresses

Post by pedroespe » Tue Oct 06, 2015 8:49 am

Dear colleagues,

We are using SoftEther on the server and OpenVPN clients on Android smartphones. SoftEther server assigns a random MAC addresses to each new client connection. We have the problem that SoftEther assigns all the time the same MAC addresses to clients, when a user disconnects, SoftEther frees that MAC and assigns it to the next new connection.

Now:
00:01:00 User 1 connects : MAC 01:02:03:04:05:06
00:05:15 User 1 disconnects
00:07:35 User 2 connects : MAC 01:02:03:04:05:06 (repeats MAC)
03:01:00 User 3 connects : MAC A1:A2:A3:A4:A5:A6 (new MAC)

For us that is a problem because our services grant users with up to 2 hours of access based on their MACs, so if one user logs in and logs out in less than 2 hours the systems will consider the next user as the same.
Is there a way for SoftEther to not give always the last free MAC to a new user.

Ideal:
00:01:00 User 1 connects : MAC 01:02:03:04:05:06
00:05:15 User 1 disconnects
00:07:35 User 2 connects : MAC A1:A2:A3:A4:A5:A6 (new MAC)
03:01:00 User 3 connects : MAC 01:02:03:04:05:06 (repeats first MAC only after a certain timeout)

Having a timeout before reassigning a MAC address to a new connection will solve this and many other issues.

On OpenVPN client configuration using TAP interface, MAC address can be specified will LLADDR but not on TUN interfaces. Under Android OS only TUN interfaces can be user and MAC cant be specified.

Thank you,
Peter

theodisbutler
Posts: 31
Joined: Mon Feb 24, 2014 12:12 am

Re: SoftEther OpenVPN random MAC addresses

Post by theodisbutler » Thu Oct 08, 2015 12:48 am

How about your services utilize the mac and connecting IP of the client, maybe hash them together even.

theodisbutler
Posts: 31
Joined: Mon Feb 24, 2014 12:12 am

Re: SoftEther OpenVPN random MAC addresses

Post by theodisbutler » Thu Oct 08, 2015 1:14 am

Or probably an easier fix, increase the Lease Limit time to more than 7200 seconds (2 hours) on the SecureNAT Configuration (VirtualDHCP Server) settings.

pedroespe
Posts: 5
Joined: Tue Oct 06, 2015 8:31 am

Re: SoftEther OpenVPN random MAC addresses

Post by pedroespe » Thu Oct 08, 2015 8:21 am

theodisbutler wrote:
> How about your services utilize the mac and connecting IP of the client,
> maybe hash them together even.

On TUN interfaces the MAC address is not sent by the client, its randomly created and assigned by the server. Android clients only supports TUN interfaces.

The IP depends on the MAC if you want it static. If not it keeps changing every login.

pedroespe
Posts: 5
Joined: Tue Oct 06, 2015 8:31 am

Re: SoftEther OpenVPN random MAC addresses

Post by pedroespe » Thu Oct 08, 2015 8:28 am

theodisbutler wrote:
> Or probably an easier fix, increase the Lease Limit time to more than 7200
> seconds (2 hours) on the SecureNAT Configuration (VirtualDHCP Server)
> settings.

Lease time of the DHCP Server of the secureNAT? That applies to IP and I am not sure that with a randomly changing/repeating MAC has any effect. In our system the DHCP is externally handled, not by the SoftEther SecureNAT.

User connects with Android OpenVPN client. Gets a MAC address from SoftEther, the connection is bridged to a LAN with DHCP server, once it has a MAC address from SoftEther it gets an IP from the DHCP server. All works fine BUT SoftEther reassigns a MAC address as soon as its let free by another session being closed. 100 sequential sessions (connect disconnect) will have all the same MAC although they come from different clients.

serhan
Posts: 2
Joined: Sat Oct 10, 2015 10:14 pm

Re: SoftEther OpenVPN random MAC addresses

Post by serhan » Sat Oct 10, 2015 10:21 pm

Hi there,

assigning of random mac addresses is also a problem for us. I would love to see a feature which enables assigning a specific mac address to a specific user. (or list of mac addresses)

Thanks

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

Re: SoftEther OpenVPN random MAC addresses

Post by thisjun » Thu Oct 22, 2015 6:57 am

You can edit the source code.

maltyx
Posts: 65
Joined: Wed Feb 25, 2015 6:53 am

Re: SoftEther OpenVPN random MAC addresses

Post by maltyx » Fri Nov 20, 2015 1:30 pm

Yes, It would be very useful for enable assigning a specific mac address to a specific user feature for Softether VPN server just to make NAC (Network Access Control System) admin's life easier ... :)
My vote for this feature!
Thatnks

Post Reply