I
I
Inter Carpenter2016-11-23 14:59:00
linux
Inter Carpenter, 2016-11-23 14:59:00

How to issue a static ip on SoftEther VPN?

Hey!
The problem is issuing static IPs on the VPN server.
Since SoftEther itself has a bad DHCP, dnsmasq was installed
. Through it, I tried to register the binding of the MAC address to IP, but nothing happened, most likely because the server was raised on a VPS and the MAC addresses are different for each client connection.
I tried to write ifconfig 192.168.7.95 192.168.7.1
192.168.7.1 - dhcp address of the dsnmasq gateway in the client config
But nothing happened, OpenVPN writes an address bind error because DHCP is raised
How to solve this problem? I would be happy with the solution, so that the client himself tells which address he should sit on, but I can’t figure out how to implement it

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2016-11-23
@Byrger

The ifconfig directive should contain not your gateway, but a p2p address, usually one less than the client one, i.e. 192.168.7.95 192.168.7.94.

P
pospelov1, 2019-05-22
@pospelov1

Open the dnsmasq configuration file:
Option 1. If you want to allocate a static IP address based on the NIC MAC address of the LAN computer:
Option 2. If you want to allocate a static IP address based on the hostname of the LAN computer:

# Give the machine which says its name is "bert" IP address
# 192.168.200.10 and an infinite lease
# Тому, кто придет назовется бертом выдадим ip навсегда
dhcp-host=bert,192.168.200.10,infinite

Restart dnsmasq:
/etc/init.d/dnsmasq restart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question