[GH-ISSUE #33] Cannot connect two OpenWrt together #21

Open
opened 2026-10-13 21:05:07 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @izhdaha on GitHub (Sep 21, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-openwrt/issues/33

I have two openwrt 24.10.2 routers which are unable to talk to each other using Openwrt Amneziawg protocol like I do with wireguard, both routers have amneziawg packages installed and tested to be working properly against a self hosted amnezia wg server configured using amnezia client.
Router A:

root@OpenWrt:~# opkg list-installed | grep -i amnezia
amneziawg-tools - 1.0.20240213-r1
kmod-amneziawg - 6.6.93-r1
luci-app-amneziawg - 25.176.66860~0c726ca
root@OpenWrt:~#  cat /etc/config/network
config interface 'amnezia_lan'                 
        option proto 'amneziawg'               
        option private_key 'M4SK3D/='
        option listen_port 'port'                                       
        list addresses '10.8.1.1/24'                                     
        option awg_jc '4'                                                
        option awg_jmin '10'                                             
        option awg_jmax '50'                                             
        option awg_s1 '111'                                              
        option awg_s2 '39'                                               
        option awg_h1 '135385994'                                        
        option awg_h2 '825671335'                                        
        option awg_h3 '1072491182'                                       
        option awg_h4 '2042054803'                                       
        option mtu '1420'                                                
                                                                         
config amneziawg_amnezia_lan        
        option description 'Imported peer configuration'
        option public_key '='
        option preshared_key 'MASKED+/='
        list allowed_ips '10.8.1.2/32'                                     
        option route_allowed_ips '1'  

Router B:

root@OpenWrt:~# opkg list-installed | grep -i amnezia
amneziawg-tools - 1.0.20240213-r1
kmod-amneziawg - 6.6.93-r1
luci-app-amneziawg - 25.176.66860~0c726ca
root@OpenWrt:~# cat /etc/config/network
config interface 'amnezia'                                                 
        option proto 'amneziawg'          
        option private_key 'MASKED='
        list addresses '10.8.1.2/32'                                     
        option awg_jc '4'                 
        option awg_jmin '10'                                             
        option awg_jmax '50'                                             
        option awg_s1 '111'               
        option awg_s2 '39'                                               
        option awg_h1 '135385994'                                        
        option awg_h2 '825671335'                                        
        option awg_h3 '1072491182'                                       
        option awg_h4 '2042054803'                                       
        list dns '1.1.1.1'                                               
        list dns '1.0.0.1'                                               
                                                                         
config amneziawg_amnezia                                                   
        option description 'Imported peer configuration'                   
        option public_key '9+MASKED=' 
        option preshared_key 'MASKED+/='
        list allowed_ips '0.0.0.0/0'                                       
        list allowed_ips '::/0'                                          
        option persistent_keepalive '25'                                   
        option endpoint_host 'e.n.d.p.o.i.n.t.i.p''                               
        option endpoint_port 'sameport'                                     
        option route_allowed_ips '1'   

Pinging fails from Router A to router B/(and vice versa) and there is very little RX on amnezia interface of router B.

OpenWRT AWG to Amnezia self-hosted AWG works well with the very same config, in fact I constructed BOTH Router A and B configs based on native user configs and wg0.conf from my self-hosted server.

moreover, the same config starts working as soon as I change option proto 'amneziawg' to option proto 'wireguard' and comment out the awg_* options on both ends.
with these two working scenarios, I'm convinced there is something wrong only with OpenWRT AWG to OPENWRT AWG.

Originally created by @izhdaha on GitHub (Sep 21, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-openwrt/issues/33 I have two openwrt 24.10.2 routers which are unable to talk to each other using Openwrt Amneziawg protocol like I do with wireguard, both routers have [amneziawg packages](https://github.com/Slava-Shchipunov/awg-openwrt/releases/tag/v24.10.2) installed and tested to be working properly against a self hosted amnezia wg server configured using amnezia client. Router A: ``` root@OpenWrt:~# opkg list-installed | grep -i amnezia amneziawg-tools - 1.0.20240213-r1 kmod-amneziawg - 6.6.93-r1 luci-app-amneziawg - 25.176.66860~0c726ca root@OpenWrt:~# cat /etc/config/network config interface 'amnezia_lan' option proto 'amneziawg' option private_key 'M4SK3D/=' option listen_port 'port' list addresses '10.8.1.1/24' option awg_jc '4' option awg_jmin '10' option awg_jmax '50' option awg_s1 '111' option awg_s2 '39' option awg_h1 '135385994' option awg_h2 '825671335' option awg_h3 '1072491182' option awg_h4 '2042054803' option mtu '1420' config amneziawg_amnezia_lan option description 'Imported peer configuration' option public_key '=' option preshared_key 'MASKED+/=' list allowed_ips '10.8.1.2/32' option route_allowed_ips '1' ``` Router B: ``` root@OpenWrt:~# opkg list-installed | grep -i amnezia amneziawg-tools - 1.0.20240213-r1 kmod-amneziawg - 6.6.93-r1 luci-app-amneziawg - 25.176.66860~0c726ca root@OpenWrt:~# cat /etc/config/network config interface 'amnezia' option proto 'amneziawg' option private_key 'MASKED=' list addresses '10.8.1.2/32' option awg_jc '4' option awg_jmin '10' option awg_jmax '50' option awg_s1 '111' option awg_s2 '39' option awg_h1 '135385994' option awg_h2 '825671335' option awg_h3 '1072491182' option awg_h4 '2042054803' list dns '1.1.1.1' list dns '1.0.0.1' config amneziawg_amnezia option description 'Imported peer configuration' option public_key '9+MASKED=' option preshared_key 'MASKED+/=' list allowed_ips '0.0.0.0/0' list allowed_ips '::/0' option persistent_keepalive '25' option endpoint_host 'e.n.d.p.o.i.n.t.i.p'' option endpoint_port 'sameport' option route_allowed_ips '1' ``` Pinging fails from Router A to router B/(and vice versa) and there is very little RX on amnezia interface of router B. OpenWRT AWG to Amnezia self-hosted AWG works well with the very same config, in fact I constructed BOTH Router A and B configs based on native user configs and wg0.conf from my self-hosted server. moreover, the same config starts working as soon as I change `option proto 'amneziawg' ` to `option proto 'wireguard' ` and comment out the awg_* options on both ends. with these two working scenarios, I'm convinced there is something wrong only with OpenWRT AWG to OPENWRT AWG.
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/amneziawg-openwrt#21
No description provided.