Use external DHCP server with SoftEther VPN

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
hatimux
Posts: 20
Joined: Fri May 15, 2015 10:20 am

Use external DHCP server with SoftEther VPN

Post by hatimux » Thu May 21, 2015 2:46 pm

Hi,

I'm wonderring if it is possible to use an external DHCP server with the SoftEther VPN server?
What I want is to provide static IP addresses to users (the user will have the same IP address whereever it connects) which is not possible with the SecureNAT function of SoftEther VPN.

Any idea?
Thank you in advance!

kh_tsang
Posts: 551
Joined: Wed Jul 24, 2013 12:09 pm

Re: Use external DHCP server with SoftEther VPN

Post by kh_tsang » Thu May 21, 2015 3:18 pm

You may ask the users to use a specific mac address on their VPN adapter. However, I don't think it can be done if you are using L2TP/IPsec connections.

hatimux
Posts: 20
Joined: Fri May 15, 2015 10:20 am

Re: Use external DHCP server with SoftEther VPN

Post by hatimux » Thu May 21, 2015 3:38 pm

Thanks for your reply.

I want this to work just for SSL VPN.
It might be a good idea to bind the IP address with the MAC Address even I prefer it to be bound to the username.
But how can I bind the IP address to the MAC using SoftEther VPN??

Petrol
Posts: 44
Joined: Wed May 06, 2015 11:23 pm

Re: Use external DHCP server with SoftEther VPN

Post by Petrol » Thu May 21, 2015 10:14 pm

You can use an external DHCP server, it works great. (I'm doing it under linux)

I suggest you to look at this link ( http://blog.lincoln.hk/blog/2013/05/17/ ... al-bridge/ ). It will explain you how to create a local bridge and it will provide you a starter configuration for the DHCP server (which is dnsmasq in the link). After that you can configure the DHCP server to give specific IP to a client based on its MAC address.

I have no Idea how to bind a specific IP to a user based on its username. Actually I don't think it is possible at all because with Softether, it is possible to have multiple instances of a user connected simultaneously to the server. In that case it would result with multiple computers in the network having the same IP address.

kh_tsang
Posts: 551
Joined: Wed Jul 24, 2013 12:09 pm

Re: Use external DHCP server with SoftEther VPN

Post by kh_tsang » Fri May 22, 2015 1:48 am

You can use the access control to restrict the mac address can be used by each user, but users still need to configure their mac address manually.

For IP assignment, binding IP and mac should be done by the external dhcp server. In the security policy of the user, enforce using IP assigned by the DHCP server.

hatimux
Posts: 20
Joined: Fri May 15, 2015 10:20 am

Re: Use external DHCP server with SoftEther VPN

Post by hatimux » Fri May 22, 2015 8:47 am

Thanks Petrol and kh_tsang for your answers. I managed to add a dhcp server and it is working.

For the assignement of IP addresses per user, I think it is possible to use a Radius server but I'm not sure if the SoftEther server can relay IP assignement for users. What do you think?

kh_tsang
Posts: 551
Joined: Wed Jul 24, 2013 12:09 pm

Re: Use external DHCP server with SoftEther VPN

Post by kh_tsang » Fri May 22, 2015 2:27 pm

I have no idea about that.

Petrol
Posts: 44
Joined: Wed May 06, 2015 11:23 pm

Re: Use external DHCP server with SoftEther VPN

Post by Petrol » Sun May 24, 2015 5:31 pm

I might be completly but I don't think that a radius server can do anything else than Authenticating a user.

hatimux
Posts: 20
Joined: Fri May 15, 2015 10:20 am

Re: Use external DHCP server with SoftEther VPN

Post by hatimux » Mon May 25, 2015 12:57 pm

It is rather possible. You can look here: http://wiki.freeradius.org/guide/dhcp-f ... allocation
There is also a radisu option "Framed-IP-Address" that allow allocating addresses to users.

There are other radius solutions that provide the dhcp function like "Radiator", except I'm trying to make it work with freeRadius.

Post Reply