Hey everyone im trying to replace the openvpn server on my router with a wireguard server, however i cant get the clients to connect to the other lan clients or wan.
Using openvpn when im connected i can access the other clients in de network and use the wan connection for internet access. i want to do the same here but with a wireguard server.
The server is a r7800 running openwrt 18.06.1. The client is a rooted android phone.
here are the relevant configs:
/etc/config/network
config interface 'wg0'
option proto 'wireguard'
option private_key 'PRIVATE KEY'
option listen_port '11801'
list addresses '192.168.1.200'
config wireguard_wg0
option public_key 'PUBLIC KEY'
list allowed_ips '0.0.0.0/0'
option persistent_keepalive '25'
option description 'Phone'
/etc/config/firewall
config rule
option target 'ACCEPT'
option src 'wan'
option proto 'udp'
option dest_port '11801'
option name 'Allow WireGuard'
config zone
option input 'ACCEPT'
option output 'ACCEPT'
option name 'wg0'
option network 'wg0'
option forward 'ACCEPT'
config forwarding
option dest 'wg0'
option src 'lan'
config forwarding
option dest 'wg0'
option src 'wan'
config forwarding
option dest 'lan'
option src 'wg0'
config forwarding
option dest 'wan'
option src 'wg0'
When i connect to the tunnel i cant access any lan clients nor do i have a connection to the internet. Anyone know what im doing wrong?