OpenWrt常用插件安装配置

The OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to build a complete firmware around it; for users this means the ability for full customization, to use the device in ways never envisioned.

简介

上一个文章我们简单在PVE安装了虚拟机上安装了OpenWrt,但是因为是修改后的,有很多bug,这次来安装官方开源的,并简单一些配置

安装

https://downloads.openwrt.org/releases/22.03.2/targets/x86/64/选择**generic-ext4-combined-efi.img.gz**

解压并在openWrt的手动更新中选择镜像点击升级。安装完成后大概长这样:

file

配置

插件1:OpenClash

https://github.com/vernesong/OpenClash

GitHub官方仓库,

添加官方镜像

sed -i 's_downloads.openwrt.org_mirrors.tuna.tsinghua.edu.cn/openwrt_' /etc/opkg/distfeeds.conf

安装

安装 · vernesong/OpenClash Wiki

#安装依赖
* luci
* luci-base
* iptables
* dnsmasq-full
* coreutils
* coreutils-nohup
* bash
* curl
* jsonfilter
* ca-certificates
* ipset
* ip-full
* iptables-mod-tproxy
* kmod-tun(TUN模式)
* luci-compat(Luci-19.07)

#上传IPK文件至您路由器的 /tmp 目录下

#假设安装包名字为
luci-app-openclash_0.33.7-beta_all.ipk

#执行安装命令
opkg install /tmp/luci-app-openclash_0.33.7-beta_all.ipk

#执行卸载命令
#插件在卸载后会自动备份配置文件到 /tmp 目录下,除非路由器重启,在下次安装时将还原您的配置文件
opkg remove luci-app-openclash

安装完成后刷新LUCI页面,在菜单栏 -> 服务 -> OpenClash 进入插件页面

导入规则

file

启动OpenClash

file file