<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; OpenWrt</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/openwrt/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>在X86平台物理机上安装OpenWrt软路由系统</title>
		<link>https://www.osyunwei.com/archives/16968.html</link>
		<comments>https://www.osyunwei.com/archives/16968.html#comments</comments>
		<pubDate>Mon, 02 Mar 2026 15:00:04 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Router]]></category>
		<category><![CDATA[OpenWrt]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16968</guid>
		<description><![CDATA[OpenWrt相关教程： 在ESXI上部署OpenWrt软路由系统 https://www.osyunwei.com/archives/16907.html OpenWrt软路由系统扩容磁盘 https://www.osyunwei.com/archives/16933.html 在OpenWrt软路由系统中设置虚拟专用网拨号 https://www.osyunwei.com/archives/16944.html 对OpenWrt的squashfs格式镜像进行扩容操作 https://www.osyunwei.com/archives/16960.html 简单说明： 在X86平台物理机上安装OpenWrt软路由系统，建议使用ext4格式的镜像文件，安装后可以扩容，当然也能选择提前扩容好的squashfs格式的镜像文件来安装。 下载地址： https://downloads.openwrt.org/releases/ https://downloads.openwrt.org/releases/24.10.5/targets/x86/64/ https://downloads.openwrt.org/releases/24.10.5/targets/x86/64/openwrt-24.10.5-x86-64-generic-ext4-combined.img.gz 所需工具： 1、可以从PE系统启动的u盘 2、写盘软件DiskImage: https://roadkil.net/downloads.php https://roadkil.net/download.php?FileID=409&#038;ProgramID=12 3、OpenWrt镜像文件openwrt-24.10.5-x86-64-generic-ext4-combined.img 把openwrt-24.10.5-x86-64-generic-ext4-combined.img和DiskImage拷贝到u盘根目录下面 我这里有之前扩容好的 squashfs格式的 2GB镜像文件： openwrt-24.10.5-x86-64-generic-squashfs-combined.img 以这个镜像为例来安装 从u盘启动，进PE系统 打开DiskImage_1_6_WinAll.exe写盘工具 切换到Write Image Write Image to：选择要安装OpenWrt的磁盘，一定要选择正确 Source：选择我们下载好的OpenWrt镜像文件 确认无误后，点Start开始写盘操作 再次确认，点是 等待执行完成，然后关闭电脑，拔掉u盘，开机进bios设置刚刚写入OpenWrt镜像的硬盘为第一启动，保存重启 会看到下面的界面，等待启动完成。 这个时候OpenWrt已经安装完成了。 简单设置OpenWrt系统 默认root登录密码为空 默认第一款网卡是lan，默认ip地址是192.168.1.1 我们修改为自己需要的ip地址 vi /etc/config/network config interface 'lan' option device 'br-lan' option proto 'static' [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16968.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16968.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>对OpenWrt的squashfs格式镜像进行扩容操作</title>
		<link>https://www.osyunwei.com/archives/16960.html</link>
		<comments>https://www.osyunwei.com/archives/16960.html#comments</comments>
		<pubDate>Mon, 02 Mar 2026 10:30:39 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Router]]></category>
		<category><![CDATA[OpenWrt]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16960</guid>
		<description><![CDATA[OpenWrt安装镜像有ext4和squashfs两种格式，ext4在安装完成后可以对磁盘进行扩容，squashfs则不能扩容。 但是，我们可以在安装前对squashfs镜像扩容操作，扩容完成之后再安装。 我们需要在Linux系统下操作，我这里用的是AnolisOS-8.10系统 1、下载OpenWRT的gz镜像上传后解压 镜像下载地址： https://downloads.openwrt.org/releases/24.10.5/targets/x86/64/ https://downloads.openwrt.org/releases/24.10.5/targets/x86/64/openwrt-24.10.5-x86-64-generic-squashfs-combined.img.gz #解压 gzip -d openwrt-24.10.5-x86-64-generic-squashfs-combined.img.gz #扩容，镜像文件的末尾追加2GB的空白数据 #用dd命令，2M即一次，增加2M的空间，增加1024次，也就是2G的空间 dd if=/dev/zero bs=2M count=1024 &#62;&#62; openwrt-24.10.5-x86-64-generic-squashfs-combined.img #用parted命令进入img镜像，把刚才增加的空间扩展进去 parted openwrt-24.10.5-x86-64-generic-squashfs-combined.img print #用print查看一下分区，发现有两个区 Number Start End Size Type File system Flags 1 262kB 17.0MB 16.8MB primary ext2 boot 2 17.3MB 126MB 109MB primary #把增加的空间扩容给第二个分区 resizepart 2 100% #完成，退出 quit 再次查看镜像分区大小，现在第二个分区已经显示是2GB了 现在就可以用这个镜像文件来安装了，装好之后磁盘空间就是2GB 至此，对OpenWrt的squashfs格式镜像进行扩容操作完成。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/16960.html» [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16960.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16960.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在OpenWrt软路由系统中设置虚拟专用网拨号</title>
		<link>https://www.osyunwei.com/archives/16944.html</link>
		<comments>https://www.osyunwei.com/archives/16944.html#comments</comments>
		<pubDate>Mon, 02 Mar 2026 09:07:04 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Router]]></category>
		<category><![CDATA[OpenWrt]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16944</guid>
		<description><![CDATA[在OpenWrt软路由系统中设置虚拟专用网拨号，通常是指将OpenWrt路由器配置为‌OpenVPN客户端‌，以连接到远程的OpenVPN服务器（如公司内网或商业VPN服务），从而实现安全的远程访问。 在ESXI上部署OpenWrt软路由系统 https://www.osyunwei.com/archives/16907.html OpenWrt软路由系统扩容磁盘 https://www.osyunwei.com/archives/16933.html 1、安装openvpn程序包 在ssh命令行操作，或者在web控制台安装。 opkg update #更新仓库 opkg install openvpn-openssl #安装 OpenSSL 版本的 OpenVPN opkg install luci-app-openvpn #安装 LuCI 网页管理插件 opkg install ca-bundle #安装 LuCI 网页管理插件 /etc/init.d/rpcd restart #重启 LuCI 服务（让菜单显示出来） 2、导入openvpn配置文件 openvpn配置文件的配置文件一般都是.ovpn后缀结尾的 先需要检查下这个文件，看有没有下面的参数配置，如果没有需要添加 #添加此配置，否则客户端连接后获取不到vpn的网络，强制要求客户端将所有互联网流量重定向到vpn redirect-gateway def1 #在open配置文件里面添加账号密码路径 auth-user-pass /etc/openvpn/userpass 进入到ssh控制台，编辑账号密码文件，添加你的vpn登录账号和密码，上面写账号，下面写密码 vi /etc/openvpn/userpass vpnuser 123456 :wq! #保存退出 chmod 600 /etc/openvpn/userpass #设置只读权限 ls [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16944.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16944.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenWrt软路由系统扩容磁盘</title>
		<link>https://www.osyunwei.com/archives/16933.html</link>
		<comments>https://www.osyunwei.com/archives/16933.html#comments</comments>
		<pubDate>Sun, 01 Mar 2026 15:19:15 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Router]]></category>
		<category><![CDATA[OpenWrt]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16933</guid>
		<description><![CDATA[在ESXI上部署OpenWrt软路由系统 https://www.osyunwei.com/archives/16907.html 前提条件：使用ext4文件系统的OpenWrt支持安装后扩容磁盘，如果是squashfs文件系统则不支持安装后扩容 扩容操作步骤，如果是虚拟机安装的OpenWrt系统，先关机给虚拟机磁盘镜像扩容，然后启动虚拟机。 ssh登录到OpenWrt终端进行操作 1、下载扩容脚本 在终端中输入命令下载所需脚本并重命名为expand-root.sh wget -U "" -O expand-root.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/expand_root?codeblock=0" 2、运行下载的脚本以生成扩容脚本 . ./expand-root.sh 3、安装扩容工具 opkg update opkg install parted losetup resize2fs 4. 运行扩容命令 sh /etc/uci-defaults/70-rootpt-resize 执行过程中路由器会自动重启，等设备启动完成后扩容成功。 原理： 脚本会把扩容逻辑写入 /etc/uci-defaults/ 脚本成功运行后扩容成功并创建了touch /etc/rootpt-resize这个文件 重启OpenWrt或者再次运行脚本的时候，系统会检测到 /etc/rootpt-resize 已经存在，它便认为“扩容任务已完成”，直接跳过了后续所有操作 如果磁盘空间又不够用了需要扩容，先在虚拟机里面增加磁盘空间，要先关机，再打开，然后删除这2个文件，再重启。 删除第一个文件：告诉系统“分区还没扩好”，触发第一步（parted）。 删除第二个文件：告诉系统“文件系统还没拉伸”，触发第二步（resize2fs）。 rm -f /etc/rootpt-resize rm -f /etc/rootfs-resize reboot #重启系统后会自动扩容 至此，OpenWrt软路由系统扩容磁盘完成。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/16933.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » OpenWrt软路由系统扩容磁盘<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16933.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16933.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在ESXI上部署OpenWrt软路由系统</title>
		<link>https://www.osyunwei.com/archives/16907.html</link>
		<comments>https://www.osyunwei.com/archives/16907.html#comments</comments>
		<pubDate>Sun, 01 Mar 2026 09:19:12 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Router]]></category>
		<category><![CDATA[ESXI]]></category>
		<category><![CDATA[OpenWrt]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16907</guid>
		<description><![CDATA[1、简单介绍 OpenWrt 是一个基于Linux的开源路由器系统，可以安装在普通PC电脑上，也能安装在虚拟机中，还可以安装在支持OpenWrt系统的硬件路由器上。 软件生态丰富：拥有数千个免费插件，可轻松实现科学上网（OpenVPN, Clash, WireGuard）等。 2、官方网站下载 https://downloads.openwrt.org/releases/ https://downloads.openwrt.org/releases/24.10.5/targets/x86/64/ 我们选择x86/64/格式的镜像 有4种类型的镜像文件： 引导方式：UEFI 还是 Legacy BIOS 启动 文件系统：ext4 还是 squashfs generic-ext4-combined-efi.img.gz generic-ext4-combined.img.gz generic-squashfs-combined-efi.img.gz generic-squashfs-combined.img.gz 一般选择generic-ext4-combined.img.gz镜像就可以。 https://downloads.openwrt.org/releases/24.10.5/targets/x86/64/openwrt-24.10.5-x86-64-generic-ext4-combined.img.gz 注意： .img 文件本身就已经是一个完整的、包含分区表和文件系统的硬盘镜像了。 它不像 Windows 的 .iso 文件那样是一个“安装光盘”，需要你运行安装程序去格式化硬盘、复制文件。 .img 文件就像是已经装好系统并拔下来的硬盘，你只需要把它“插”到虚拟机上即可。 3、转换img固件为ESXi可以识别的镜像 安装转换工具StarWind V2V Converter 下载地址： https://www.starwindsoftware.com/tmplink/starwindconverter.exe 修改镜像名称，把下载好的镜像openwrt-24.10.5-x86-64-generic-ext4-combined.img改名为：openwrt24.img 安装并打开StarWind V2V Converter 选择 local file本地文件 选择刚刚修改过名字的镜像文件 选择转换位置local file 选择格式类型VMDK 选择虚拟机硬盘文件格式类型：这里选择ESXi 选择存储位置 转换 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16907.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16907.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
