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 Interface at the default address "192.168.1.1"
Log in to LuCI using the default root login without a password (If you specified a password, enter it)
In LuCI, go to the System → Software tab
Click the "Update lists" button and wait
After updating, enter package name "luci-proto-wireguard" in the "Filter" field and install it using the "Install" button
After installation, you need to restart your router with OpenWrt
After booting, log back into LuCI and go to Network → Interfaces, click "Add new interface", enter "wg0" in the "Name", select the "WireGuard VPN" protocol and click "Create Interface"
After creating the interface, a window with interface settings will open, scroll down, and click on the "Load configuration" button
In the window that opens, there is a field where you need to drag and drop the WireGuard config you downloaded earlier from the Generator, for example, the file "xeovo-fi.conf"
After you have done this, the config will be imported, then you need to go to the "Firewall Settings" tab and select "wan"
Go to the "Peers" tab, there you will see your Peer and next to it the "Edit" button, click it, scroll down a little, find the "Route Allowed IPs" line and check the box to route all traffic through WireGuard. Click "Save" to close peer and interface settings, then click on the blue "Save & Apply" button to apply the changes
Your VPN connection via WireGuard is now active on your OpenWrt router. To verify, visit https://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