I set up wireguard for road warriors (both iOS and android devices)
Wireguard interface/peers have a separate /24 subnet, a firewall foward rule allows to reach few machines on LAN.
Configuration to peers is sent via file or via qrcode
Both works for few seconds then LAN machines become unreachable (via ping or https).
No way to bring up connections over tunnel.
No traffic detected on WG interface, peer, firewall rules
Disabling and enabling WG interface/peers has no effect.
I tried persistent keepalive without succes.
These 2 statements contradict each other.
(Except perhaps if the client can connect without going via wireguard)
If second entry is valid, some possible options.
Incorrect destination port on clients.
Server behind cgnat
Incorrect public key on clients, or on server. (common)
Incorrect allowed address entries for client peers on server. (common)
Likely there should be a single /32 allowed address assigned on the server for each peer.
(And this will be the same as the Address entry on the peer)
Another possibility (might match case 1)
Where wireguard server is not default gateway for LAN.
Initially try with SrcNat on wireguard server
Can make clients a subnet of main lan and use Published arp entries on wireguard server.
So basically I'm wrongly allowing the single peer for the whole subnet instead of its own /32 IP address ....
Thank you for explanation on suggested link
a. source addresses allowed to exit the tunnel at your router end ( and visit LAN or WAN or router )
b. destination addresses (folks on local router are heading too) allowed to enter the tunnel going to the other end
If the addresses are not local, you will need ip routes for them ......
any device, single address, associated with an existing wg interface on the router, is already covered by IP routes.