Routers
OpenWrt OpenWrt Jun 8, 2026
Posted Tue, Jun 2, 2026 6:08 PM
Edited Mon, Jun 8, 2026 10:29 AM

How to setup WireGuard on OpenWrt

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

  1. Open OpenWrt LuCI at 192.168.1.1 (by default)

  2. Log In (username root and no password, if you set a password, enter it)

  3. Go to System → Software

  4. Click Update Lists

  5. Enter luci-proto-wireguard in the Filter and Install package

  6. Go to System → Reboot and click Perform Reboot

  7. Log back into LuCI and go to Network → Interfaces, Add New Interface, enter wg0 in the Name, select the WireGuard VPN protocol and Create Interface

  8. Scroll down and click Load Configuration

  9. Drag and drop your WireGuard config file downloaded from Generator

    • Example: xeovo-fi.conf
  10. Go to Firewall Settings and select wan

  11. Go 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.

  12. 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.