[Solved] Wireguard setup for newbie

Hi everyone,

I'm kinda new to setting up wireguard. All i've done was:

Server side configured in luci

Protocol: wireguard vpn
Private key: "private key generated from command"
Listen port: 51820
IP addresses: 192.168.2.1/24

Peers
Public key: "public generated from wireguard android app"
Allowes ips: 192.168.2.3/32
Route allowed ips: ticked/checked
Endpoint: "leave empty"
Listen: "leave empty"
Persistent keep alive: "leave empty"

Wireguard android app
Interface name: server
Public key: "public key generated from openwrt server"
Addresses: 192.168.2.3/32

Peer
Public key: "public key generated from openwrt server"
Allowed ips: 0.0.0.0/0, ::/0
Endpoint: "WAN public ip":51820

After i've done this setup, whenever i turn my wireguard app on in my phone, i'm loosing internet connection and no peer appears in wireguard status.

Also when i check port 51820 online it is closed even if i already opened tcp/udp in 192.168.1.1 which is my router's LAN and in 192.168.2.1 (wireguard ip address) and 192.168.2.0 (wireguard interface)

You need to open this port on the WAN interface, not the internal ones.

3 Likes

Thanks! I removed the other ips and just leave my router's ip which is 192.168.1.1 and its working now.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.