# How to set up Cloudflare WARP on an OpenWrt router

> Import your WARP file into OpenWrt, so that every device on your network goes through WARP, Samsung and LG TVs included.

Cloudflare WARP is a free VPN. Set up on your router, it covers every device on your network, including Samsung and LG TVs, which can't run a VPN app themselves. Your internet provider then sees a connection to Cloudflare instead of to your channels. That helps when your provider blocks or slows them.

This guide is for routers that already run OpenWrt, using its LuCI web interface. The steps and pictures are from OpenWrt 25.12.

## When to try it

Try WARP when your channels won't load, or keep buffering, on your home connection but play fine elsewhere: for example, on your phone's mobile data.

WARP doesn't move you to another country. The sites you visit still see roughly where you are.

## Before you start

- **Empty your IP whitelist, if you use one.** With WARP on, we see Cloudflare's address instead of yours, and a whitelisted line plays nowhere else. [How the whitelist works](https://iptvfiesta.sx/help-center/article/whitelist-your-ip).
- **You need a computer connected to the router** and its admin password.

## 1. Make your WARP file

Do this on your computer.

1. Open the [WARP Config Generator](https://lanrat.github.io/wireguard-warp-generator/).
2. Choose **Generate WARP Config**.
3. Choose **Download warp.conf**.

The generator is made by an independent developer, not by Cloudflare or by us. It creates your file in your browser.

Keep the file to yourself: anyone who has it can use your WARP connection.

## 2. Install WireGuard on the router

1. Sign in to LuCI and go to **System**, then **Software**.
2. Click **Update lists…** and wait until it finishes, then click **Dismiss**.
3. Type `luci-proto-wireguard` in **Filter**, click **Install…** beside it, then **Install**.
4. Restart the router, so that WireGuard shows up as a protocol.

![LuCI's Software page filtered on luci-proto-wireguard, with its Install button](https://iptvfiesta.sx/api/help-center/media/openwrt-software-install-wireguard.png)

## 3. Keep your normal connection as a back-up

Without this step, switching WARP off later leaves your whole network without internet until the router restarts.

1. Go to **Network**, then **Interfaces**, and click **Edit** on **wan**.
2. Open the **Advanced Settings** tab and set **Use gateway metric** to `10`.
3. Click **Save**, then **Save & Apply**.

![The wan interface's Advanced Settings, with Use gateway metric set to 10](https://iptvfiesta.sx/api/help-center/media/openwrt-wan-gateway-metric.png)

## 4. Create the WARP interface

1. On the same page, click **Add new interface...**. Name it `warp`, choose **WireGuard VPN** as the **Protocol**, and click **Create interface**.

![The Add new interface dialog, with the name warp and the protocol WireGuard VPN](https://iptvfiesta.sx/api/help-center/media/openwrt-add-interface.png)

2. On the **General Settings** tab, click **Load configuration…**. Drag **warp.conf** onto the box, or open it in a text editor and paste its contents there, then click **Import settings**. This fills in the keys, the addresses and Cloudflare's server.

![The Import configuration dialog, with the end of the WARP file pasted in](https://iptvfiesta.sx/api/help-center/media/openwrt-import-configuration.png)

3. Open the **Peers** tab and click **Edit** on the imported peer. Tick **Route Allowed IPs**, set **Persistent Keep Alive** to `25`, and click **Save**. The import leaves Route Allowed IPs unticked, and without it nothing goes through WARP.

![The peer's settings, with Route Allowed IPs ticked](https://iptvfiesta.sx/api/help-center/media/openwrt-peer-route-allowed-ips.png)

4. Open the **Advanced Settings** tab and set **MTU** to `1280`, as in the file. The import doesn't set it either.
5. Open the **Firewall Settings** tab and choose **wan** in **Create / Assign firewall-zone**.

![The Firewall Settings tab, with the wan zone chosen](https://iptvfiesta.sx/api/help-center/media/openwrt-firewall-zone.png)

6. Click **Save**, then **Save & Apply**.

## Check your channels

In **Network**, **Interfaces**, the warp interface now shows its addresses and data going in and out.

![The Interfaces page, with the warp interface running in the wan zone](https://iptvfiesta.sx/api/help-center/media/openwrt-interfaces-warp-running.png)

Open your IPTV app on your TV and play a channel that didn't play before. If it plays now, keep WARP on while you watch.

## Turn WARP off

In **Network**, **Interfaces**, click **Stop** on the warp interface. Your connection goes back to normal straight away. **Restart** brings WARP back.

## If something doesn't work

- **The internet stops when you stop WARP:** step 3 is missing. Set the gateway metric on wan, then click **Restart** on warp.
- **Nothing goes through WARP:** check that **Route Allowed IPs** is ticked on the peer, and that the interface is in the wan firewall zone.
- **The interface shows no data coming in:** your WARP file may no longer work. Make a new one (step 1) and import it again.
- **Your channels still don't play:** check that your IP whitelist is empty, in [My Plans](https://iptvfiesta.sx/dashboard/plans) under **Manage plan**.
- Still nothing? [Open a ticket](https://iptvfiesta.sx/dashboard/support/newticket) and tell us your router's model, your OpenWrt version and which channels don't play.
