This guide was created by a community member and reviewed by us. Firmware and router interfaces may change over time, so some steps may differ depending on your device or version.
Prerequisites:
- Make sure your OpenWrt version is 25.12 or newer.
- You will need a WireGuard config for the location you selected in the WireGuard generator.
Setup
Open OpenWrt LuCI at
192.168.1.1(by default)Log In (username
rootand no password, if you set a password, enter it)Go to System → Software
Click Update Lists
Enter
luci-proto-wireguardin the Filter and Install packageGo to System → Reboot and click Perform Reboot
Log back into LuCI and go to Network → Interfaces, Add New Interface, enter
wg0in the Name, select the WireGuard VPN protocol and Create InterfaceScroll down and click Load Configuration
Drag and drop your WireGuard config file downloaded from Generator
- Example:
xeovo-fi.conf
- Example:
Go to Firewall Settings and select
wanGo to Peers, find your Peer and click Edit, scroll down, find the Route Allowed IPs and check the box to route all traffic through WireGuard. Click Save to close Peer settings, then click the blue Save & Apply button to apply the changes.
Verify VPN connection, visit DoesMyVPN.work
Disconnecting:
To disconnect the VPN, go to Network → Interfaces → wg0 → Edit → Peers → Edit, uncheck Route Allowed IPs and click Save and then Save & Apply to apply the changes.