安装 opkg
软件源
系统信息提示
Linux version 5.4.182 (root@asus) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r0-febaa0c8)) #1 SMP Wed Apr 12 16:52:31 CST 2023
## 无opkg
创建软件安装目录
cd /jffs
mkdir /jffs/opt
ln -nsf /jffs/opt /tmp/opt
安装 opkg
wget http://qnapware.zyxmon.org/binaries-armv7/installer/entware_install_arm.sh
sh ./entware_install_arm.sh
##来自参考文献:
##这里要说一下,梅林固件自带一个entware.sh的安装脚本,但是要求必须插上一个ext4等linux文件系统的U盘。这里下载的这个安装脚本不需要插u盘。如果你的路由器存储空间比较小,不建议使用本方法。
自动挂载opt分区
在 /jffs/scripts
位置建立文件,文件名:post-mount
可以在电脑上建立后传到路由器中(我是用了U盘拷贝,插到路由器后,使用cp命令复制)
文件内容如下:
#!/bin/sh
ln -nsf /jffs/opt /tmp/opt
给脚本增加权限
chmod a+rx /jffs/scripts/post-mount
至此 opkg 软件源安装完毕 可以使用 opkg 安装软件了
安装iperf
安装命令
opkg update
opkg install iperf
others
iftop可以查看网卡的流量
nload可以可视化流量图
dstat可以全面监控
htop可以看进程的占用
如果确定了网卡的情况,最后用tcpdump
确定到底是哪个ip端口在连哪个ip哪个端口
用ss来看端口情况
ss -tuln | grep :22
就可以确定进程id了
最后用ps -ef来看进程
确定进程的位置
使用上述技巧,可以轻松看出来哪个ip在草你哪个端口的哪个进程,跑在哪个目录,吃了多少流量,进程路径在哪
确定了这个信息以后,如果不喜欢这个进程,可以kill
如果不喜欢这个ip,可以sudo iptables -A INPUT -s 1.2.3.4 -i ens192 -j DROP
如果是ipv6,因为黑客换ip的代价极低
你可以直接block下来整个前缀
sudo ip6tables -A INPUT -s 2001:db8::/32 -i ens192 -j DROP
How to get tls cert
nginx how to set tls cert
Question
家里停电怎么办……
远程重启怎么办
wake on lan怎么办
路由器怎么维护
怎么高可用
怎么备份
怎么防止黑客黑
怎么确保数据安全
怎么不被吸血鬼吸
怎么配权限
怎么快照,怎么报警,怎么监控,怎么备份
怎么演习。。。
配bbr
配fq
配ntp
配http3
配gzip,配brotli
配etag
配CSP
配HSTS
服务器多了就必须研究自动化的监控告警重装备份演习这些的了
启动服务端
iperf -s -D
##win
##.\iperf.exe -s
Windows 客户端命令
.\iperf.exe -c 192.168.20.1 5001 -b 1000m -i -t 10 u -P 4
使用千兆网卡 I219-V
测速结果
OpenWrt & Linux下查看CPU占用的更直观的工具
htop
opkg update
opkg install htop
Thanks for sharing this tutorial on installing opkg and iperf on the TX-AX6000 router device. The steps are clear and easy to follow, and the screenshots provided are helpful in understanding the process.
One suggestion for improvement is to provide more explanation on why someone might want to install opkg and iperf on their router device. What are the benefits or use cases for these tools? This would help readers better understand the value of this tutorial.
Overall, this is a useful guide for those looking to install opkg and iperf on their TX-AX6000 router device. Thanks for sharing!
Thank you for sharing this informative blog post on how to install opkg and iperf on the TX-AX6000 router device running OpenWrt GCC 8.4.0. The step-by-step guide is well-explained, making it easy for readers to follow along and install the software successfully.
The highlight of this post is the clear and concise instructions provided for the installation process. Additionally, the use of screenshots helps to enhance the reader's understanding of the process.
However, it would be helpful if the author included more information on the benefits of using opkg and iperf on the router device. This would help readers understand why they should install these applications.
Overall, this post is an excellent resource for readers who want to install opkg and iperf on their TX-AX6000 router device. The author should continue to provide informative posts like this, but with more details on the benefits of the software.
Thank you for sharing this informative article on how to install opkg and iperf on the TX-AX6000 router device running OpenWrt GCC 8.4.0. The step-by-step guide provided is easy to follow, and the screenshots help to make it more understandable.
The article's biggest strength is the clear and concise instructions on how to install opkg and iperf, making it easy for readers to follow along. The use of screenshots also helps to illustrate the process and makes it more accessible to beginners.
One potential area for improvement is to provide more context on what opkg and iperf are and their benefits. Additionally, it would be helpful to include troubleshooting tips for common issues that readers may encounter during the installation process.
Overall, this article is a great resource for anyone looking to install opkg and iperf on the TX-AX6000 router device running OpenWrt GCC 8.4.0. Keep up the good work!