[GH-ISSUE #1647] Incorrect IP address assignment #700

Open
opened 2026-10-13 20:26:46 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @BlitDev on GitHub (Jun 12, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1647

Describe the bug
My server has 10.72.7.0/24 subnet. And my device has 10.72.7.2/24 address. I checked the config, it definitely contains valid address (10.72.7.2), but for some reason, when I use AmneziaVPN client on NixOS, it assigns 10.72.7.0/32 IP, not the one listed in the config.

I tried to add valid IP address manually, and delete the incorrect one. Then, VPN worked.

To Reproduce
Steps to reproduce the behavior:

  1. Click on "Connect" button

Expected behavior
The client assigns itself the correct IP.

Log files

$ AmneziaVPN
QSystemTrayIcon::setVisible: No Icon set
IpcClient::init succeed
Started AmneziaVPN version 4.8.6.0 
NixOS 25.05 (Warbler) (x86_64)
SSL backend: OpenSSL 3.0.13 30 Jan 2024
VpnConfigurator::getDnsForConfig "10.89.0.1" "9.9.9.9"
"Trying to connect to VPN, server index is 0, container is amnezia-awg"
IpcClient::init succeed
"Site split tunneling is disabled, route mode is 0"
"App split tunneling is disabled, route mode is 0"
Amnezia "LocalSocketController" "Initializing"
Amnezia "LocalSocketController" "Connecting to: /var/run/amneziavpn/daemon.socket"
Amnezia "LocalSocketController" "Daemon connected"
Amnezia "LocalSocketController" "Check status"
Amnezia "LocalSocketController" "Reading"
Amnezia "LocalSocketController" "Parse command: status"
Amnezia "LocalSocketController" "Reading"
Amnezia "LocalSocketController" "Parse command: connected"
Amnezia "LocalSocketController" "Handshake completed with: /R4Ka8p1UGf1YCPDWkyApeNcdDMALLVXFspg5YILmXU="
Amnezia "LocalSocketController" "Deactivating"
VpnConfigurator::getDnsForConfig "10.89.0.1" "9.9.9.9"
"Trying to connect to VPN, server index is 0, container is amnezia-awg"
IpcClient::init succeed
"Site split tunneling is disabled, route mode is 0"
"App split tunneling is disabled, route mode is 0"
Amnezia "LocalSocketController" "Initializing"
Amnezia "LocalSocketController" "Connecting to: /var/run/amneziavpn/daemon.socket"
Amnezia "LocalSocketController" "Daemon connected"
Amnezia "LocalSocketController" "Check status"
Amnezia "LocalSocketController" "Reading"
Amnezia "LocalSocketController" "Parse command: status"
Amnezia "LocalSocketController" "Reading"
Amnezia "LocalSocketController" "Parse command: connected"
Amnezia "LocalSocketController" "Handshake completed with: /R4censoredgmXU="

Screenshots
just after connect through the app.
Image
the VPN doesn't work.

after sudo ip addr add 10.72.7.2/24 dev amn0; sudo ip addr delete 10.72.7.0/32 dev amn0 command
Image
and... the VPN works.

Desktop (please complete the following information):

  • OS: NixOS
  • Version: Current Stable 25.05

Server (please complete the following information):

  • NOT A SERVER PROBLEM
Originally created by @BlitDev on GitHub (Jun 12, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1647 **Describe the bug** My server has 10.72.7.0/24 subnet. And my device has 10.72.7.2/24 address. I checked the config, it definitely contains valid address (10.72.7.2), but for some reason, when I use AmneziaVPN client on NixOS, it assigns 10.72.7.0/32 IP, not the one listed in the config. I tried to add valid IP address manually, and delete the incorrect one. Then, VPN worked. **To Reproduce** Steps to reproduce the behavior: 1. Click on "Connect" button **Expected behavior** The client assigns itself the correct IP. **Log files** ``` $ AmneziaVPN QSystemTrayIcon::setVisible: No Icon set IpcClient::init succeed Started AmneziaVPN version 4.8.6.0 NixOS 25.05 (Warbler) (x86_64) SSL backend: OpenSSL 3.0.13 30 Jan 2024 VpnConfigurator::getDnsForConfig "10.89.0.1" "9.9.9.9" "Trying to connect to VPN, server index is 0, container is amnezia-awg" IpcClient::init succeed "Site split tunneling is disabled, route mode is 0" "App split tunneling is disabled, route mode is 0" Amnezia "LocalSocketController" "Initializing" Amnezia "LocalSocketController" "Connecting to: /var/run/amneziavpn/daemon.socket" Amnezia "LocalSocketController" "Daemon connected" Amnezia "LocalSocketController" "Check status" Amnezia "LocalSocketController" "Reading" Amnezia "LocalSocketController" "Parse command: status" Amnezia "LocalSocketController" "Reading" Amnezia "LocalSocketController" "Parse command: connected" Amnezia "LocalSocketController" "Handshake completed with: /R4Ka8p1UGf1YCPDWkyApeNcdDMALLVXFspg5YILmXU=" Amnezia "LocalSocketController" "Deactivating" VpnConfigurator::getDnsForConfig "10.89.0.1" "9.9.9.9" "Trying to connect to VPN, server index is 0, container is amnezia-awg" IpcClient::init succeed "Site split tunneling is disabled, route mode is 0" "App split tunneling is disabled, route mode is 0" Amnezia "LocalSocketController" "Initializing" Amnezia "LocalSocketController" "Connecting to: /var/run/amneziavpn/daemon.socket" Amnezia "LocalSocketController" "Daemon connected" Amnezia "LocalSocketController" "Check status" Amnezia "LocalSocketController" "Reading" Amnezia "LocalSocketController" "Parse command: status" Amnezia "LocalSocketController" "Reading" Amnezia "LocalSocketController" "Parse command: connected" Amnezia "LocalSocketController" "Handshake completed with: /R4censoredgmXU=" ``` **Screenshots** just after connect through the app. ![Image](https://github.com/user-attachments/assets/13515fb4-ca04-4ce9-9edc-3ee1f9f92dd8) the VPN doesn't work. after **`sudo ip addr add 10.72.7.2/24 dev amn0; sudo ip addr delete 10.72.7.0/32 dev amn0`** command ![Image](https://github.com/user-attachments/assets/ca9bb9b2-2650-4503-8b63-39c0ba69b1bd) and... the VPN works. **Desktop (please complete the following information):** - OS: NixOS - Version: Current Stable 25.05 **Server (please complete the following information):** - **NOT A SERVER PROBLEM**
Author
Owner

@BlitDev commented on GitHub (Jun 12, 2025):

partial config:

[Interface]
PrivateKey = 
Address = 10.72.7.2/24
DNS = 9.9.9.9
Jc = 
Jmin = 
Jmax = 
S1 = 
S2 = 
H1 = 
H2 = 
H3 = 
H4 =

[Peer]
PublicKey = 
PresharedKey = 
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 0
Endpoint = 
<!-- gh-comment-id:2967200172 --> @BlitDev commented on GitHub (Jun 12, 2025): partial config: ``` [Interface] PrivateKey = Address = 10.72.7.2/24 DNS = 9.9.9.9 Jc = Jmin = Jmax = S1 = S2 = H1 = H2 = H3 = H4 = [Peer] PublicKey = PresharedKey = AllowedIPs = 0.0.0.0/0, ::/0 PersistentKeepalive = 0 Endpoint = ```
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#700
No description provided.