I have configured a WireGuard server on my router and it seems to work fine (mostly through this guide). I can connect and am able to access LuCI interface from my phone with it.
One other thing I would like to achieve - is to be able to surf internet from under my routers' internet connection.
I assume it has to do with firewall configuration, but can't really figure out what should be changed. Can you help me?
Here is my config:
config zone 'lan'
option name 'lan'
list network 'lan'
list network 'vpn'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config forwarding
option src 'lan'
option dest 'wan'
config rule 'wg'
option name 'Allow-WireGuard'
option src 'wan'
option dest_port '51820'
option proto 'udp'
option target 'ACCEPT'
Edit:
Apparently it was not it. What fixed it was supplying DNS servers in the config of iOS client. I am wondering how can I configure it to use routers DNS server.
Edit 2:
For some reason initially giving 192.168.1.1 as the DNS server on the client didn't work. But then it started working. So now everything is as I expect it.