OpenWrt Soft Router Series - 3 Must-Install Essential Tools: openclash+sftpserver+tailscale Installation Tutorial
本文最后更新于 959 天前,其中的信息可能已经有所发展或是发生改变,如有失效可到评论区留言。
Article Abstract
In the OpenWrt soft router deployment scenario, to improve functional practicality, it is necessary to install openclash to achieve scientific internet access, support file transfer through sftpserver, and combine with tailscale to achieve remote access. During the installation process, dnsmasq compatibility issues need to be handled, and the software package lag issue is resolved by manually upgrading the tailscale version. As an optional tool, tcpdump can assist in network packet capture analysis. This practice is suitable for soft router scenarios requiring remote management and data transmission. Other practical plug-ins can be installed in the future, but system stability and functional requirements must be balanced. It is recommended to prioritize external containerized solutions for non-essential functions.
Qwen3-14B · 2026-06-18

Preface

In the previous article (see:OpenWrt Soft Router Series: Detailed Tutorial on Deploying OpenWrt (23.05.2) on PVE), I have deployed OpenWrt on PVE. This article is about installing the 3 software programs I consider necessary on OpenWrt: openclash, sftpserver, and tailscale.

openclash is definitely the most important, as it is the key to the hall of science; sftpserver allows me to easily transfer files to OpenWrt through an SFTP client; finally, tailscale allows my other devices that also have tailscale deployed to access OpenWrt from anywhere and use it as a data egress. Combined with clash's whitelist feature, it allows devices to get scientific or magical support anytime, anywhere.

Software Installation

Install openclash

iptables

opkg update
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

nftables

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

Download the latest openclash ipk installation package. The current latest version is v0.46.003-beta. The download link is as follows:
46.003-beta download link
Under the "System" - "Software" interface, upload the downloaded ipk file to openclash (develop a good habit of updating the list first):

image.png

image.png

image.png

An error occurred:
image.png

Seeing that they are mostly caused by dnsmasq, delete dnsmasq first:

opkg remove *dnsmasq

Displayed as follows:

image.png

Then re-upload the ipk package for installation, and this time the installation is successful:
image.png

After restarting OpenWrt, there will be an additional openclash under the Services menu:
image.png

Click to enter and you will see the familiar interface:
image.png

I won't write down the specific setup process, as there are many tutorials online. Of course, you first need to have the key to the hall of science or magic.

Note: Actually, there are two other famous scientific plug-ins on OpenWrt: SSRPlus and PassWall, which are simpler and easier to use. However, I am used to clash (Merlin also uses MerlinClash), so I won't bother and will just go with openclash. But the author of clash has deleted the repository, and I don't know what will happen to future updates. We'll see when the time comes...

Install openssh-sftp-server

The built-in SSH server of OpenWrt is dropbear. Although it is more lightweight, it does not support SFTP (it supports SCP). This prevents the SFTP clients built into many of our SSH clients from working, so we need to install an sftpserver.
Under the "System" - "Software" interface, search for "openssh-sftp-server" in the filter, and then install it directly (develop a good habit of updating the list first):

image.png

Of course, you can also install it in the CLI interface:

opkg update
opkg install openssh-sftp-server

Then you can use the SFTP client integrated into many SSH clients for file transfer, such as the built-in SFTP client of Termius:

image.png

Install tailscale

Under the "System" - "Software" interface, search for "tailscale" in the filter, and then install it directly (develop a good habit of updating the list first):

image.png

Of course, you can also install it in the CLI interface:

opkg update
opkg install tailscale

Then start tailscale under CLI:

tailscale up

image.png

Just use the link above to log in to tailscale for verification.

Note: If you want to use this OpenWrt as an exit-node, you need to advertise it first:

tailscale up --advertise-exit-node

Then turn on the corresponding exit node option for OpenWrt in the machines section on the official tailscale website:

image.png


It's a bit of a pity that the version in the software package is slightly old. If you want to install the latest one, you can. For example, when I installed it, the version of tailscale in the software package was 1.58.2-1:

image.png

While the version on GitHub is 1.60.0 (auto-update):
image.png

The download link is as follows:https://github.com/adyanth/openwrt-tailscale-enabler/releases。

So you can directly download the latest version of the tailscale .tgz package from GitHub, transfer it to OpenWrt via SFTP, and then run the following command:

tar x -zvC / -f openwrt-tailscale-enabler-v1.60.0-e428948-autoupdate.tgz

The running result is as follows:

image.png

Install dependency packages:

opkg update
opkg install libustream-openssl ca-bundle kmod-tun 

Set to start on boot:

/etc/init.d/tailscale enable #设置开机自动启动 
/etc/init.d/tailscale start  #启动tailscale

Then run the command as well:

tailscale up

In addition to the authentication link still appearing, you will also find that it has automatically upgraded to the latest version 1.62.0:

image.png

I have endured version 1.42 of Tailscale on Merlin for a long time, and now I finally don't have to worry about Tailscale updates anymore.


Install tcpdump (optional)

Under the CLI interface, tcpdump is an excellent packet capture tool: you can both see the packet capture results in real-time and save the complete packet capture results as a pcap file, then directly open and analyze it in a desktop system using software like Wireshark or Sniffer. This is extremely useful for those who often tinker and troubleshoot (it was a must-have for troubleshooting when configuring F5 in the past; for example, a customer wrongly accused me that the application didn't work after adding F5, then I directly captured packets with tcpdump, then found that the packets didn't even arrive... and then I could rightfully call out the user~~~~).

Under the "System" - "Software" interface, search for "tcpdump" in the filter, and then install it directly (develop a good habit of updating the list first):

image.png

Of course, you can also install it in the CLI interface:

opkg update
opkg tcpdump

opkg tcpdump

tcpdump -i eth0 src host 192.168.10.84 and dst port 1080

tcpdump -i eth0 src host 192.168.10.84 and dst port 1080

image.png

The specific output is as follows:If you want to save it as a pcap file, then add-w xxxx.pcap

Afterword

parameter, which is very convenient.

You can also install many useful software on OpenWrt, such as Lucky, Transmission, SmartDNS, AdGuard Home, etc. Some can be installed directly in the package manager, some require you to download the ipk package yourself and then upload it to OpenWrt for installation, and others need to be compiled by yourself, which depends on your personal needs.

View Related Categories · 3 Matches
📌 Content Structure Prompt:
This content is part of the following knowledge map, where you can view the complete content path: Blog Knowledge Map。
📎 Related Articles
Share this article
The blog content is original, please indicate the source when reposting! The RSS address of the blog is:https://blog.tangwudi.com/feed, welcome to subscribe; if needed, you can join theTelegram Groupto discuss questions together.
No Comments

Send Comment Edit Comment


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗ
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
Kaomoji
Emoji
Little Dinosaur
Flower!
Previous
Next
       

👋 Welcome to “Wudi's Personal Blog”

Here, long-term exploration is mainly carried out around the following directions:

🧱 Personal Digital Infrastructure and Blog System Construction
☁️ Cloudflare and Network Architecture Practice
🧠 AI and Knowledge System Exploration
🛡️ Network Security and Access Optimization
🎵 Music and Sound Cognition
👁️ Cognitive Perspectives and Worldviews