I have a netbook that I use as a server and thought I'd install OpenWrt. It's behind an internet gateway router that also has OpenWrt. I have installed WireGuard and configured with the following:
root@servidor:~# cat /etc/config/firewall
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
list network 'wg0'
The problem is that I can't access the internet. On the client (which uses a mobile network) I see TX and RX. On the server with OpenWrt too. I use an app on the client for Ping and iperf. I only have ping and iperf response from 10.0.0.1 and the LAN IP of the server. I can't access any site via browser using the domain (for example google.com) or enter 1.1.1.1 showing Cloudflare services. The funny thing is that I see in AdGuardHome, which is installed on the server, the requests from the client. I can only enter the LAN IP and wg0 of the server from the client and I can see LuCI. I can't seem to access any upstream network that is outside of the server.
The client configuration is with address 10.0.0.2/32, DNS 10.0.0.1, port 30000, allowed IPs 0.0.0.0/0, and endpoint is a DDNS domain pointing to the WAN of the main router. I have also already forwarded port 30000/udp to the server.
Let's see your complete config files for the server as well as the main router... please make sure it is clear which is which.
Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
It has worked and I have only removed option defaultroute '0'. The other option doesn't because I understand that it disables IPv6 (among other options) since I don't use it.