esxcli system hostname set --host=esxi
esxcli system hostname set --fqdn=esxi
OpenWrt
镜像
https://downloads.openwrt.org/releases/23.05.0/targets/x86/64/
https://downloads.openwrt.org/releases/23.05.0/targets/x86/64/openwrt-23.05.0-x86-64-generic-ext4-combined-efi.img.gz
brew install qemu
qemu-img convert -f raw -O vmdk openwrt-23.05.0-x86-64-generic-ext4-combined-efi.img openwrt-23.05.0-x86-64-generic-ext4-combined-efi.vmdk
cd /vmfs/volumes/datastore1/OpenWrt
vmkfstools -i arpl.vmdk openwrt-23.05.0-x86-64-generic-ext4-combined-efi.vmdk -d thin
源码
https://github.com/openwrt/openwrt
常用包安装
sed -i 's/downloads.openwrt.org/mirrors.ustc.edu.cn\/openwrt/g' /etc/opkg/distfeeds.conf
echo 'src/gz openwrt_kiddin9 https://dl.openwrt.ai/packages-23.05/x86_64/kiddin9' >> /etc/opkg/customfeeds.conf
sed -i 's/^option check_signature/# &/' /etc/opkg.conf
opkg update
opkg install unzip
opkg install git-http ca-bundle
opkg install lrzsz
opkg install cfdisk
opkg install lsblk
opkg install luci-theme-argon luci-app-argon-config
opkg install luci-app-diskman
opkg install block-mount
opkg install luci-compat
opkg install luci-app-openclash
opkg install openssh-sftp-server
opkg install luci-app-mosdns
opkg install luci-app-smartdns
opkg install luci-app-adguardhome
opkg install luci-app-wechatpush luci-app-pushbot
扩容
https://doc.openwrt.cc/1-General/6-Resize
https://seahi.me/263.html
clash 插件
https://github.com/vernesong/OpenClash
opkg remove dnsmasq
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
mkdir -p /etc/openclash/core/
cd /etc/openclash/core/
tar -xf clash-linux-amd64.tar
opkg install /tmp/luci-app-openclash*.ipk
自定义防火墙规则
23.05 界面上没了,需要自行设置
https://www.right.com.cn/forum/thread-8305441-1-1.html
config include
option enabled 1
option type 'script'
option path '/etc/firewall.user'
option fw4_compatible 1
nft add rule inet fw4 dstnat tcp dport 53 counter redirect to :53
nft add rule inet fw4 dstnat udp dport 53 counter redirect to :53
turboacc 插件
https://github.com/chenmozhijin/turboacc
openwrt 安装的 23.05
此处需要按此步骤
23.05/master(kernel-5.15)
cd /tmp
git clone https://github.com/openwrt/openwrt -b v23.05.0
cd /tmp/openwrt
opkg install perl perlbase-getopt perlbase-env perlbase-findbin perlbase-thread make coreutils-nproc git gcc libncurses-dev libncurses6 perlbase-thread rsync tar findutils patch diffutils gawk grep gzip file wget-ssl python3 coreutils-install coreutils-realpath getopt coreutils-stat musl-fts
./scripts/feeds update -a
./scripts/feeds install -a
安装黑群晖
黑群晖引导镜像
https://github.com/fbelavenuto/arpl
黑群晖引导镜像-汉化
https://github.com/wjz304/arpl-zh_CN
https://github.com/wjz304/rr/releases