Static IP for users

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Micu
Posts: 4
Joined: Thu Jan 16, 2014 7:13 am

Static IP for users

Post by Micu » Thu Jan 16, 2014 7:21 am

Is it possible to assign the same IP address to a user each time the user connects from any client?

Thanks,

dragon2611
Posts: 9
Joined: Sun Dec 22, 2013 8:43 pm

Re: Static IP for users

Post by dragon2611 » Thu Jan 16, 2014 9:17 am

That would presumably depend on how your clients get their IP information as it's possible to configure softether in such a way it hands out the IP's or it's equally possible to have it bridge the clients onto an existing network, in which case the networks DHCP server will most likely assign the ips.

mesa57
Posts: 153
Joined: Fri Oct 11, 2013 4:00 pm
Location: Netherlands

Re: Static IP for users

Post by mesa57 » Fri Jan 17, 2014 7:11 pm

Anyway, secureNat does not have a DHCP reservation option. Would be a nice addition to a next release ... :)

arbitrix
Posts: 3
Joined: Fri Jan 17, 2014 9:56 pm

Re: Static IP for users

Post by arbitrix » Fri Jan 17, 2014 10:13 pm

It sure would be nice. As would the ability to associate a specific MAC address with a logged in user so that an external DHCP server can issue a lease based on that.

inten
Posts: 370
Joined: Fri Oct 18, 2013 8:15 am
Location: All around the world
Contact:

Re: Static IP for users

Post by inten » Sat Jan 18, 2014 9:46 am

Hi,
May I ask you why do you need such option?
When you don't like the answer, change the question.
Cheers,
Team.

VPNHPanel.com
This account is not associated to SoftEther project.

qupfer
Posts: 202
Joined: Wed Jul 10, 2013 2:07 pm

Re: Static IP for users

Post by qupfer » Sun Jan 19, 2014 9:04 pm

You can use a external dhcp-server (service) like dnsmasq to give always the same IP to a specifiy MAC address. A good tutorial are aviable here: http://blog.lincoln.hk/blog/2013/05/17/ ... al-bridge/

mesa57
Posts: 153
Joined: Fri Oct 11, 2013 4:00 pm
Location: Netherlands

Re: Static IP for users

Post by mesa57 » Mon Jan 20, 2014 10:55 am

This only works for the Linux version where a TAP adapters is used for vpnserver SecureNAT.

qupfer
Posts: 202
Joined: Wed Jul 10, 2013 2:07 pm

Re: Static IP for users

Post by qupfer » Mon Jan 20, 2014 9:40 pm

mesa57 wrote:
> This only works for the Linux version where a TAP adapters is used for
> vpnserver SecureNAT.

You're sure? As i know, you can bridge on windows nearly everything^^. Why it shouldn't work, if you bridge the vpn-adapter with the phy-adater? Maybe you have to do it manually, but in general? I would think it's possible. But to err is human...so I can be wrong.

mesa57
Posts: 153
Joined: Fri Oct 11, 2013 4:00 pm
Location: Netherlands

Re: Static IP for users

Post by mesa57 » Mon Jan 20, 2014 9:54 pm

If you bridge the softether hub with the phy-nic in windows, you can use the dhcp server which assigned the ip address to the phy-nic to reserve dhcp addresses for the clients. Of course, if there is no dhcp server available you can install one. But I believe the topic starter was using SecureNAT and wanted to assign fixed ip addresses.

Micu
Posts: 4
Joined: Thu Jan 16, 2014 7:13 am

Re: Static IP for users

Post by Micu » Tue Jan 21, 2014 5:16 pm

Thank you all for your answers.
I currently use poptop and use fixed ip to control (with iptables) where users can connect.

prince5
Posts: 2
Joined: Wed Oct 22, 2014 8:12 am

Re: Static IP for users

Post by prince5 » Wed Oct 22, 2014 8:27 am

Static IP needed without third party software, but by SoftEther VPN itself. It is almost contains all VPN options and types, but lacks of assigning static IP. I wrote in another thread, where server can use information in assigning static-fixed IP (http://www.vpnusers.com/viewtopic.php?f ... 8733#p8733)

magedo62
Posts: 1
Joined: Fri Mar 24, 2017 8:06 am

Re: Static IP for users

Post by magedo62 » Fri Mar 24, 2017 8:41 am

I tried to use the secure NAT DHCP server, with a long lease limit
I think it has a bug because it give me maximum one and half month,
And if I took the hub offline, then back online all the lease data is gone.

Even with an external DHCP server and LAN bridge
If using legacy protocol like Raw L2TP , L2TP/IPsec or OpenVPN to connect to the server
The MAC address keep changing,

If I have two users X&Y, two MAC addresses A&B
If User_X log in first will use MAC_A, User_Y use MAC_B
Next time if User_Y log in first use MAC_A, User_X use MAC_B

If the MAC address keep changing, I can't assign static IPs
And I can't use SoftEther VPN client,
Have to use Raw L2TP because am connecting a router to the server.

Is there any work around this problem?

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

Re: Static IP for users

Post by thisjun » Thu Apr 06, 2017 6:19 am

>magedo62
L2TP client doesn't send unique ID.
So, SoftEther VPN can't assign fixed MAC address.

nixmomo
Posts: 2
Joined: Wed Apr 19, 2017 11:20 am

Re: Static IP for users

Post by nixmomo » Fri Apr 21, 2017 7:50 am

Is there any way to fix / hack this?
i need static IP's too cause i have a site to site vpn but with some servers and they must connect to each other..

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

Re: Static IP for users

Post by thisjun » Thu May 18, 2017 5:19 am


Post Reply