
{"id":1714,"date":"2025-09-13T02:47:46","date_gmt":"2025-09-12T16:47:46","guid":{"rendered":"https:\/\/www.hogepiyo.com\/wp\/?p=1714"},"modified":"2025-09-13T02:47:48","modified_gmt":"2025-09-12T16:47:48","slug":"openwrt-%e3%81%a7-upnp-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b-2","status":"publish","type":"post","link":"https:\/\/www.hogepiyo.com\/wp\/?p=1714","title":{"rendered":"OpenWrt \u3067 UPnP \u3092\u4f7f\u7528\u3059\u308b"},"content":{"rendered":"\n<p>\u30dd\u30fc\u30c8\u958b\u653e\u306b UPnP \u3092\u4f7f\u7528\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u72b6\u6cc1\u306b\u306a\u3063\u305f\u306e\u3067\u3001OpenWrt \u306e\u30eb\u30fc\u30bf\u30fc\u306b miniupnpd \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u7279\u5b9a\u306e IP \u306b\u306e\u307f UPnP \u306e\u5229\u7528\u3092\u8a31\u53ef\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u30b3\u30f3\u30c6\u30f3\u30c4<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f2921ce19f0\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f2921ce19f0\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1714\/#%E5%AE%9F%E8%A1%8C%E7%92%B0%E5%A2%83\" >\u5b9f\u884c\u74b0\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1714\/#%E5%BF%85%E8%A6%81%E3%81%AA%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1714\/#%E8%A8%AD%E5%AE%9A%E3%82%92%E7%B7%A8%E9%9B%86\" >\u8a2d\u5b9a\u3092\u7de8\u96c6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1714\/#%E5%8B%95%E4%BD%9C%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%8B%E7%A2%BA%E8%AA%8D\" >\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1714\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%9F%E8%A1%8C%E7%92%B0%E5%A2%83\"><\/span>\u5b9f\u884c\u74b0\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<dl class=\"definition-table\">\n<dt>\u30eb\u30fc\u30bf\u30fc<\/dt>\n<dd>Linksys E8450<\/dd>\n<dt>\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2<\/dt>\n<dd>OpenWrt 24.10.2<\/dd>\n<\/dl>\n\n\n\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>\u30d1\u30c3\u30b1\u30fc\u30b8<\/th>\n<th>\u30d0\u30fc\u30b8\u30e7\u30f3<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>miniupnpd-nftables<\/td>\n<td>2022-08-31-68c8ec50-1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BF%85%E8%A6%81%E3%81%AA%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30eb\u30fc\u30bf\u30fc\u306e Web \u30b3\u30f3\u30bd\u30fc\u30eb\u3078\u30a2\u30af\u30bb\u30b9<\/li>\n\n\n\n<li>\u30e1\u30cb\u30e5\u30fc\u306e System -&gt; Software \u3092\u30af\u30ea\u30c3\u30af<\/li>\n\n\n\n<li>&#8220;Update lists&#8230;&#8221; \u3092\u30af\u30ea\u30c3\u30af<\/li>\n\n\n\n<li>Filter \u306b &#8220;miniupnpd&#8221; \u3068\u5165\u529b<\/li>\n\n\n\n<li>\u30ea\u30b9\u30c8\u304b\u3089 &#8220;miniupnpd-nftables&#8221; \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%A8%AD%E5%AE%9A%E3%82%92%E7%B7%A8%E9%9B%86\"><\/span>\u8a2d\u5b9a\u3092\u7de8\u96c6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u4f5c\u6210\u3055\u308c\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\/etc\/config\/upnpd<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>config upnpd config\n        option enabled          0\n        option enable_natpmp    1\n        option enable_upnp      1\n        option secure_mode      1\n        option log_output       0\n        option download         1024\n        option upload           512\n#by default, looked up dynamically from ubus\n#       option external_iface   wan\n        option internal_iface   lan\n        option port             5000\n        option upnp_lease_file  \/var\/run\/miniupnpd.leases\n        option igdv1            1\n\nconfig perm_rule\n        option action           allow\n        option ext_ports        1024-65535\n        option int_addr         0.0.0.0\/0       # Does not override secure_mode\n        option int_ports        1024-65535\n        option comment          \"Allow high ports\"\n\nconfig perm_rule\n        option action           deny\n        option ext_ports        0-65535\n        option int_addr         0.0.0.0\/0\n        option int_ports        0-65535\n        option comment          \"Default deny\"<\/code><\/pre>\n\n\n\n<p>option enabled \u3092\u5909\u66f4\u3057\u3066 UPnP \u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>config upnpd config\n        option enabled          1<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u307e\u307e\u3067\u306f\u30eb\u30fc\u30bf\u30fc\u306b\u63a5\u7d9a\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30c7\u30d0\u30a4\u30b9\u304c UPnP \u3092\u4f7f\u7528\u3067\u304d\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u6700\u521d\u306e perm_rule \u30bb\u30af\u30b7\u30e7\u30f3\u3092\u4ee5\u4e0b\u306e\u69d8\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408 192.168.1.101 \u306b\u306e\u307f UPnP \u306e\u4f7f\u7528\u3092\u8a31\u53ef\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>config perm_rule\n        option action           allow\n        option ext_ports        1024-65535\n        option int_addr         192.168.1.101\/32\n        option int_ports        1024-65535\n        option comment          \"Allow high ports\"<\/code><\/pre>\n\n\n\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 miniupnpd \u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/init.d\/miniupnpd restart\n\/etc\/init.d\/miniupnpd enable<\/code><\/pre>\n\n\n\n<p>\/etc\/init.d\/miniupnpd restart \u5b9f\u884c\u6642\u306b\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Automatically including '\/usr\/share\/nftables.d\/table-post\/20-miniupnpd.nft'\nAutomatically including '\/usr\/share\/nftables.d\/chain-post\/dstnat\/20-miniupnpd.nft'\nAutomatically including '\/usr\/share\/nftables.d\/chain-post\/forward\/20-miniupnpd.nft'\nAutomatically including '\/usr\/share\/nftables.d\/chain-post\/srcnat\/20-miniupnpd.nft'<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8B%95%E4%BD%9C%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%81%8B%E7%A2%BA%E8%AA%8D\"><\/span>\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Windows \u30de\u30b7\u30f3\u3067 PowerShell \u3068 <a href=\"http:\/\/umemasu2018.g1.xrea.com\/\" title=\"\">UPnPCJ<\/a> \u3092\u4f7f\u3063\u3066\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u307e\u3059\u3002\u4e00\u6642\u7684\u306b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u30aa\u30d5\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092 PowerShell \u3067\u5b9f\u884c\u3057\u3066\u30a8\u30b3\u30fc\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$port = 2222\n$listener = &#91;System.Net.Sockets.TcpListener]::new(&#91;Net.IPAddress]::Any, $port)\n$listener.Start()\nWrite-Host \"Listening on TCP $port ...\"\nwhile ($true) {\n  $client = $listener.AcceptTcpClient()\n  $stream = $client.GetStream()\n  $reader = New-Object IO.StreamReader($stream)\n  $writer = New-Object IO.StreamWriter($stream); $writer.AutoFlush = $true\n  $writer.WriteLine(\"echo server ready on $(hostname)\")\n  while (($line = $reader.ReadLine()) -ne $null) { $writer.WriteLine(\"echo: $line\") }\n  $client.Close()\n}<\/code><\/pre>\n\n\n\n<p>UPnPCJ \u3067\u5916\u90e8\u306e 2222 TCP \u30dd\u30fc\u30c8\u3092\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3066\u305f\u30de\u30b7\u30f3\u306e 2222 TCP \u30dd\u30fc\u30c8\u306b\u30de\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>WAN \u5074\u304b\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 2222 \u30dd\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30c6\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nc hogepiyo.com 2222<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83\"><\/span>\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/openwrt.org\/docs\/guide-user\/firewall\/upnp\/miniupnpd\" title=\"\">[OpenWrt Wiki] miniupnpd<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30dd\u30fc\u30c8\u958b\u653e\u306b UPnP \u3092\u4f7f\u7528\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u72b6\u6cc1\u306b\u306a\u3063\u305f\u306e\u3067\u3001OpenWrt \u306e\u30eb\u30fc\u30bf\u30fc\u306b miniupnpd \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u7279\u5b9a\u306e IP \u306b\u306e\u307f UPnP \u306e\u5229\u7528\u3092\u8a31\u53ef\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002 \u5b9f\u884c\u74b0\u5883 \u30eb\u30fc\u30bf\u30fc  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.hogepiyo.com\/wp\/?p=1714\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;OpenWrt \u3067 UPnP \u3092\u4f7f\u7528\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[285],"tags":[248,287,246],"class_list":["post-1714","post","type-post","status-publish","format-standard","hentry","category-openwrt-24","tag-miniupnpd","tag-openwrt-24-10-2","tag-upnp"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1714"}],"version-history":[{"count":6,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1714\/revisions"}],"predecessor-version":[{"id":1722,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1714\/revisions\/1722"}],"wp:attachment":[{"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hogepiyo.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}