Page 1 of 1

Weird DHCP behavior

Posted: Sun May 14, 2023 7:10 pm
by koval
Hello,
I found very weird DHCP behavior.
I have two clients connected to my VPN server.

- Client 1 - SSTP (Mikrotik router)
- Client 2 - OpenVPN client (Linux OpenVPN client)

At the initial connection, Client 2 - OpenVPN client received IP 192.168.97.1
At the initial connection, Client 1 - SSTP received IP 192.168.97.2

After some days, I found that Client 1 and Client 2 received the same IP address - 192.168.97.1.

According to Secure NAT operation Status:
Allocated DHCP Clients - 0
Virtual DHCP server status is empty.

According to Client 2:

Code: Select all

```
tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 192.168.97.1  netmask 255.255.255.255  destination 192.168.97.2
        inet6 HIDDEN_INFO  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 234504  bytes 24085222 (24.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 692  bytes 33216 (33.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
```

According to Client 1:
2023-05-14_21h01_26.png
DHCP config:
2023-05-14_21h04_05.png
Rebooting the VPN server and reconnecting clients fixed the issues for some time, but after several days, the problem occurred.

Any idea what's wrong with my configuration?

Re: Weird DHCP behavior

Posted: Sun May 14, 2023 11:33 pm
by solo
Your config is OK. Switch from SE vDHCP to dnsmsq, https://www.vpnusers.com/viewtopic.php? ... 439#p98489