<?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>Openwrt归档 - WP企业主题资源站</title>
	<atom:link href="https://shop.mac163.com/post-series/openwrt/feed/" rel="self" type="application/rss+xml" />
	<link>https://shop.mac163.com/post-series/openwrt/</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jun 2023 15:46:52 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://shop.mac163.com/wp-content/uploads/2019/08/77bd727-150x85.png</url>
	<title>Openwrt归档 - WP企业主题资源站</title>
	<link>https://shop.mac163.com/post-series/openwrt/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>解决Openwrt中Samba网络共享无法写入权限</title>
		<link>https://shop.mac163.com/18513/</link>
		
		<dc:creator><![CDATA[wordpress主题]]></dc:creator>
		<pubDate>Wed, 05 Oct 2022 10:31:32 +0000</pubDate>
				<category><![CDATA[Linux动态]]></category>
		<category><![CDATA[Linux系统运维]]></category>
		<guid isPermaLink="false">https://shop.mac163.com/?p=18513</guid>

					<description><![CDATA[在软路由Openwrt系统编译过程中难免会使用到Samba网络共享这样一个组件,这样就可以方便的挂载硬盘或者U&#8230;]]></description>
										<content:encoded><![CDATA[<p>在软路由Openwrt系统编译过程中难免会使用到Samba网络共享这样一个组件,这样就可以方便的挂载硬盘或者U盘来作为网络存储或者是做为下载机下载东西到里面方便读取,但是我们在安装好Openwrt系统到软路由中往往发现我们挂载好磁盘后进行共享设置后直接是可以匿名访问的,在网上邻居是可以轻松找到我们的这个磁盘,读取正常了,但是默认情况下是无法写入的,初步判断是权限问题,研究了很久,配置文件也看了,权限也给了,但是还是无法写入,这个问题根本就不是权限问题,经过一番折腾：</p>
<figure id="attachment_18514" aria-describedby="caption-attachment-18514" style="width: 2868px" class="wp-caption aligncenter"><a href="https://shop.mac163.com/wp-content/uploads/2022/10/2925077.png"><img fetchpriority="high" decoding="async" class="size-full wp-image-18514" src="https://shop.mac163.com/wp-content/uploads/2022/10/2925077.png" alt="Openwrt Smb写入权限" width="2868" height="1356" srcset="https://shop.mac163.com/wp-content/uploads/2022/10/2925077.png 2868w, https://shop.mac163.com/wp-content/uploads/2022/10/2925077-300x142.png 300w, https://shop.mac163.com/wp-content/uploads/2022/10/2925077-1024x484.png 1024w, https://shop.mac163.com/wp-content/uploads/2022/10/2925077-768x363.png 768w, https://shop.mac163.com/wp-content/uploads/2022/10/2925077-1536x726.png 1536w, https://shop.mac163.com/wp-content/uploads/2022/10/2925077-2048x968.png 2048w" sizes="(max-width: 2868px) 100vw, 2868px" /></a><figcaption id="caption-attachment-18514" class="wp-caption-text">Openwrt Smb写入权限</figcaption></figure>
<p>看了一下/mnt/sda1的文件夹权限，其中/mnt/sda1为我挂载的磁盘，那么就直接chmod -R 777 /mnt/sda1试试，果断就可以写入了！</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>多个OpenWrt使用旁路由方法组网并使用旁路由DHCP服务</title>
		<link>https://shop.mac163.com/18550/</link>
		
		<dc:creator><![CDATA[wordpress主题]]></dc:creator>
		<pubDate>Thu, 29 Jun 2023 15:46:52 +0000</pubDate>
				<category><![CDATA[Linux动态]]></category>
		<category><![CDATA[Linux系统运维]]></category>
		<guid isPermaLink="false">https://shop.mac163.com/?p=18550</guid>

					<description><![CDATA[相信大家家里都会使用到多个路由器或者多个AP组网实现无线网络覆盖的问题,这里分享一下家庭网络组网经验,本人经过&#8230;]]></description>
										<content:encoded><![CDATA[<p>相信大家家里都会使用到多个路由器或者多个AP组网实现无线网络覆盖的问题,这里分享一下家庭网络组网经验,本人经过多方面折腾组网成功并通过关闭主路由DHCP服,使所有网络客户端通过旁路由获取DHCP服务成功获取到IP.</p>
<p>首先我们来看一下我的网络结构：</p>
<figure id="attachment_18551" aria-describedby="caption-attachment-18551" style="width: 1366px" class="wp-caption aligncenter"><a href="https://shop.mac163.com/wp-content/uploads/2023/06/9db9b85.jpg"><img decoding="async" class="size-full wp-image-18551" src="https://shop.mac163.com/wp-content/uploads/2023/06/9db9b85.jpg" alt="使用openwrt旁路由组建家庭网络" width="1366" height="768" srcset="https://shop.mac163.com/wp-content/uploads/2023/06/9db9b85.jpg 1366w, https://shop.mac163.com/wp-content/uploads/2023/06/9db9b85-300x169.jpg 300w, https://shop.mac163.com/wp-content/uploads/2023/06/9db9b85-1024x576.jpg 1024w, https://shop.mac163.com/wp-content/uploads/2023/06/9db9b85-768x432.jpg 768w" sizes="(max-width: 1366px) 100vw, 1366px" /></a><figcaption id="caption-attachment-18551" class="wp-caption-text">使用openwrt旁路由组建家庭网络</figcaption></figure>
<p>首先电信的光猫没有静态路由功能,即使有也没有超级管理员权限,所有我加了一个OpenWrt的硬路由做了一个旁路由,多LAN口和单LAN口都可以,旁路由选择空间就灵活了,然后主卧室我用的OpenWrt软路由,次卧用的360可以桥接的路由器,和旁路由性质差不多,桥接了你可以理解成就说一个AP,不过带了有线网口而已,那么我们由此可以看出整个网络结构就有几层路由了,所有路由器都是连接在的光猫上面,光猫在这里充当了主路由角色.</p>
<p>在不改变现有设备和网络环境的情况下能把家庭网络组建成一个局域网即能分享,又能投屏,还能共享打印机是不是我们一直很适用的功能,那么我们就需要组网了,下面就给大家分享一下如何组建不同网段下的组网经验。</p>
<p>首先我们需要再路由A下面ping通路由B,路由B的Lan口网段说192.168.0.x,我们先在OpenWrt里面设置静态路由：</p>
<p><strong>在路由B上设置如下</strong></p>
<figure id="attachment_18552" aria-describedby="caption-attachment-18552" style="width: 2874px" class="wp-caption aligncenter"><a href="https://shop.mac163.com/wp-content/uploads/2023/06/33d0416.png"><img decoding="async" class="size-full wp-image-18552" src="https://shop.mac163.com/wp-content/uploads/2023/06/33d0416.png" alt="Openwrt设置静态路由" width="2874" height="1370" srcset="https://shop.mac163.com/wp-content/uploads/2023/06/33d0416.png 2874w, https://shop.mac163.com/wp-content/uploads/2023/06/33d0416-300x143.png 300w, https://shop.mac163.com/wp-content/uploads/2023/06/33d0416-1024x488.png 1024w, https://shop.mac163.com/wp-content/uploads/2023/06/33d0416-768x366.png 768w, https://shop.mac163.com/wp-content/uploads/2023/06/33d0416-1536x732.png 1536w, https://shop.mac163.com/wp-content/uploads/2023/06/33d0416-2048x976.png 2048w" sizes="(max-width: 2874px) 100vw, 2874px" /></a><figcaption id="caption-attachment-18552" class="wp-caption-text">Openwrt设置静态路由</figcaption></figure>
<p><strong>路由A(旁路由)上设置如下</strong></p>
<figure id="attachment_18553" aria-describedby="caption-attachment-18553" style="width: 2020px" class="wp-caption aligncenter"><a href="https://shop.mac163.com/wp-content/uploads/2023/06/33d0414.png"><img loading="lazy" decoding="async" class="size-full wp-image-18553" src="https://shop.mac163.com/wp-content/uploads/2023/06/33d0414.png" alt="Openwrt设置静态路由" width="2020" height="1218" srcset="https://shop.mac163.com/wp-content/uploads/2023/06/33d0414.png 2020w, https://shop.mac163.com/wp-content/uploads/2023/06/33d0414-300x181.png 300w, https://shop.mac163.com/wp-content/uploads/2023/06/33d0414-1024x617.png 1024w, https://shop.mac163.com/wp-content/uploads/2023/06/33d0414-768x463.png 768w, https://shop.mac163.com/wp-content/uploads/2023/06/33d0414-1536x926.png 1536w" sizes="auto, (max-width: 2020px) 100vw, 2020px" /></a><figcaption id="caption-attachment-18553" class="wp-caption-text">Openwrt设置静态路由</figcaption></figure>
<p>下面我们用电脑连接路由A或者我们的AP,网段在192.168.1.x上就行,然后我们来ping我们的路由B的lan口网段：</p>
<figure id="attachment_18554" aria-describedby="caption-attachment-18554" style="width: 1140px" class="wp-caption aligncenter"><a href="https://shop.mac163.com/wp-content/uploads/2023/06/894b845.png"><img loading="lazy" decoding="async" class="size-full wp-image-18554" src="https://shop.mac163.com/wp-content/uploads/2023/06/894b845.png" alt="路由器组网" width="1140" height="730" srcset="https://shop.mac163.com/wp-content/uploads/2023/06/894b845.png 1140w, https://shop.mac163.com/wp-content/uploads/2023/06/894b845-300x192.png 300w, https://shop.mac163.com/wp-content/uploads/2023/06/894b845-1024x656.png 1024w, https://shop.mac163.com/wp-content/uploads/2023/06/894b845-768x492.png 768w" sizes="auto, (max-width: 1140px) 100vw, 1140px" /></a><figcaption id="caption-attachment-18554" class="wp-caption-text">路由器组网</figcaption></figure>
<p>可见已经互通了，但是我们访问192.168.0.1是出现拒绝访问,这是因为我们路由B上OpenWrt的防火墙规则还没有设置,接着如下：</p>
<figure id="attachment_18556" aria-describedby="caption-attachment-18556" style="width: 2378px" class="wp-caption aligncenter"><a href="https://shop.mac163.com/wp-content/uploads/2023/06/96b5d59.png"><img loading="lazy" decoding="async" class="size-full wp-image-18556" src="https://shop.mac163.com/wp-content/uploads/2023/06/96b5d59.png" alt="Openwrt静态路由防火墙设置" width="2378" height="1266" srcset="https://shop.mac163.com/wp-content/uploads/2023/06/96b5d59.png 2378w, https://shop.mac163.com/wp-content/uploads/2023/06/96b5d59-300x160.png 300w, https://shop.mac163.com/wp-content/uploads/2023/06/96b5d59-1024x545.png 1024w, https://shop.mac163.com/wp-content/uploads/2023/06/96b5d59-768x409.png 768w, https://shop.mac163.com/wp-content/uploads/2023/06/96b5d59-1536x818.png 1536w, https://shop.mac163.com/wp-content/uploads/2023/06/96b5d59-2048x1090.png 2048w" sizes="auto, (max-width: 2378px) 100vw, 2378px" /></a><figcaption id="caption-attachment-18556" class="wp-caption-text">Openwrt静态路由防火墙设置</figcaption></figure>
<p>选择入站数据为接受后可成功访问！</p>
<p>接下来我们要使用旁路由上的DHCP服务来实现局域网上面所有的客户端DHCP获取到的网关默认为旁路由而不需要每个手动设置,能自动获取就方便多啦,我们先关闭光猫(主路由)上的DHCP服务,随后打开我们旁路由上的DHCP服务,如下：</p>
<figure id="attachment_18557" aria-describedby="caption-attachment-18557" style="width: 2130px" class="wp-caption aligncenter"><a href="https://shop.mac163.com/wp-content/uploads/2023/06/75fca47.png"><img loading="lazy" decoding="async" class="size-full wp-image-18557" src="https://shop.mac163.com/wp-content/uploads/2023/06/75fca47.png" alt="Openwrt使用旁路由dhcp服务" width="2130" height="1332" srcset="https://shop.mac163.com/wp-content/uploads/2023/06/75fca47.png 2130w, https://shop.mac163.com/wp-content/uploads/2023/06/75fca47-300x188.png 300w, https://shop.mac163.com/wp-content/uploads/2023/06/75fca47-1024x640.png 1024w, https://shop.mac163.com/wp-content/uploads/2023/06/75fca47-768x480.png 768w, https://shop.mac163.com/wp-content/uploads/2023/06/75fca47-1536x961.png 1536w, https://shop.mac163.com/wp-content/uploads/2023/06/75fca47-2048x1281.png 2048w" sizes="auto, (max-width: 2130px) 100vw, 2130px" /></a><figcaption id="caption-attachment-18557" class="wp-caption-text">Openwrt使用旁路由dhcp服务</figcaption></figure>
<p>这样就设置好了整个组网流程,希望可以帮助到你！分享的有点粗糙,时间原因就没有那么详细!</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
