<?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>技術 &#8211; acm&#039;s blog</title>
	<atom:link href="https://blog.acm.idv.tw/category/%e6%8a%80%e8%a1%93/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.acm.idv.tw</link>
	<description>技術與生活隨筆</description>
	<lastBuildDate>Sat, 26 Oct 2024 01:58:20 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>

<image>
	<url>https://blog.acm.idv.tw/wp-content/uploads/2022/06/cropped-logo_kaffa9-3-32x32.png</url>
	<title>技術 &#8211; acm&#039;s blog</title>
	<link>https://blog.acm.idv.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>MikroTik推出hEX路由器(RB750Gr3)更新──E50UG</title>
		<link>https://blog.acm.idv.tw/2024/10/26/mikrotik%e6%8e%a8%e5%87%bahex%e8%b7%af%e7%94%b1%e5%99%a8rb750gr3%e6%9b%b4%e6%96%b0%e2%94%80%e2%94%80e50ug/</link>
					<comments>https://blog.acm.idv.tw/2024/10/26/mikrotik%e6%8e%a8%e5%87%bahex%e8%b7%af%e7%94%b1%e5%99%a8rb750gr3%e6%9b%b4%e6%96%b0%e2%94%80%e2%94%80e50ug/#respond</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Sat, 26 Oct 2024 01:58:20 +0000</pubDate>
				<category><![CDATA[硬體]]></category>
		<category><![CDATA[網路]]></category>
		<category><![CDATA[MikroTik]]></category>
		<category><![CDATA[RouterOS]]></category>
		<guid isPermaLink="false">https://blog.cislab.cc/?p=855</guid>

					<description><![CDATA[今天閒來無事逛了一下MikroTik網頁，發現冒出了一款名為hEX refresh的新硬體！嗯！？ 原來這是hEX號由器（目前型號為RB750Gr3）的升級版，...<p class="read-more"><a class="btn btn-default" href="https://blog.acm.idv.tw/2024/10/26/mikrotik%e6%8e%a8%e5%87%bahex%e8%b7%af%e7%94%b1%e5%99%a8rb750gr3%e6%9b%b4%e6%96%b0%e2%94%80%e2%94%80e50ug/"> Read More<span class="screen-reader-text">  Read More</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>今天閒來無事逛了一下MikroTik網頁，發現冒出了一款名為hEX refresh的新硬體！嗯！？</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="749" height="236" src="https://blog.cislab.cc/wp-content/uploads/2024/10/image.png" alt="" class="wp-image-856" srcset="https://blog.acm.idv.tw/wp-content/uploads/2024/10/image.png 749w, https://blog.acm.idv.tw/wp-content/uploads/2024/10/image-300x95.png 300w, https://blog.acm.idv.tw/wp-content/uploads/2024/10/image-604x190.png 604w" sizes="(max-width: 749px) 100vw, 749px" /></figure>



<p>原來這是hEX號由器（目前型號為RB750Gr3）的升級版，主要的改變應該是CPU換了一顆基於ARM64架構的雙核心EN7562CT，記憶體也從原本的256M提升至512M，官方號稱效能提升超過一倍！（各項數據表現在100%-134%之間）至於其他規格，如儲存空間、PoE、SDCard卡槽則沒有改變，預載的作業系統則是使用RouterOS v7（我先入手的 2 台 RB750Gr3 出廠都是預載 v6）。</p>



<p>以下是官方介紹影片：</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="hEX - the most affordable Ethernet router RE-RELEASED" width="640" height="360" src="https://www.youtube.com/embed/Zrzq_zPWoQ4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2024/10/26/mikrotik%e6%8e%a8%e5%87%bahex%e8%b7%af%e7%94%b1%e5%99%a8rb750gr3%e6%9b%b4%e6%96%b0%e2%94%80%e2%94%80e50ug/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress位於reverse proxy後的設定方式Ⅱ</title>
		<link>https://blog.acm.idv.tw/2024/10/26/wordpress%e4%bd%8d%e6%96%bcreverse-proxy%e5%be%8c%e7%9a%84%e8%a8%ad%e5%ae%9a%e6%96%b9%e5%bc%8f%e2%85%b1/</link>
					<comments>https://blog.acm.idv.tw/2024/10/26/wordpress%e4%bd%8d%e6%96%bcreverse-proxy%e5%be%8c%e7%9a%84%e8%a8%ad%e5%ae%9a%e6%96%b9%e5%bc%8f%e2%85%b1/#respond</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Sat, 26 Oct 2024 01:51:29 +0000</pubDate>
				<category><![CDATA[系統維運]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://blog.cislab.cc/?p=853</guid>

					<description><![CDATA[近期有不知名大大前來留言，才發現我的WordPress對於處理外部真實IP的部份沒有做好，雖然前一篇文章已經成功設定好nginx將real IP搞成HTTP h...<p class="read-more"><a class="btn btn-default" href="https://blog.acm.idv.tw/2024/10/26/wordpress%e4%bd%8d%e6%96%bcreverse-proxy%e5%be%8c%e7%9a%84%e8%a8%ad%e5%ae%9a%e6%96%b9%e5%bc%8f%e2%85%b1/"> Read More<span class="screen-reader-text">  Read More</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>近期有不知名大大前來留言，才發現我的WordPress對於處理外部真實IP的部份沒有做好，雖然前一篇文章已經成功設定好nginx將real IP搞成HTTP header的一部份，但後端WordPress完全沒有拿來用呀！XD</p>



<p>我們需要在 wp-config.php 內取得真實IP後，再覆寫 header 資訊即可：</p>



<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
	$http_x_headers = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] );
	$_SERVER['REMOTE_ADDR'] = $http_x_headers[0];
}</pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2024/10/26/wordpress%e4%bd%8d%e6%96%bcreverse-proxy%e5%be%8c%e7%9a%84%e8%a8%ad%e5%ae%9a%e6%96%b9%e5%bc%8f%e2%85%b1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>詭異的RouterOS v6更新後IPSec連線建立失敗問題</title>
		<link>https://blog.acm.idv.tw/2024/06/15/%e8%a9%ad%e7%95%b0%e7%9a%84routeros-v6%e6%9b%b4%e6%96%b0%e5%be%8cipsec%e9%80%a3%e7%b7%9a%e5%bb%ba%e7%ab%8b%e5%a4%b1%e6%95%97%e5%95%8f%e9%a1%8c/</link>
					<comments>https://blog.acm.idv.tw/2024/06/15/%e8%a9%ad%e7%95%b0%e7%9a%84routeros-v6%e6%9b%b4%e6%96%b0%e5%be%8cipsec%e9%80%a3%e7%b7%9a%e5%bb%ba%e7%ab%8b%e5%a4%b1%e6%95%97%e5%95%8f%e9%a1%8c/#comments</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Sat, 15 Jun 2024 02:59:03 +0000</pubDate>
				<category><![CDATA[技術]]></category>
		<category><![CDATA[網路]]></category>
		<category><![CDATA[gre]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[MikroTik]]></category>
		<category><![CDATA[RouterOS]]></category>
		<guid isPermaLink="false">https://blog.cislab.cc/?p=837</guid>

					<description><![CDATA[今天心血來潮，檢查了MikroTik RouterOS v6是否有新版本，發現4月釋出了v6.49.15版，都過了這麼久，也許算是穩定版了，便著手進行系統升版（...<p class="read-more"><a class="btn btn-default" href="https://blog.acm.idv.tw/2024/06/15/%e8%a9%ad%e7%95%b0%e7%9a%84routeros-v6%e6%9b%b4%e6%96%b0%e5%be%8cipsec%e9%80%a3%e7%b7%9a%e5%bb%ba%e7%ab%8b%e5%a4%b1%e6%95%97%e5%95%8f%e9%a1%8c/"> Read More<span class="screen-reader-text">  Read More</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>今天心血來潮，檢查了MikroTik RouterOS v6是否有新版本，發現4月釋出了v6.49.15版，都過了這麼久，也許算是穩定版了，便著手進行系統升版（設備版本為v6.49.11）。</p>



<p>A地更新完後，也許是DDNS更新還需要點時間，IPSec連線無法馬上建立，手動在/ip cloud進行DDNS的強制更新後 (force update)，便成功建立IPSec連線與GRE tunnel。</p>



<p>確定上網正常後，便開始進行B地更新（遠端），詎料等待了10分鐘，IPSec連線仍無法建立。使用nslookup檢查了B地的DDNS域名設定，發現也早已更新完成，便使用米家app確認B地米家攝影機是否正常，發現可以正常觀看，表示B地Internet連線沒有問題，只好透過Cloudflare Tunnel連上B地伺服器，再跳到MikroTik設備裡看看有什麼端倪。</p>



<p>確定IPSec設定無誤，手動kill connection也沒效，重新連線，A、B兩端始終都會停在no phase 2的階段，IPSec handshake無法順利完成。於是心生一計，到GRE tunnel設定頁面，將A、B兩端的IPSec secret重新設定一次，沒想到一切都正常了（？？？）太神奇了，傑克！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2024/06/15/%e8%a9%ad%e7%95%b0%e7%9a%84routeros-v6%e6%9b%b4%e6%96%b0%e5%be%8cipsec%e9%80%a3%e7%b7%9a%e5%bb%ba%e7%ab%8b%e5%a4%b1%e6%95%97%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>WordPress位於reverse proxy後的設定方式</title>
		<link>https://blog.acm.idv.tw/2024/05/01/wordpress%e4%bd%8d%e6%96%bcreverse-proxy%e5%be%8c%e7%9a%84%e8%a8%ad%e5%ae%9a%e6%96%b9%e5%bc%8f/</link>
					<comments>https://blog.acm.idv.tw/2024/05/01/wordpress%e4%bd%8d%e6%96%bcreverse-proxy%e5%be%8c%e7%9a%84%e8%a8%ad%e5%ae%9a%e6%96%b9%e5%bc%8f/#respond</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Wed, 01 May 2024 11:41:48 +0000</pubDate>
				<category><![CDATA[系統維運]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://blog.kaffa9.com/?p=827</guid>

					<description><![CDATA[參考文章 https://medium.com/@tyh409700530/nginx-reverse-proxy-wordpress-in-https-mod...<p class="read-more"><a class="btn btn-default" href="https://blog.acm.idv.tw/2024/05/01/wordpress%e4%bd%8d%e6%96%bcreverse-proxy%e5%be%8c%e7%9a%84%e8%a8%ad%e5%ae%9a%e6%96%b9%e5%bc%8f/"> Read More<span class="screen-reader-text">  Read More</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>參考文章 <a href="https://medium.com/@tyh409700530/nginx-reverse-proxy-wordpress-in-https-mode-a21658f23978">https://medium.com/@tyh409700530/nginx-reverse-proxy-wordpress-in-https-mode-a21658f23978</a> ，使用 nginx，於 nginx 設定檔設定：</p>



<pre class="EnlighterJSRAW" data-enlighter-language="nginx" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># location 設定
location / {
    proxy_pass http://127.0.0.1:8080;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header X-Forwarded-Proto $scheme;

    proxy_redirect off;
}</pre>



<p>確保wp-config.php加入以下原始碼，否則使用HTTPS連線時，有機會遇到redirect loop (HTTP 302)：</p>



<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">if (isset($_SERVER[‘HTTP_X_FORWARDED_HOST’])) {
    $_SERVER[‘HTTP_HOST’] = $_SERVER[‘HTTP_X_FORWARDED_HOST’];
}
if (isset($_SERVER[‘HTTP_X_FORWARDED_PROTO’])) {
    if ($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’) {
        $_SERVER[‘HTTPS’] = ‘on’;
    }
}</pre>



<p>官網提供的範例是：</p>



<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">if( strpos( $_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false )
    $_SERVER['HTTPS'] = 'on';</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2024/05/01/wordpress%e4%bd%8d%e6%96%bcreverse-proxy%e5%be%8c%e7%9a%84%e8%a8%ad%e5%ae%9a%e6%96%b9%e5%bc%8f/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linode詭異問題</title>
		<link>https://blog.acm.idv.tw/2024/05/01/linode%e8%a9%ad%e7%95%b0%e5%95%8f%e9%a1%8c/</link>
					<comments>https://blog.acm.idv.tw/2024/05/01/linode%e8%a9%ad%e7%95%b0%e5%95%8f%e9%a1%8c/#respond</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Wed, 01 May 2024 11:34:12 +0000</pubDate>
				<category><![CDATA[雲服務]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[Lightsail]]></category>
		<category><![CDATA[Linode]]></category>
		<category><![CDATA[VPS]]></category>
		<guid isPermaLink="false">https://blog.kaffa9.com/?p=825</guid>

					<description><![CDATA[前一陣子，由於收到AWS即將針對IPv4 address收費的公告，便嘗試將Lightsail轉移成IPv6-only lightsail，沒想到容器移到了IP...<p class="read-more"><a class="btn btn-default" href="https://blog.acm.idv.tw/2024/05/01/linode%e8%a9%ad%e7%95%b0%e5%95%8f%e9%a1%8c/"> Read More<span class="screen-reader-text">  Read More</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>前一陣子，由於收到AWS即將針對IPv4 address收費的公告，便嘗試將Lightsail轉移成IPv6-only lightsail，沒想到容器移到了IPv6-only環境後，原本提供服務的容器如nginx接收request是沒問題，但若是由容器主動發起對外連線就不行了，cloudflare tunnel也是因為同樣的原因失效，由於無法短時間解決，便決定移往Linode。</p>



<p>這次移往Linode，算是我第二次申租，前一次是數年前衝著前幾月的免費額度姑且先試試，曾遇過VPS突然死機，需要Linode介入處理（Linode還自己開立ticket），那時候就讓我對Linode品質打了個問號，後來發現AWS Lightsail物美價廉，免費額度結束後，便移往AWS。</p>



<p>那麼……這次重回Linode遇到的問題是什麼呢？──CPU utilization異常飆高，原因不明。使用不到一週的時間內，共遇到2次，第一次自復，第二次則是CPU吃到SSH都無法登入，請求協助只會提供一些沒用的top指令，都登入不了了，我要如何下指令呢？一氣之下，砍掉VPS，再度重回AWS懷抱。至於IPv4 address費用？3美元，就付吧。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2024/05/01/linode%e8%a9%ad%e7%95%b0%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>老電腦續命──AMD Ryzen 3 3200G上陣！</title>
		<link>https://blog.acm.idv.tw/2024/05/01/%e8%80%81%e9%9b%bb%e8%85%a6%e7%ba%8c%e5%91%bd%e2%94%80%e2%94%80amd-ryzen-3-3200g%e4%b8%8a%e9%99%a3%ef%bc%81/</link>
					<comments>https://blog.acm.idv.tw/2024/05/01/%e8%80%81%e9%9b%bb%e8%85%a6%e7%ba%8c%e5%91%bd%e2%94%80%e2%94%80amd-ryzen-3-3200g%e4%b8%8a%e9%99%a3%ef%bc%81/#respond</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Wed, 01 May 2024 11:12:20 +0000</pubDate>
				<category><![CDATA[技術]]></category>
		<category><![CDATA[未分類]]></category>
		<category><![CDATA[硬體]]></category>
		<category><![CDATA[3200G]]></category>
		<category><![CDATA[AMD]]></category>
		<category><![CDATA[B450]]></category>
		<category><![CDATA[CPU-Z]]></category>
		<category><![CDATA[Gigabyte]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[LGA775]]></category>
		<category><![CDATA[Passmark]]></category>
		<category><![CDATA[Ryzen]]></category>
		<guid isPermaLink="false">https://blog.kaffa9.com/?p=822</guid>

					<description><![CDATA[家裡仍有幾部年齡十年以上的PC在服役中，其中一台是2008年自組的Intel 775平台，核心零組件是： CPU Intel Pentium Dual-Core...<p class="read-more"><a class="btn btn-default" href="https://blog.acm.idv.tw/2024/05/01/%e8%80%81%e9%9b%bb%e8%85%a6%e7%ba%8c%e5%91%bd%e2%94%80%e2%94%80amd-ryzen-3-3200g%e4%b8%8a%e9%99%a3%ef%bc%81/"> Read More<span class="screen-reader-text">  Read More</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>家裡仍有幾部年齡十年以上的PC在服役中，其中一台是2008年自組的Intel 775平台，核心零組件是：</p>



<figure class="wp-block-table"><table><tbody><tr><td>CPU</td><td>Intel Pentium Dual-Core E5200</td></tr><tr><td>Motherboard</td><td>ASUS P5QL-EM</td></tr><tr><td>Memory</td><td>G.Skill F2-6400CL4D-4GBHK (DDR2-800 2G*2)</td></tr><tr><td>VGA</td><td>MSI R4770 Cyclone</td></tr><tr><td>HDD</td><td>WD WD6400AAKS (640G Blue)</td></tr><tr><td>PSU</td><td>Seasonic S12 II 430W Bronze</td></tr></tbody></table><figcaption class="wp-element-caption">配備第1版</figcaption></figure>



<p>後來因為愈來愈跟不上時代，或是零件故障，也陸陸續續換過幾次零組件，但都沒有脫離Intel 775平台（P5QL-EM真能撐啊！）。</p>



<span id="more-822"></span>



<p>在本次換心手術前的規格是：</p>



<figure class="wp-block-table"><table><tbody><tr><td>CPU</td><td>Intel Core 2 Quad Q9400 (蝦皮二手零件)</td></tr><tr><td>Motherboard</td><td>ASUS P5QL-EM (耐用程度我給120分了！)</td></tr><tr><td>Memory</td><td>不知名品牌 DDR2-800 4G * 2 (原芝奇移到家人的舊PC上使用)</td></tr><tr><td>VGA</td><td>ASUS PH-GTX1050TI-4G NVIDIA 1050Ti (原4770疑似陣亡，三不五時就黑屏或無法開機)</td></tr><tr><td>SSD</td><td>Lite-On MU3 PH6L 240G SATA (系統碟由SSD取代)</td></tr><tr><td>HDD</td><td>#1: WD WD6400AAKS (640G Blue)<br>#2: Toshiba DT02 ABA400 (4TB)</td></tr><tr><td>PSU</td><td>全漢聖武士450W (原供應器曾一度被懷疑故障、供電輸出不足瓦，因此更換)</td></tr></tbody></table><figcaption class="wp-element-caption">配備第2版</figcaption></figure>



<p>雖然上述配備在2024年的今日，做做基本文書處理、看看影片都還過得去，但是其實效能（笑能？）也已經是捉襟見肘，所以一直醞釀著更換的想法。正巧上週末去台北順發時，發現順發AMD AM4的CPU和主機板都在打折（感覺是想出清，以Intel為主力了，光看款式與數量就輸Intel陣營一大截），最終用3,780元的價格帶走了技嘉B450M-K和Ryzen 3 3200G這個組合。</p>



<p>從Passmark跑分比較來看，兩次的換血，應該是非常有感，若從E5200跳到3200G來看，將近提升了8倍！</p>



<figure class="wp-block-image size-full"><img decoding="async" width="903" height="736" src="https://blog.kaffa9.com/wp-content/uploads/2024/05/passmark_3200G.png" alt="" class="wp-image-817" srcset="https://blog.acm.idv.tw/wp-content/uploads/2024/05/passmark_3200G.png 903w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/passmark_3200G-300x245.png 300w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/passmark_3200G-768x626.png 768w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/passmark_3200G-331x270.png 331w" sizes="(max-width: 903px) 100vw, 903px" /></figure>



<p>下班後花了一點時間，完成換血。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="577" height="1024" src="https://blog.kaffa9.com/wp-content/uploads/2024/05/1557353-577x1024.jpg" alt="" class="wp-image-819" srcset="https://blog.acm.idv.tw/wp-content/uploads/2024/05/1557353-577x1024.jpg 577w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/1557353-169x300.jpg 169w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/1557353-768x1363.jpg 768w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/1557353-865x1536.jpg 865w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/1557353-152x270.jpg 152w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/1557353.jpg 960w" sizes="auto, (max-width: 577px) 100vw, 577px" /></figure>



<p>最新配備清單：</p>



<figure class="wp-block-table"><table><tbody><tr><td>CPU</td><td>AMD Ryzen 3 3200G 4C4T</td></tr><tr><td>Motherboard</td><td>Gigabyte B450M-K</td></tr><tr><td>Memory</td><td>#1: Team ELITE DDR4-3200 16G 美光顆粒<br>#2: Team ELITE DDR3-3200 16G SpecTek顆粒</td></tr><tr><td>VGA</td><td>使用內顯 Radeon Vega 8</td></tr><tr><td>SSD</td><td>Lite-On MU3 PH6L 240G SATA</td></tr><tr><td>HDD</td><td>#1: WD WD6400AAKS (640G Blue)<br>#2: Toshiba DT02 ABA400 (4TB)</td></tr><tr><td>PSU</td><td>全漢聖武士450W</td></tr></tbody></table><figcaption class="wp-element-caption">配備最終版</figcaption></figure>



<p>原本執行EndeavourOS (Arch Linux系)，試用了下沒問題，也不用額外安裝驅動，為了做完整測試，重新安裝成Windows 11專業版，以下是工作管理員和CPU-Z執行畫面。</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1025" height="698" data-id="815" src="https://blog.kaffa9.com/wp-content/uploads/2024/05/工作管理員.png" alt="" class="wp-image-815" srcset="https://blog.acm.idv.tw/wp-content/uploads/2024/05/工作管理員.png 1025w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/工作管理員-300x204.png 300w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/工作管理員-768x523.png 768w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/工作管理員-396x270.png 396w" sizes="auto, (max-width: 1025px) 100vw, 1025px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="419" height="402" data-id="816" src="https://blog.kaffa9.com/wp-content/uploads/2024/05/CPUZ.png" alt="" class="wp-image-816" srcset="https://blog.acm.idv.tw/wp-content/uploads/2024/05/CPUZ.png 419w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/CPUZ-300x288.png 300w, https://blog.acm.idv.tw/wp-content/uploads/2024/05/CPUZ-281x270.png 281w" sizes="auto, (max-width: 419px) 100vw, 419px" /></figure>
</figure>



<p>做了許多日常操作測試，觀看YouTube、Netflix、巴哈姆特動畫瘋影片都沒有什麼大問題，大概只有遊戲沒有測過了，也許再找機會跑個原神試試？<img src="https://s.w.org/images/core/emoji/15.1.0/72x72/1f914.png" alt="🤔" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2024/05/01/%e8%80%81%e9%9b%bb%e8%85%a6%e7%ba%8c%e5%91%bd%e2%94%80%e2%94%80amd-ryzen-3-3200g%e4%b8%8a%e9%99%a3%ef%bc%81/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RouterOS v6經由GRE Tunnel路由至目的地</title>
		<link>https://blog.acm.idv.tw/2024/01/13/routeros-v6%e7%b6%93%e7%94%b1gre-tunnel%e8%b7%af%e7%94%b1%e8%87%b3%e7%9b%ae%e7%9a%84%e5%9c%b0/</link>
					<comments>https://blog.acm.idv.tw/2024/01/13/routeros-v6%e7%b6%93%e7%94%b1gre-tunnel%e8%b7%af%e7%94%b1%e8%87%b3%e7%9b%ae%e7%9a%84%e5%9c%b0/#respond</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Sat, 13 Jan 2024 08:10:33 +0000</pubDate>
				<category><![CDATA[網路]]></category>
		<category><![CDATA[gre]]></category>
		<category><![CDATA[MikroTik]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[RouterOS]]></category>
		<guid isPermaLink="false">https://blog.kaffa9.com/?p=812</guid>

					<description><![CDATA[若A、B兩地之間已建立GRE Tunnel，且A地想經由B地再路由到某地（例如Internet），可進行以下設定： 即設定完成！]]></description>
										<content:encoded><![CDATA[
<p>若A、B兩地之間已建立GRE Tunnel，且A地想經由B地再路由到某地（例如Internet），可進行以下設定：</p>



<ol class="wp-block-list">
<li>新增路由表<br>在IP選項的Routes子選項的Routes頁籤，新增一筆，Dst. address可填0.0.0.0/0、Gateway填寫gre-tunnel1、Routing Mark填寫想要的名稱，例如：Route-to-SiteB</li>



<li>新增路由規則<br>在IP選項的Routes子選項的Rules頁籤，新增一筆，Src. address填寫本地端的某設備IP、Dst. address填寫0.0.0.0/0，table填寫Route-to-SiteB，action填寫lookup</li>
</ol>



<p>即設定完成！</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2024/01/13/routeros-v6%e7%b6%93%e7%94%b1gre-tunnel%e8%b7%af%e7%94%b1%e8%87%b3%e7%9b%ae%e7%9a%84%e5%9c%b0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RouterOS在二地之間建立GRE tunnel over IPSec</title>
		<link>https://blog.acm.idv.tw/2024/01/13/routeros%e5%9c%a8%e4%ba%8c%e5%9c%b0%e4%b9%8b%e9%96%93%e5%bb%ba%e7%ab%8bgre-tunnel-over-ipsec/</link>
					<comments>https://blog.acm.idv.tw/2024/01/13/routeros%e5%9c%a8%e4%ba%8c%e5%9c%b0%e4%b9%8b%e9%96%93%e5%bb%ba%e7%ab%8bgre-tunnel-over-ipsec/#respond</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Sat, 13 Jan 2024 08:03:15 +0000</pubDate>
				<category><![CDATA[網路]]></category>
		<category><![CDATA[gre]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[MikroTik]]></category>
		<category><![CDATA[RouterOS]]></category>
		<guid isPermaLink="false">https://blog.kaffa9.com/?p=810</guid>

					<description><![CDATA[原本在二個住處間建立了IPSec tunnel，使兩地之間的設備可以互相通訊，例如讓B地的小米攝影機能將影像檔上拋至A地的SAMBA伺服器。前一陣子，又有了策略...<p class="read-more"><a class="btn btn-default" href="https://blog.acm.idv.tw/2024/01/13/routeros%e5%9c%a8%e4%ba%8c%e5%9c%b0%e4%b9%8b%e9%96%93%e5%bb%ba%e7%ab%8bgre-tunnel-over-ipsec/"> Read More<span class="screen-reader-text">  Read More</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>原本在二個住處間建立了IPSec tunnel，使兩地之間的設備可以互相通訊，例如讓B地的小米攝影機能將影像檔上拋至A地的SAMBA伺服器。前一陣子，又有了策略路由需求，例如讓A地某設備經由B地再路由到Internet，但剛好一地是EdgeRouter-X，一地是MikroTik RB750Gr3，被設定搞得很頭疼。恰好雙十一時又淘了一台RB750Gr3回來，本來是要當備用機的，趁著元旦連假有空，便把EdgeRouter-X換成RB750Gr3。如此一來，兩地都是MikroTik設備，RouterOS的設定變得輕鬆許多。</p>



<p>為了滿足前述的PBR (policy-based routing)需求，爬了不少文章，最後決定採用GRE tunnel over IPSec，在此將設定方式簡單做一下筆記：</p>



<ol class="wp-block-list">
<li>建立GRE Tunnel<br>在Interfaces選項的GRE Tunnel頁籤，新增一個GRE tunnel，填寫Name、Remote Address、IPSec Secret、取消Allow Fast Path</li>



<li>為GRE Tunnel介面（例：gre-tunnel1）設定IP位址<br>在IP選項的Addresses子選項新增IP，填寫Address和Interfaces。記得兩地的address要錯開，但是必須是同一個網段，例如可以各別填寫172.16.0.1/24和172.16.0.2/24</li>



<li>建立路由規則<br>針對A地RouterOS，可設定往B地網段的閘道為GRE tunnel介面，如gre-tunnel1</li>



<li>建立NAT規則<br>可在srcnat表建立A地網段到B地網段的accept規則</li>
</ol>



<p>註：只要兩地都填寫一樣的IPSec Secret且IPSec profile有共同的加密和雜湊演算法，RouterOS即可自動建立IPSec Tunnel，不必自己額外進行IPSec設定。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2024/01/13/routeros%e5%9c%a8%e4%ba%8c%e5%9c%b0%e4%b9%8b%e9%96%93%e5%bb%ba%e7%ab%8bgre-tunnel-over-ipsec/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>米家攝影機如何上傳影像至另一網段的NAS</title>
		<link>https://blog.acm.idv.tw/2023/09/23/%e7%b1%b3%e5%ae%b6%e6%94%9d%e5%bd%b1%e6%a9%9f%e5%a6%82%e4%bd%95%e4%b8%8a%e5%82%b3%e5%bd%b1%e5%83%8f%e8%87%b3%e5%8f%a6%e4%b8%80%e7%b6%b2%e6%ae%b5%e7%9a%84nas/</link>
					<comments>https://blog.acm.idv.tw/2023/09/23/%e7%b1%b3%e5%ae%b6%e6%94%9d%e5%bd%b1%e6%a9%9f%e5%a6%82%e4%bd%95%e4%b8%8a%e5%82%b3%e5%bd%b1%e5%83%8f%e8%87%b3%e5%8f%a6%e4%b8%80%e7%b6%b2%e6%ae%b5%e7%9a%84nas/#respond</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Sat, 23 Sep 2023 02:40:54 +0000</pubDate>
				<category><![CDATA[技術]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[SAMBA]]></category>
		<category><![CDATA[小米]]></category>
		<category><![CDATA[米家]]></category>
		<guid isPermaLink="false">https://kaffa9.com/?p=795</guid>

					<description><![CDATA[我在A、B兩地都安裝了小米攝影機，其中A地有另外用Linux架設了SAMBA Server，供小米攝影機上傳影像（米家app的NAS設定）。為了讓影像資源的管理...<p class="read-more"><a class="btn btn-default" href="https://blog.acm.idv.tw/2023/09/23/%e7%b1%b3%e5%ae%b6%e6%94%9d%e5%bd%b1%e6%a9%9f%e5%a6%82%e4%bd%95%e4%b8%8a%e5%82%b3%e5%bd%b1%e5%83%8f%e8%87%b3%e5%8f%a6%e4%b8%80%e7%b6%b2%e6%ae%b5%e7%9a%84nas/"> Read More<span class="screen-reader-text">  Read More</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>我在A、B兩地都安裝了小米攝影機，其中A地有另外用Linux架設了SAMBA Server，供小米攝影機上傳影像（米家app的NAS設定）。為了讓影像資源的管理集中，而且不另外在B地架設SAMBA Server，便有了讓B地攝影機將影像上傳至A地SAMBA Server（後稱SAMBA_A）的想法誕生。</p>



<p>上回說到我在A、B兩地之間建了Site-To-Site VPN (IPSec Tunnel)，因此A、B兩地之間的互連是沒有問題的。但我在米家app裡為B地攝影機進行NAS設定時還是卡關了，是什麼問題呢？</p>



<span id="more-795"></span>



<p>米家app第一次進行NAS設定時，會使用NBNS (NetBIOS Name Service) 協定發出廣播封包，待SAMBA Server收到時發出回應，藉此獲得整個區域網路內的SAMBA資訊，列成清單，供使用者在app內選擇。</p>



<p>乍聽之下，好像沒什麼毛病，問題在於<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-vivid-red-color"><strong>NBNS廣播封包只會在LAN端，不會被轉到WAN端，因此B地的小米攝影機發出NBNS廣播時，A地是完全收不到的</strong></mark>。</p>



<p>為了解決這個問題，拿了片樹莓派4B，架好SAMBA Server（後稱SAMBA_B），先在B地運行，讓B地的小米攝影機都先完成第一次NAS設定。接著將樹莓派的SAMBA服務停止，再透過app調整攝影機的NAS設定，直接將NAS名稱設定為SAMBA_A的IP位址，沒想到完全無效。（註：先前在小米N3做過此實驗可正常上傳影像，不知是不同型號的支援度有差還是何故，竟然沒辦法運作）</p>



<p>為了解決這個問題，我想起先前拜讀過的（也動手實作過）一篇文篇：《<a href="https://post.smzdm.com/p/axzep9k3/">跨网段环境下，小米摄像机配置NAS存储</a>》，文章裡頭提到一個轉發封包的小工具<a href="https://github.com/udp-redux/udp-broadcast-relay-redux">udp-boradcast-relay-redux</a>，可以用來將NBNS封包轉發到特定IP，這可成了救命稻草。</p>



<p>此前在閱讀此文時，文中方法是將udp-broadcast-relay-redux置於OpenWRT中執行，而我的網路環境使用的是UBNT EdgeRouter-X和Mikrotik RB570Gr3，未必能支援，而且已經折騰了好幾天，便沒深入思考這個方法還能怎麼套用在我的環境上。現在重新忖度……咦？在B地找台可以收得到NBNS廣播封包的機器來跑udp-broadcast-relay-redux不就成了嗎？不一定要靠路由器呀！</p>



<p>udp-broadcast-relay-redux雖是由C語言寫成，但沒有用到第三方函式庫，直接make即可順利獲得執行檔，接著我們指定封包轉傳到A地的SAMBA_A：</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo ./udp-broadcast-relay-redux --id 1 --port 137 --dev eth0 --dev wlan0 -t SAMBA_A_IP_ADDR</pre>



<p>此時再到米家app裡重新設定NAS，廣播封包順利被轉發到SAMBA_A，SAMBA_A也做出回應，從此B地攝影機和A地的NAS過著幸福快樂的日子。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2023/09/23/%e7%b1%b3%e5%ae%b6%e6%94%9d%e5%bd%b1%e6%a9%9f%e5%a6%82%e4%bd%95%e4%b8%8a%e5%82%b3%e5%bd%b1%e5%83%8f%e8%87%b3%e5%8f%a6%e4%b8%80%e7%b6%b2%e6%ae%b5%e7%9a%84nas/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>RouterOS新增Hairpin NAT功能</title>
		<link>https://blog.acm.idv.tw/2023/07/29/routeros%e6%96%b0%e5%a2%9ehairpin-nat%e5%8a%9f%e8%83%bd/</link>
					<comments>https://blog.acm.idv.tw/2023/07/29/routeros%e6%96%b0%e5%a2%9ehairpin-nat%e5%8a%9f%e8%83%bd/#respond</comments>
		
		<dc:creator><![CDATA[kaffa9]]></dc:creator>
		<pubDate>Sat, 29 Jul 2023 06:27:58 +0000</pubDate>
				<category><![CDATA[硬體]]></category>
		<category><![CDATA[網路]]></category>
		<category><![CDATA[Hairpin NAT]]></category>
		<category><![CDATA[MikroTik]]></category>
		<category><![CDATA[NAT]]></category>
		<category><![CDATA[NAT Loopback]]></category>
		<category><![CDATA[RouterOS]]></category>
		<category><![CDATA[小米]]></category>
		<guid isPermaLink="false">https://kaffa9.com/?p=790</guid>

					<description><![CDATA[今天在RouterOS的區網中，使用app觀看小米攝影機，發現無法觀看（使用行動4G則正常），才發現RouterOS沒有開啟Hairpin NAT（NAT lo...<p class="read-more"><a class="btn btn-default" href="https://blog.acm.idv.tw/2023/07/29/routeros%e6%96%b0%e5%a2%9ehairpin-nat%e5%8a%9f%e8%83%bd/"> Read More<span class="screen-reader-text">  Read More</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p>今天在RouterOS的區網中，使用app觀看小米攝影機，發現無法觀看（使用行動4G則正常），才發現RouterOS沒有開啟Hairpin NAT（NAT loopback）功能。</p>



<p>在參考 <a rel="noreferrer noopener" href="https://stoneapp.tech/cavern/post.php?pid=758" target="_blank">https://stoneapp.tech/cavern/post.php?pid=758</a> 網頁設定後，成功啟用 Hairpin NAT 功能，小米攝影機也可正常觀看。</p>



<h2 class="wp-block-heading">設定方法</h2>



<p>在 IP / Firewall 功能頁，選擇 NAT 頁籤，新增以下 SNAT 規則：</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<ul class="wp-block-list">
<li>action=masquerade</li>



<li>chain=srcnat</li>



<li>out-interface=bridge</li>



<li>src-address=區網網段 （例：192.168.1.0/24）</li>
</ul>
</blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.acm.idv.tw/2023/07/29/routeros%e6%96%b0%e5%a2%9ehairpin-nat%e5%8a%9f%e8%83%bd/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
