[GH-ISSUE #1390] AmneziaWG: Can't import config on Android #567

Closed
opened 2026-10-13 20:24:14 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @suxscribe on GitHub (Feb 1, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1390

Describe the bug
Freshly installed selfhosted Amnezia on Ubuntu 24.
When importing .conf into AmneziaWG (1.1.1) Android app it throws "Unable to import tunnel: syntax error in peer"
When importing .vpn into AmneziaVPN (4.8.3.1) Android app and connecting it throws "ErrorCode 1000: VPN connection error"

Server

  • OS: Ubuntu 24.04
  • Separate user for amnezia with sudo access

Config:

[Interface]
Address = 10.8.1.2/32
DNS = 1.1.1.1, 1.0.0.1
PrivateKey = <private key>
Jc = 2
Jmin = 10
Jmax = 50
S1 = 76
S2 = 125
H1 = 416940063
H2 = 379702130
H3 = 2015075668
H4 = 509875065

[Peer]
PublicKey = 
PresharedKey = 
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = <ip:port>
PersistentKeepalive = 25
Originally created by @suxscribe on GitHub (Feb 1, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/1390 **Describe the bug** Freshly installed selfhosted Amnezia on Ubuntu 24. When importing **.conf** into AmneziaWG (1.1.1) Android app it throws "`Unable to import tunnel: syntax error in peer`" When importing .vpn into AmneziaVPN (4.8.3.1) Android app and connecting it throws "`ErrorCode 1000: VPN connection error`" **Server** - OS: Ubuntu 24.04 - Separate user for amnezia with sudo access **Config:** ``` [Interface] Address = 10.8.1.2/32 DNS = 1.1.1.1, 1.0.0.1 PrivateKey = <private key> Jc = 2 Jmin = 10 Jmax = 50 S1 = 76 S2 = 125 H1 = 416940063 H2 = 379702130 H3 = 2015075668 H4 = 509875065 [Peer] PublicKey = PresharedKey = AllowedIPs = 0.0.0.0/0, ::/0 Endpoint = <ip:port> PersistentKeepalive = 25 ```
Author
Owner

@Nethius commented on GitHub (Feb 18, 2025):

Thank you for your report. Please note that GitHub is not a support channel. For assistance, please contact our support team via chat at https://t.me/amnezia_support_bot or via email at support@amnezia.org.

Our team will review the details and help resolve the issue.

<!-- gh-comment-id:2666194820 --> @Nethius commented on GitHub (Feb 18, 2025): Thank you for your report. Please note that GitHub is not a support channel. For assistance, please contact our support team via chat at https://t.me/amnezia_support_bot or via email at [support@amnezia.org](mailto:support@amnezia.org). Our team will review the details and help resolve the issue.
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#567
No description provided.