Hello OpenWrt users!
I have a question and a request. I'd like to access the data stored on the Wireguard client. Is this possible? If so, how (OpenWrt/Wireguard configuration). Could you help me? Network Scheme
Thank you
Please post the contents of your "network scheme" directly into the forum (mainly text, screengrabs and/or diagrams if applicable).
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):
![]()
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/firewall
yes it's possible. Wireguard is peer-to-peer connection, so you can have both way communication. Follow site-to-site configuration described in this guide:
Is your "wireguard client" also an OpenWrt router?
The client will need to make an outgoing connection to the server's public IP or hostname. Once the "outer" link is established, you can initiate a connection inside the tunnel from either end, e.g. have a machine on the "server" side request something from the "client" LAN as you were asking.
The client should have persistent_keepalive set to about 25 seconds so it continues to make outgoing connections which will keep a path through the CG-NAT established.
That is often referred to as a site-to-site setup
My notes about setting up a WireGuard server have a paragraph about it
WireGuard Server Setup Guide
For setting up a WireGuard client:
WireGuard Client Setup Guide
It will help if you show us your configs.