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):



An error occurred:

Seeing that they are mostly caused by dnsmasq, delete dnsmasq first:
opkg remove *dnsmasq
Displayed as follows:

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

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

Click to enter and you will see the familiar interface:

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):

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:

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):

Of course, you can also install it in the CLI interface:
opkg update
opkg install tailscale
Then start tailscale under CLI:
tailscale up

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:

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:

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

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:

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:

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):

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

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.