banner
tony

tony

机场推荐:https://usdtvpn.com/

R2S Soft Router OpenClash Installation and Subscription Usage Tutorial

R2S Soft Router OpenClash Installation and Subscription Usage Tutorial

A soft router is a router implemented on a general computing device using software. With a soft router, you can achieve scientific Internet access (over the wall) for all devices in your home. Use cases include devices such as Apple TV, Steam DECK, which are not convenient to install wall-climbing software, or the first-time Google account activation for overseas Android phones.

NanoPi R2S (hereinafter referred to as R2S) is the latest open-source development board released by FriendlyElec.

NanoPi R2S uses the RK3328 CPU, has two gigabit networks, 1G DDR4 memory, and FriendlyElec has specifically ported the OpenWrt system for NanoPi R2S, which supports Docker CE, is completely open-source, and can be used for secondary development of enterprise IoT, personal custom NAS, etc.

OpenClash is a Clash client that can run on OpenWrt.

NanoPi R2S official wiki: wiki.friendlyelec.com

OpenClash project address: https://github.com/vernesong/OpenClash

Preparation:#

The above devices can be purchased on Taobao.

Note: The Type-C power supply needs to be selected with a standard voltage of 5V. It is not recommended to use a fast charging charger. If the voltage protocol does not match, it may cause damage to the NanoPi R2S. Search directly on Taobao for "standard voltage 5V charger" and select a charger with an output of only 5V2A (some standard voltage 5V chargers may also claim to be fast charging chargers, you need to check the output in the specifications to confirm).

Firmware flashing and OpenClash installation steps:#

1. Download firmware#

Download the latest official firmware: R2S-R2C-Series-FriendlyWrt-23.05.img.gz

2. Install SD card firmware writing tool etcher#

Download and install etcher at https://etcher.balena.io/#download-etcher, supports Windows, MacOS, Linux

3. Use etcher to write the firmware to the SD card#

Insert the SD card into the card reader and connect it to the computer. Follow the software prompts to select the firmware file downloaded just now (no need to decompress), then select the SD card as the target, and click Flash.

Write R2S official firmware to SD card using etcher

4. Insert the SD card and start R2S#

Insert the SD card and connect the power supply to R2S. The sys indicator light flashes to indicate that the system is starting normally. Connect the computer to the LAN port with a network cable, and open 192.168.2.1 in the browser with the password as "password".

Insert the SD card and start R2S

5. Install OpenClash#

  1. Enter the backend of the soft router, go to System -> Software, click Update lists, and wait for the update to complete.

    opkg update

  2. Go to Services -> Terminal, enter the username root and password password.

    image

  3. Execute the following OpenClash dependency installation command:

opkg install coreutils-nohup bash iptables dnsmasq-full curl ca-certificates ipset ip-full iptables-mod-tproxy iptables-mod-extra libcap libcap-bin ruby ruby-yaml kmod-tun kmod-inet-diag unzip luci-compat luci luci-base

opkg install coreutils-nohup bash dnsmasq-full curl ca-certificates ipset ip-full libcap libcap-bin ruby ruby-yaml kmod-tun kmod-inet-diag unzip kmod-nft-tproxy luci-compat luci luci-base
  1. Download the ipk file luci-app-openclash_x.xx.xxx-beta_all.ipk in OpenClash Assets.

    URL: https://github.com/vernesong/OpenClash/releases

  2. Go to System -> Software, click Upload package to upload the downloaded ipk file, and then click Install.

    image

    image

  3. After the installation is complete, restart and go to Services -> OpenClash.

    The first time you open openclash, you need to download the kernel. You can choose any cdn domain name that can be connected.

    image

Airport subscription usage#

  1. Enable meta kernel

    Services -> OpenClash -> Plugin Settings -> Mode Settings check Use Meta Kernel and click Save Configuration

    image

  2. Add subscription

    Go to Config Subscription

    Turn on automatic update, then click Add

    image

    Fill in the subscription address with the clash subscription address copied from the airport background, then save and update the configuration.

    image

    image

    After updating the subscription, go back to Running Status and click Start OpenClash

  3. Node selection and configuration

    Go to Dashboard Control Panel to select nodes
    image

    image

Note: If the browser has DNS Over HTTPS enabled, it needs to be turned off to work properly.

Soft router security configuration#

  1. System -> Administration -> Router Password to change the login password

image

  1. System -> Administration -> SSH Access to modify the interface, select lan, and save and apply

image

Recommended airport: Small Airport

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.