Hi
I first want to thank you for your help ..
I have the following:
In the /etc/config/network
config interface 'wg'
option proto 'wireguard'
option private_key 'wFODqKEJ9BdR9xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
list addresses '192.168.46.1/24'
list addresses 'fd42:0:0:46::1/64'
option listen_port '51820'
config wireguard_wg
option public_key 'Ail7Nq9lbs8yyyyyyyyyyyyyyyyyyyyyyyyy'
option persistent_keepalive '25'
list allowed_ips '192.168.46.210/32'
list allowed_ips 'fd42:0:0:46::210/128'
option preshared_key 'yDAiOb1mTizzzzzzzzzzzzzzzzzzzz'
In the /etc/config/firewall:
config rule
option target 'ACCEPT'
option src 'wan'
option proto 'udp'
option name 'Allow Wireguard for Mobiles'
option dest_port '51820'
config zone
option name 'wg'
option forward 'REJECT'
option output 'ACCEPT'
option network 'wg'
option input 'ACCEPT'
config forwarding
option dest 'dmz'
option src 'wg'
config forwarding
option dest 'wan'
option src 'wg'
I get routes:
root@OpenWrt:/etc/config# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default xx-yy-yy-y.zzzz 0.0.0.0 UG 0 0 0 eth1.2
xx.yy.yy.0 * 255.255.240.0 U 0 0 0 eth1.2
192.168.40.0 * 255.255.255.0 U 0 0 0 br-DMZ
192.168.41.0 * 255.255.255.0 U 0 0 0 br-lan
192.168.44.0 * 255.255.255.0 U 0 0 0 eth0.44
192.168.46.0 * 255.255.255.0 U 0 0 0 wg
root@OpenWrt:/etc/config# wg show
interface: wg
public key: BvZYEfkfTMwwwwwwwwwwwwwwwwwwwwwwwwwwww
private key: (hidden)
listening port: 51820
peer: Ail7Nq9lbs8PhR8yyyyyyyyyyyyyyyyyyyyyyyyyyyyy
preshared key: (hidden)
allowed ips: 192.168.46.210/32, fd42:0:0:46::210/128
persistent keepalive: every 25 seconds
The Android log:
--------- beginning of system
04-21 21:10:26.909 30271 30271 I ActivityThread: handleStopService: token=android.os.BinderProxy@efe5340 not found.
--------- beginning of events
04-22 15:37:57.781 5344 5344 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@37573e4
04-22 15:37:57.798 5344 5344 I am_on_create_called: [0,com.wireguard.android.activity.MainActivity,performCreate]
04-22 15:37:57.799 5344 5344 I am_on_start_called: [0,com.wireguard.android.activity.MainActivity,handleStartActivity]
04-22 15:37:57.799 5344 5344 I am_on_resume_called: [0,com.wireguard.android.activity.MainActivity,RESUME_ACTIVITY]
04-22 15:37:58.980 5344 5344 W StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1
04-22 15:37:58.980 5344 5344 W StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1
04-22 15:38:03.595 5344 5344 I menu_item_selected: [0,Edit]
04-22 15:38:03.662 5344 5344 W StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1
04-22 15:38:03.664 5344 5344 W StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1
04-22 15:38:05.795 5344 5344 E ANDR-PERF: IPerf::tryGetService failed!
04-22 15:38:05.843 5344 5344 E ANDR-PERF: IPerf::tryGetService failed!
04-22 15:38:06.748 5344 5344 E ANDR-PERF: IPerf::tryGetService failed!
04-22 15:38:08.012 5344 5344 E ANDR-PERF: IPerf::tryGetService failed!
04-22 15:38:14.120 5344 5344 E ANDR-PERF: IPerf::tryGetService failed!
04-22 15:38:14.169 5344 5344 E ANDR-PERF: IPerf::tryGetService failed!
04-22 15:38:14.448 5344 5344 E ANDR-PERF: IPerf::tryGetService failed!
04-22 15:38:20.435 5344 5344 W StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1
04-22 15:38:20.437 5344 5344 W StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1
04-22 15:38:42.889 5344 5344 W StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1
04-22 15:38:42.890 5344 5344 W StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1
04-22 15:38:49.090 5344 8814 D WireGuard/GoBackend: Changing tunnel home to state UP
04-22 15:38:49.090 5344 8814 I WireGuard/GoBackend: Bringing tunnel up
04-22 15:38:49.112 5344 8814 D WireGuard/GoBackend: Go backend v0.0.20181222
04-22 15:38:49.112 5344 8814 D WireGuard/GoBackend/home: Debug log enabled
04-22 15:38:49.112 5344 8814 I WireGuard/GoBackend/home: Attaching to interface tun0
04-22 15:38:49.137 5344 5965 D WireGuard/GoBackend/home: Routine: handshake worker - started
04-22 15:38:49.137 5344 5965 D WireGuard/GoBackend/home: Routine: encryption worker - started
04-22 15:38:49.137 5344 5965 D WireGuard/GoBackend/home: Routine: decryption worker - started
04-22 15:38:49.137 5344 5984 D WireGuard/GoBackend/home: Routine: event worker - started
04-22 15:38:49.137 5344 5965 D WireGuard/GoBackend/home: Routine: handshake worker - started
04-22 15:38:49.137 5344 5984 D WireGuard/GoBackend/home: Routine: encryption worker - started
04-22 15:38:49.137 5344 5984 D WireGuard/GoBackend/home: Routine: decryption worker - started
04-22 15:38:49.137 5344 5984 D WireGuard/GoBackend/home: Routine: encryption worker - started
04-22 15:38:49.137 5344 5965 D WireGuard/GoBackend/home: Routine: decryption worker - started
04-22 15:38:49.137 5344 5965 D WireGuard/GoBackend/home: Routine: decryption worker - started
04-22 15:38:49.137 5344 5984 D WireGuard/GoBackend/home: Routine: TUN reader - started
04-22 15:38:49.137 5344 5965 D WireGuard/GoBackend/home: Routine: handshake worker - started
04-22 15:38:49.137 5344 5965 D WireGuard/GoBackend/home: Routine: encryption worker - started
04-22 15:38:49.137 5344 5965 D WireGuard/GoBackend/home: Routine: handshake worker - started
04-22 15:38:49.137 5344 8814 D WireGuard/GoBackend/home: UAPI: Updating private key
04-22 15:38:49.138 5344 8814 D WireGuard/GoBackend/home: UAPI: Removing all peers
04-22 15:38:49.138 5344 8814 D WireGuard/GoBackend/home: UAPI: Transition to peer configuration
04-22 15:38:49.139 5344 8814 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - UAPI: Created
04-22 15:38:49.139 5344 8814 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - UAPI: Adding allowedip
04-22 15:38:49.139 5344 8814 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - UAPI: Adding allowedip
04-22 15:38:49.139 5344 8814 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - UAPI: Updating endpoint
04-22 15:38:49.139 5344 8814 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - UAPI: Updating persistent keepalive interval
04-22 15:38:49.139 5344 8814 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - UAPI: Updating preshared key
04-22 15:38:49.139 5344 8814 E WireGuard/GoBackend/home: mkdir /var: read-only file system
04-22 15:38:49.139 5344 5984 D WireGuard/GoBackend/home: Routine: receive incoming IPv6 - started
04-22 15:38:49.139 5344 6781 D WireGuard/GoBackend/home: Routine: receive incoming IPv4 - started
04-22 15:38:49.140 5344 8814 D WireGuard/GoBackend/home: UDP bind has been updated
04-22 15:38:49.140 5344 8814 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Starting...
04-22 15:38:49.140 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Routine: sequential receiver - started
04-22 15:38:49.140 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Routine: nonce worker - started
04-22 15:38:49.140 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Routine: sequential sender - started
04-22 15:38:49.140 5344 8814 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending keepalive packet
04-22 15:38:49.140 5344 8814 I WireGuard/GoBackend/home: Device started
04-22 15:38:49.140 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:38:49.142 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Awaiting keypair
04-22 15:38:54.338 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:38:54.339 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:38:55.123 5344 5344 I am_on_paused_called: [0,com.wireguard.android.activity.MainActivity,performPause]
04-22 15:38:55.365 5344 5344 I am_on_stop_called: [0,com.wireguard.android.activity.MainActivity,LIFECYCLER_STOP_ACTIVITY]
04-22 15:38:55.366 5344 5344 I am_on_destroy_called: [0,com.wireguard.android.activity.MainActivity,performDestroy]
04-22 15:38:59.372 5344 5344 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@7a0d24e
04-22 15:38:59.386 5344 5344 I am_on_create_called: [0,com.wireguard.android.activity.MainActivity,performCreate]
04-22 15:38:59.387 5344 5344 I am_on_start_called: [0,com.wireguard.android.activity.MainActivity,handleStartActivity]
04-22 15:38:59.387 5344 5344 I am_on_resume_called: [0,com.wireguard.android.activity.MainActivity,RESUME_ACTIVITY]
04-22 15:38:59.594 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:38:59.594 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:04.656 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:39:04.656 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:09.720 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:39:09.720 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:14.791 5344 6776 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:39:14.791 5344 6776 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:19.906 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:39:19.906 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:25.217 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:39:25.217 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:30.406 5344 5367 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:39:30.406 5344 5367 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:35.719 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:39:35.719 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:40.941 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:39:40.942 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:46.171 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:39:46.171 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:51.180 5344 5964 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:39:56.186 5344 5964 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:01.192 5344 5964 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:06.198 5344 5964 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:11.343 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:40:11.343 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:16.567 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:40:16.567 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:21.842 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:40:21.842 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:26.919 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:40:26.919 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:32.096 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:40:32.096 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:37.245 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:40:37.245 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:42.247 5344 5964 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:47.491 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:40:47.491 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:52.820 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:40:52.821 5344 5965 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:58.130 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:40:58.130 5344 5984 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:40:59.636 5344 5344 I am_on_paused_called: [0,com.wireguard.android.activity.MainActivity,performPause]
04-22 15:40:59.654 5344 5344 I am_on_stop_called: [0,com.wireguard.android.activity.MainActivity,sleeping]
04-22 15:41:08.952 5344 5964 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:41:13.958 5344 5964 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:42:15.372 5344 5964 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:44:11.751 5344 5367 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Handshake did not complete after 5 seconds, retrying (try 2)
04-22 15:44:11.751 5344 5367 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:45:15.591 5344 5344 I am_on_restart_called: [0,com.wireguard.android.activity.MainActivity,performRestartActivity]
04-22 15:45:15.591 5344 5344 I am_on_start_called: [0,com.wireguard.android.activity.MainActivity,handleStartActivity]
04-22 15:45:15.592 5344 5344 I am_on_resume_called: [0,com.wireguard.android.activity.MainActivity,RESUME_ACTIVITY]
04-22 15:45:16.042 5344 5964 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Sending handshake initiation
04-22 15:45:16.677 5344 8907 D WireGuard/GoBackend: Changing tunnel home to state DOWN
04-22 15:45:16.677 5344 8907 I WireGuard/GoBackend: Bringing tunnel down
04-22 15:45:16.678 5344 8907 I WireGuard/GoBackend/home: Device closing
04-22 15:45:16.678 5344 5964 D WireGuard/GoBackend/home: Routine: event worker - stopped
04-22 15:45:16.765 5344 6781 D WireGuard/GoBackend/home: Routine: TUN reader - stopped
04-22 15:45:16.765 5344 5963 D WireGuard/GoBackend/home: Routine: receive incoming IPv4 - stopped
04-22 15:45:16.766 5344 6781 D WireGuard/GoBackend/home: Routine: receive incoming IPv6 - stopped
04-22 15:45:16.766 5344 8907 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Stopping...
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: decryption worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: decryption worker - stopped
04-22 15:45:16.766 5344 6781 D WireGuard/GoBackend/home: Routine: decryption worker - stopped
04-22 15:45:16.766 5344 6781 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Routine: sequential receiver - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: handshake worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: handshake worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: encryption worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: handshake worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: encryption worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: encryption worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: handshake worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: decryption worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: Routine: encryption worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Routine: nonce worker - stopped
04-22 15:45:16.766 5344 5963 D WireGuard/GoBackend/home: peer(BvZY…ZBTI) - Routine: sequential sender - stopped
04-22 15:45:16.766 5344 8907 I WireGuard/GoBackend/home: Interface closed
04-22 15:45:18.492 5344 5344 I am_on_paused_called: [0,com.wireguard.android.activity.MainActivity,performPause]
04-22 15:45:18.752 5344 5344 I am_on_stop_called: [0,com.wireguard.android.activity.MainActivity,LIFECYCLER_STOP_ACTIVITY]
04-22 15:45:18.754 5344 5344 I am_on_destroy_called: [0,com.wireguard.android.activity.MainActivity,performDestroy]
04-22 15:45:24.251 5344 5344 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@ff8a43b
04-22 15:45:24.264 5344 5344 I am_on_create_called: [0,com.wireguard.android.activity.MainActivity,performCreate]
04-22 15:45:24.265 5344 5344 I am_on_start_called: [0,com.wireguard.android.activity.MainActivity,handleStartActivity]
04-22 15:45:24.265 5344 5344 I am_on_resume_called: [0,com.wireguard.android.activity.MainActivity,RESUME_ACTIVITY]
04-22 15:45:25.145 5344 5344 I menu_item_selected: [0,Settings]
04-22 15:45:25.149 5344 5344 I am_on_paused_called: [0,com.wireguard.android.activity.MainActivity,performPause]
04-22 15:45:25.152 5344 5344 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@7ccc263
04-22 15:45:25.154 5344 5344 I am_on_create_called: [0,com.wireguard.android.activity.SettingsActivity,performCreate]
04-22 15:45:25.160 5344 5344 I am_on_start_called: [0,com.wireguard.android.activity.SettingsActivity,handleStartActivity]
04-22 15:45:25.160 5344 5344 I am_on_resume_called: [0,com.wireguard.android.activity.SettingsActivity,RESUME_ACTIVITY]
04-22 15:45:25.490 5344 5844 D OpenGLRenderer: endAllActiveAnimators on 0x75694d1100 (RippleDrawable) with handle 0x756929ada0
04-22 15:45:25.492 5344 5344 I am_on_stop_called: [0,com.wireguard.android.activity.MainActivity,STOP_ACTIVITY_ITEM]