<?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; My Pi</title>
	<atom:link href="https://korduck.duckdns.org/category/%eb%af%b8-%eb%b6%84%eb%a5%98/feed/" rel="self" type="application/rss+xml" />
	<link>https://korduck.duckdns.org</link>
	<description>Raspberry Pi, Knowledge, Journey</description>
	<lastBuildDate>Wed, 02 Apr 2025 06:03:51 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>The Strict-Transport-Security HTTP header is not set 에러 (Nextcloud)</title>
		<link>https://korduck.duckdns.org/269/</link>
					<comments>https://korduck.duckdns.org/269/#respond</comments>
		
		<dc:creator><![CDATA[Joinsoo]]></dc:creator>
		<pubDate>Wed, 02 Apr 2025 06:03:51 +0000</pubDate>
				<category><![CDATA[미분류]]></category>
		<guid isPermaLink="false">https://korduck.duckdns.org/?p=269</guid>

					<description><![CDATA[1. Apache 설정 (사용 중이라면) 다음 설정을 Apache의 설정 파일에 추가해야 합니다. 1.1 Apache 전역 설정 파일 수정 sudo nano /etc/apache2/conf-available/security.conf 파일의 끝 부분에 아래 내용을 추가 또는 수정합니다. &#60;IfModule mod_headers.c&#62; Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" &#60;/IfModule&#62; 이후 Apache 설정을 활성화하고 재시작합니다. sudo a2enconf security sudo systemctl restart apache2]]></description>
										<content:encoded><![CDATA[<h2 class="" data-start="195" data-end="226">1. <strong data-start="201" data-end="224">Apache 설정 (사용 중이라면)</strong></h2>
<p class="" data-start="227" data-end="258">다음 설정을 Apache의 설정 파일에 추가해야 합니다.</p>
<h3 class="" data-start="260" data-end="292"><strong data-start="264" data-end="290">1.1 Apache 전역 설정 파일 수정</strong></h3>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre language-sh">sudo nano /etc/apache2/conf-available/security.conf<br />
</code></div>
</div>
<p class="" data-start="355" data-end="384">파일의 <strong>끝 부분에</strong> 아래 내용을 추가 또는 수정합니다.</p>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre language-apache">&lt;IfModule mod_headers.c&gt;</code></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre language-apache">    Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"<br />
</code></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre language-apache">&lt;/IfModule&gt;<br />
</code></div>
</div>
<p class="" data-start="531" data-end="558">이후 Apache 설정을 활성화하고 재시작합니다.</p>
<div class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]"></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre language-sh">sudo a2enconf security<br />
</code></div>
<div class="overflow-y-auto p-4" dir="ltr"><code class="!whitespace-pre language-sh">sudo systemctl restart apache2</code></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://korduck.duckdns.org/269/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>IPv6 비활성화 (네트워크 충돌 방지)_WireGuard 패킷 손실</title>
		<link>https://korduck.duckdns.org/242/</link>
					<comments>https://korduck.duckdns.org/242/#respond</comments>
		
		<dc:creator><![CDATA[Joinsoo]]></dc:creator>
		<pubDate>Sun, 23 Mar 2025 14:13:45 +0000</pubDate>
				<category><![CDATA[미분류]]></category>
		<guid isPermaLink="false">https://korduck.duckdns.org/?p=242</guid>

					<description><![CDATA[IPv6 환경에서 WireGuard와의 충돌로 인해 패킷 손실이 발생할 수 있습니다. ✅ 해결 방법 IPv6를 비활성화하고 테스트해 보세요. sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 영구적으로 적용하려면 /etc/sysctl.conf에 추가:net.ipv6.conf.all.disable_ipv6 = 1]]></description>
										<content:encoded><![CDATA[<pre class="p1">IPv6 환경에서 WireGuard와의 충돌로 인해 패킷 손실이 발생할 수 있습니다.

<b><img src="https://s.w.org/images/core/emoji/15.1.0/72x72/2705.png" alt="✅" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 해결 방법</b><b></b>

IPv6를 비활성화하고 테스트해 보세요.
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1

영구적으로 적용하려면 
<span class="s1">/etc/sysctl.conf</span>에 추가:net.ipv6.conf.all.disable_ipv6 = 1


</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://korduck.duckdns.org/242/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>dnsmasq 설정 파일 수정 (with Wireguard)</title>
		<link>https://korduck.duckdns.org/232/</link>
					<comments>https://korduck.duckdns.org/232/#comments</comments>
		
		<dc:creator><![CDATA[Joinsoo]]></dc:creator>
		<pubDate>Sat, 15 Mar 2025 07:26:19 +0000</pubDate>
				<category><![CDATA[미분류]]></category>
		<guid isPermaLink="false">https://korduck.duckdns.org/?p=232</guid>

					<description><![CDATA[기본 설정 파일 /etc/dnsmasq.conf을 편집하여 WireGuard 네트워크를 포함하도록 설정. # WireGuard 클라이언트용 DNS 설정 listen-address=127.0.0.1,10.6.0.1 bind-interfaces domain-needed bogus-priv no-resolv server=1.1.1.1 server=8.8.8.8 # 캐시 크기 설정 (성능 최적화) cache-size=2000 설명: • listen-address=127.0.0.1,10.6.0.1: dnsmasq가 로컬 및 WireGuard 네트워크에서 요청을 수신하도록 함. • server=1.1.1.1, server=8.8.8.8: 외부 DNS 서버를 지정(Cloudflare, Google) • cache-size=1000: DNS 캐싱을 활성화하여 성능 향상 클라이언트 ... <a title="dnsmasq 설정 파일 수정 (with Wireguard)" class="read-more" href="https://korduck.duckdns.org/232/" aria-label="dnsmasq 설정 파일 수정 (with Wireguard)에 대해 더 자세히 알아보세요">더 읽기</a>]]></description>
										<content:encoded><![CDATA[<p class="p1">기본 설정 파일 <span class="s1">/etc/dnsmasq.conf</span>을 편집하여 WireGuard 네트워크를 포함하도록 설정.</p>
<p># WireGuard 클라이언트용 DNS 설정<br />
listen-address=127.0.0.1,10.6.0.1<br />
bind-interfaces<br />
domain-needed<br />
bogus-priv<br />
no-resolv<br />
server=1.1.1.1<br />
server=8.8.8.8</p>
<p># 캐시 크기 설정 (성능 최적화)<br />
cache-size=2000</p>
<pre class="p1">설명:
• <span class="s1">listen-address=127.0.0.1,10.6.0.1</span>: dnsmasq가 로컬 및 WireGuard 네트워크에서 요청을 수신하도록 함.
• <span class="s1">server=1.1.1.1</span>, <span class="s1">server=8.8.8.8</span>: 외부 DNS 서버를 지정(Cloudflare, Google)
• <span class="s1">cache-size=1000</span>: DNS 캐싱을 활성화하여 성능 향상

</pre>
<p class="p1"><b>클라이언트 설정 (wg-client.conf</b></p>
<p>[Interface]<br />
PrivateKey = &lt;클라이언트_개인키&gt;<br />
Address = 10.6.0.2/24<br />
DNS = 10.6.0.1 # dnsmasq 서버 사용</p>
<p>[Peer]<br />
PublicKey = &lt;서버_공개키&gt;<br />
Endpoint = &lt;서버_IP&gt;:51820<br />
AllowedIPs = 0.0.0.0/0, ::/0<br />
PersistentKeepalive = 25</p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://korduck.duckdns.org/232/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
