---
title: XRay for OpenWRT
description: 
---

## SSH

These instructions require you to [SSH into your router](/zh/wen-dang/ssh-openwrt). If you're not comfortable using SSH, please choose a different VPN method.

## Requirements

* OpenWRT 21.02 or newer.

> When upgrading to newer versions of OpenWRT our instructions assume you perform a factory-reset. This ensures everyone starts with the same setup and keeps our documentation simple and straight-forward.

## Instructions

* [Install XRay packages](/zh/setup/routers/xray-for-openwrt/install-xray-packages)
* [Import XRay settings](/zh/setup/routers/xray-for-openwrt/import-xray-settings)
* [Connect and disconnecting the VPN](/zh/setup/routers/xray-for-openwrt/connect-to-xray-server)
* [Update XRay packages](/zh/setup/routers/xray-for-openwrt/update-xray-packages)

## Warning!

XRay on OpenWRT has a HUGE number of options and is the most complex VPN option you'll find on our website. 

Our instructions assume you start with a clean router and a clean XRay setup. If you've made any other changes we cannot provide support.