I have set up my OpenWrt to connect to my server (running SoftEther, but emulating OpenVPN too, since I had problems getting SoftEther to work with OpenWrt for some reason), but it changes MAC and because of that IP address on the server each time it connects. Is there a way to either set up a static IP from the client or to lock te MAC so it doesn't change? Then I can easily set the static address on the server's DHCP server.
OpenVPN is based on the model that the server will control the clients, so the proper way to do this is to set up a client config directory in the server which will cause the client to always be assigned the same IP. The process to assign tunnel IPs and push them to clients is an integral part of OpenVPN, it is not general DHCP.
3 Likes
As I wrote, it's a server running SoftEther and emulating OpenVPN, so the DHCP server part of the server (not SoftEther itself) gives out the IP addresses. But I take it that it's not possible to define the IP from the client side. Thanks! Then I have to do it from the SoftEther side.