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.
Updated December 1, 2026 4 min read
On this page
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.
- You need a computer connected to the router and its admin password.
1. Make your WARP file
Do this on your computer.
- Open the WARP Config Generator.
- Choose Generate WARP Config.
- 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
- Sign in to LuCI and go to System, then Software.
- Click Update lists… and wait until it finishes, then click Dismiss.
- Type
luci-proto-wireguardin Filter, click Install… beside it, then Install. - Restart the router, so that WireGuard shows up as a protocol.
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.
- Go to Network, then Interfaces, and click Edit on wan.
- Open the Advanced Settings tab and set Use gateway metric to
10. - Click Save, then Save & Apply.
4. Create the WARP interface
- On the same page, click Add new interface.... Name it
warp, choose WireGuard VPN as the Protocol, and click Create interface.
- 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.
- 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.
- Open the Advanced Settings tab and set MTU to
1280, as in the file. The import doesn't set it either. - Open the Firewall Settings tab and choose wan in Create / Assign firewall-zone.
- Click Save, then Save & Apply.
Check your channels
In Network, Interfaces, the warp interface now shows its addresses and data going in and out.
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 under Manage plan.
- Still nothing? Open a ticket and tell us your router's model, your OpenWrt version and which channels don't play.