{"id":5870,"date":"2021-05-17T07:10:00","date_gmt":"2021-05-16T22:10:00","guid":{"rendered":"https:\/\/mimumimu.net\/blog\/?p=5870"},"modified":"2021-05-17T07:10:01","modified_gmt":"2021-05-16T22:10:01","slug":"vpn-%e8%b6%8a%e3%81%97%e3%81%ab-dlna-%e7%b5%8c%e7%94%b1%e3%81%a7-nas-%e3%81%ab%e8%a7%a6%e3%82%8b-ssdp-proxy","status":"publish","type":"post","link":"https:\/\/mimumimu.net\/blog\/2021\/05\/17\/vpn-%e8%b6%8a%e3%81%97%e3%81%ab-dlna-%e7%b5%8c%e7%94%b1%e3%81%a7-nas-%e3%81%ab%e8%a7%a6%e3%82%8b-ssdp-proxy\/","title":{"rendered":"VPN \u8d8a\u3057\u306b DLNA \u7d4c\u7531\u3067 NAS \u306b\u89e6\u308b (SSDP Proxy)"},"content":{"rendered":"\n<p>\u3069\u3046\u3082\u307f\u3080\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<p>VPN \u8d8a\u3057\u306b NAS \u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u3001\u3057\u304b\u3082 DLNA \u5bfe\u5fdc\u30a2\u30d7\u30ea\u7d4c\u7531\u3067\u89e6\u308a\u305f\u3044\u3068\u601d\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\u3002<\/p>\n\n\n\n<p>\u6570\u30f6\u6708\u524d\u306b NAS \u3092\u8cfc\u5165\u3057\u3066\u3001\u901f\u653b\u3067\u9759\u97f3\u5316\u306e\u8a18\u4e8b ( <a href=\"https:\/\/mimumimu.net\/blog\/2021\/04\/28\/asustor-%e3%81%ae-datasync-center-%e3%81%ae-hdd-%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%82%92%e9%9d%99%e3%81%8b%e3%81%ab%e3%81%99%e3%82%8b%e3%80%82\/\" title=\"ASUSTOR DataSync Center \u306e HDD \u30a2\u30af\u30bb\u30b9\u3092\u9759\u304b\u306b\u3059\u308b\">ASUSTOR DataSync Center \u306e HDD \u30a2\u30af\u30bb\u30b9\u3092\u9759\u304b\u306b\u3059\u308b<\/a> ) \u3092\u66f8\u3044\u305f\u308a\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001DLNA \u7d4c\u7531\u3067\u97f3\u697d\u30d5\u30a1\u30a4\u30eb\u306b\u89e6\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u6240\u3053\u308c\u304c\u5927\u5909\u4f7f\u3044\u3084\u3059\u304f\u3001\u305c\u3072 VPN \u8d8a\u3057\u306b\u3082\u3053\u308c\u3092\u4eab\u53d7\u3057\u305f\u3044\u30fb\u30fb\u3068\u3002\u3002<\/p>\n\n\n\n<p>DLNA \u306f UPnP \u3092\u7528\u3044\u3066\u304a\u308a\u3001\u305d\u306e\u6a5f\u5668\u767a\u898b\u306b SSDP (1900\/udp) \u3092\u7528\u3044\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u65e9\u3044\u8a71\u304c VPN \u8d8a\u3057\u306b\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u304c\u4e0a\u624b\u304f\u52d5\u4f5c\u3057\u306a\u3044\u306e\u3067\u3001\u3053\u308c\u3092\u6539\u5584\u3057\u3066\u307f\u3088\u3046\u3068\u3044\u3046\u305d\u3046\u3044\u3046\u8a71\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\uff11\uff0e\u30b5\u30fc\u30d0\u304b\u3089 VPN \u611f\u3092\u611f\u3058\u53d6\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b<\/h2>\n\n\n\n<p>DLNA \u306f\u540c\u4e00\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u3067\u306e\u52d5\u4f5c\u3092\u60f3\u5b9a\u3057\u3066\u3044\u308b\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<br>\u4ed6\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u4e0a\u624b\u304f\u52d5\u3044\u3066\u304f\u308c\u306a\u3044\u30b1\u30fc\u30b9\u304c\u3044\u304f\u3064\u304b\u898b\u3089\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u3066\u30b5\u30fc\u30d0\u304b\u3089\u306e \u300cVPN \u611f\u300d\u3092\u5c11\u3057\u6d88\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"582\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2021\/05\/image-4.png\" alt=\"\" class=\"wp-image-5874\"\/><\/figure>\n\n\n\n<p>NAS \u5074\u306b\u306f &#8220;192.168.1.0\/24&#8221; \u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u5c5e\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u305b\u3001VPN \u7528\u306b &#8220;192.168.1.224\/28&#8221; \u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u7528\u610f\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>VPN \u30b5\u30fc\u30d0\u306b\u306f <strong>Proxy ARP \u306e\u8a2d\u5b9a<\/strong>\u3092\u5165\u308c\u3066\u3001192.168.1.0\/24 \u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u304b\u3089\u3082 192.168.1.224\/28 \u306e\u7aef\u672b\u306e MAC \u30a2\u30c9\u30ec\u30b9\u306e\u89e3\u6c7a \uff08\u3068\u3044\u3063\u3066\u3082 VPN \u30b5\u30fc\u30d0\u304c\u6307\u3057\u793a\u3055\u308c\u308b\u3060\u3051\uff09\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001Proxy ARP \u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8\u304c\u8a73\u3057\u3044\u3067\u3059\u306e\u3067\u53c2\u7167\u304f\u3060\u3055\u3044\uff1a<br>Proxy ARP\uff08\u30d7\u30ed\u30ad\u30b7ARP\uff09\u3068\u306f \/ \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3057\u3066<br><a href=\"https:\/\/www.infraexpert.com\/study\/gateway.htm\" title=\"Proxy ARP\uff08\u30d7\u30ed\u30ad\u30b7ARP\uff09\u3068\u306f \/ \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3057\u3066\">https:\/\/www.infraexpert.com\/study\/gateway.htm<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u5177\u4f53\u7684\u306a\u8a2d\u5b9a\u65b9\u6cd5\u3068\u3057\u3066\u306f<br><span style=\"text-decoration: underline;\">&#8220;\/proc\/sys\/net\/ipv4\/conf\/&lt;device>\/proxy_arp&#8221; \u3092 1<\/span> \u306b\u66f8\u304d\u63db\u3048\u308b\u304b<br><span style=\"text-decoration: underline;\">systemd-networkd \u306e &#8220;[Network]&#8221; \u30bb\u30af\u30b7\u30e7\u30f3\u306b &#8220;IPv4ProxyARP=yes&#8221;<\/span> \u3068\u3059\u308b\u65b9\u6cd5\u304c<br>\u7c21\u5358\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8a2d\u5b9a\u3059\u308b\u969b\u306f\u3001<span style=\"text-decoration: underline;\">&#8220;192.168.1.0\/24&#8221; \u306e\u65b9\u306b ProxyARP \u306e\u8a2d\u5b9a\u3092\u9069\u7528<\/span>\u3059\u308b\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">systemd-networkd \u306e\u8a2d\u5b9a\u4f8b\uff09<\/h4>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code># cat \/etc\/systemd\/network\/eth0.network\n[Match]\nName=eth0\n\n[Network]\nAddress=192.168.1.240\/24\nGateway=192.168.1.254\nIPv4ProxyARP=yes\n\n# cat \/etc\/systemd\/network\/eth1.network\n[Match]\nName=eth1\n\n[Network]\nAddress=192.168.1.238\/28\n\n[Link]\nMTUBytes=1200<\/code><\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">2. SSDP \u3092\u30d7\u30ed\u30ad\u30b7\u3059\u308b<\/h2>\n\n\n\n<p>\u63a2\u7d22\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u901a\u4fe1\u3092\u8ee2\u9001\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<br>\u8ee2\u9001\u3057\u306a\u3044\u3068\u63a2\u7d22\u304c VPN \u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5185\u3067\u9589\u3058\u3066\u3057\u307e\u3044\u3001\u672c\u6765\u306e\u6a5f\u5668\u307e\u3067\u5c4a\u304b\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>SSDP \u306e\u4e2d\u8eab\u306f\u6982\u306d\u4e0b\u8a18\u306e\u3088\u3046\u306a HTTP \u30d9\u30fc\u30b9\u306e\u901a\u4fe1\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code># \u30ea\u30af\u30a8\u30b9\u30c8\u306e\u4f8b\u3002\uff08\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u9001\u308b\uff09\n# 239.255.255.250:1900\/UDP \u306b\u5bfe\u3057\u3066\u9001\u51fa\u3055\u308c\u308b\n---\nM-SEARCH * HTTP\/1.1\nMX: 5\nST: urn:schemas-upnp-org:device:MediaServer:1\nMAN: &quot;ssdp:discover&quot;\nUser-Agent: UPnP\/1.0\nHost: 239.255.255.250:1900\nConnection: close\n\n---\n\n# \u5fdc\u7b54\u4f8b\u3002\n# \u30b5\u30fc\u30d0\u304b\u3089\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3063\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30dd\u30fc\u30c8\u306b\u5bfe\u3057\u3066\u30e6\u30cb\u30ad\u30e3\u30b9\u30c8\u3067\u5fdc\u7b54\u304c\u5165\u308b\n---\nHTTP\/1.1 200 OK\nCache-Control: max-age=1800\nEXT:\nLocation: http:\/\/192.168.1.22:55247\/dms\nServer: Linux 4.0.0 UPnP\/1.0\nST: urn:schemas-upnp-org:device:MediaServer:1\nUSN: uuid:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx::urn:schemas-upnp-org:device:MediaServer:1\nDate: Sun, 16 May 2021 19:42:50 GMT\n\n---<\/code><\/pre><\/div>\n\n\n\n<p>\u898b\u3066\u3044\u305f\u3060\u304f\u3068\u308f\u304b\u308b\u3088\u3046\u306b\u3001<span style=\"text-decoration: underline;\"><strong>\u5fdc\u7b54\u306e\u4e2d\u306b\u30e6\u30cb\u30ad\u30e3\u30b9\u30c8\u30a2\u30c9\u30ec\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u308b<\/strong><\/span>\u305f\u3081\u3001\u767a\u898b\u51e6\u7406\u306e\u307f\u30d7\u30ed\u30ad\u30b7\u3057\u3066\u3042\u3052\u308c\u3070\u5f8c\u306f\uff11\u5bfe\uff11\u3067\u306e\u901a\u4fe1\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-file=\"dlna_proxy.py\" data-lang=\"Python\"><code>#!\/bin\/python3\n\n#\n# SSDP (DLNA \u306e\u63a2\u7d22\u30d7\u30ed\u30c8\u30b3\u30eb) \u3092\u5438\u3063\u3066\u5410\u304f\u30d7\u30ed\u30ad\u30b7\u3002\n# Wireguard \u306e\u3088\u3046\u306b\u7d14\u7c8b\u306bbridge\u3067\u304d\u306a\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u9593\u3067\u4f7f\u3046\u3068\u5e78\u305b\u306b\u306a\u308c\u308b\u6c17\u304c\u3057\u307e\u3059\u3002\n# (\u4f7f\u3063\u305f\u3053\u3068\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u30c0\u30a6\u30f3\u7b49\u3057\u3066\u3082\u4fdd\u8a3c\u306f\u51fa\u6765\u307e\u305b\u3093\u306e\u3067\u3001\u81ea\u5df1\u8cac\u4efb\u3067\u3069\u3046\u305e\u3002)\n#\n# Author : Satoshi Mimura (@mimura1133)\n#\n\nimport socket\nfrom contextlib import closing\n\ndef main():\n        multicast_group = &#39;239.255.255.250&#39;\n        src_adapter_ip = &#39;&#39; # DLNA \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u3044\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\n        dst_adapter_ip = &#39;&#39; # DLNA \u30b5\u30fc\u30d0\u304c\u3044\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\n        port = 1900\n        timeout = 5.0\n\n        with closing(socket.socket(socket.AF_INET,socket.SOCK_DGRAM)) as src_sock:\n            src_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,1)\n            src_sock.bind((&#39;&#39;,port))\n            src_sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,\n                                  socket.inet_aton(multicast_group) + socket.inet_aton(src_adapter_ip))\n\n            while True:\n                request_data, client_addr = src_sock.recvfrom(4096)\n                with closing(socket.socket(socket.AF_INET,socket.SOCK_DGRAM)) as dst_sock:\n                    dst_sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(dst_adapter_ip))\n                    dst_sock.settimeout(timeout)\n                    dst_sock.sendto(request_data,(multicast_group,port))\n                    print(&quot;\\033[31m [FORWARDED:REQUEST]\\033[0m {} -&gt; {}&quot;.format(client_addr,(multicast_group,port)))\n                    print(request_data)\n                    while True:\n                        try:\n                            response_data, server_addr = dst_sock.recvfrom(4096)\n                            src_sock.sendto(response_data,client_addr)\n                            print(&quot;\\033[32m [FORWARDED:RESPONSE]\\033[0m {} -&gt; {}&quot;.format(server_addr,client_addr))\n                            print(response_data)\n\n                        except Exception:\n                            break\n        return\n\nif __name__ == &#39;__main__&#39;:\n    main()<\/code><\/pre><\/div>\n\n\n\n<p>\u52d5\u304b\u3057\u3066\u307f\u305f\u7d50\u679c\u306f\u4e0b\u56f3\u306e\u901a\u308a\u3002\u4e2d\u3005\u4e0a\u624b\u304f\u52d5\u3044\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"769\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2021\/05\/image-5.png\" alt=\"\" class=\"wp-image-5875\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"483\" src=\"https:\/\/mimumimu.net\/blog\/wp-content\/uploads\/2021\/05\/image-7.png\" alt=\"\" class=\"wp-image-5877\"\/><figcaption>\u4eca\u56de\u306e\u691c\u8a3c\u306b\u306f iPhone \u5074\u306b OPlayer Lite \u3092\u5165\u308c\u3066\u691c\u8a3c\u3057\u3066\u3044\u307e\u3059\u3002<\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3.\u6c38\u7d9a\u5316\u3059\u308b<\/h2>\n\n\n\n<p>\u6bce\u56de\u624b\u52d5\u3067\u8d77\u52d5\u3059\u308b\u306e\u306f\u7b4b\u304c\u3088\u304f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001systemd \u306e\u30b5\u30fc\u30d3\u30b9\u306b\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u3001\u5148\u307b\u3069\u306e Proxy \u3092\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u30c7\u30d0\u30c3\u30b0\u7528\u306e print \u6587\u3092\u6d88\u53bb\u3057\u305f\u3082\u306e\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>#!\/bin\/python3\n\n#\n# SSDP (DLNA \u306e\u63a2\u7d22\u30d7\u30ed\u30c8\u30b3\u30eb) \u3092\u5438\u3063\u3066\u5410\u304f\u30d7\u30ed\u30ad\u30b7\u3002\n# Wireguard \u306e\u3088\u3046\u306b\u7d14\u7c8b\u306bbridge\u3067\u304d\u306a\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u9593\u3067\u4f7f\u3046\u3068\u5e78\u305b\u306b\u306a\u308c\u308b\u6c17\u304c\u3057\u307e\u3059\u3002\n# (\u4f7f\u3063\u305f\u3053\u3068\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u30c0\u30a6\u30f3\u7b49\u3057\u3066\u3082\u4fdd\u8a3c\u306f\u51fa\u6765\u307e\u305b\u3093\u306e\u3067\u3001\u81ea\u5df1\u8cac\u4efb\u3067\u3069\u3046\u305e\u3002)\n#\n# Author : Satoshi Mimura (@mimura1133)\n#\n\nimport socket\nfrom contextlib import closing\n\ndef main():\n        multicast_group = &#39;239.255.255.250&#39;\n        src_adapter_ip = &#39;&#39; # DLNA \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u3044\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\n        dst_adapter_ip = &#39;&#39; # DLNA \u30b5\u30fc\u30d0\u304c\u3044\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\n        port = 1900\n        timeout = 5.0\n\n        with closing(socket.socket(socket.AF_INET,socket.SOCK_DGRAM)) as src_sock:\n            src_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,1)\n            src_sock.bind((&#39;&#39;,port))\n            src_sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,\n                                  socket.inet_aton(multicast_group) + socket.inet_aton(src_adapter_ip))\n\n            while True:\n                request_data, client_addr = src_sock.recvfrom(4096)\n                with closing(socket.socket(socket.AF_INET,socket.SOCK_DGRAM)) as dst_sock:\n                    dst_sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(dst_adapter_ip))\n                    dst_sock.settimeout(timeout)\n                    dst_sock.sendto(request_data,(multicast_group,port))\n                    while True:\n                        try:\n                            response_data, server_addr = dst_sock.recvfrom(4096)\n                            src_sock.sendto(response_data,client_addr)\n\n                        except Exception:\n                            break\n        return\n\nif __name__ == &#39;__main__&#39;:\n    main()<\/code><\/pre><\/div>\n\n\n\n<p>\u4e0a\u8a18\u3092<span style=\"text-decoration: underline;\"> <strong>\/usr\/local\/sbin\/proxy_dlna.py <\/strong>\u3068\u3057\u3066\u4fdd\u5b58<\/span>\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4fdd\u5b58\u304c\u5b8c\u4e86\u3057\u305f\u3089\u4e0b\u8a18\u306e\u3088\u3046\u306b systemd \u306e\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u4eca\u56de\u306f\u4e0b\u8a18\u306e\u5185\u5bb9\u3092 <span style=\"text-decoration: underline;\"><strong>\/etc\/systemd\/system\/proxy_dlna.service \u3068\u3057\u3066\u4f5c\u6210<\/strong><\/span>\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>[Unit]\nDescription=Launch DLNA Proxy (\/usr\/local\/sbin\/proxy_dlna.py)\n# After=wg-quick@wg0.service  #WireGuard \u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3053\u3046\u3057\u3066\u304a\u304f\u3068 WireGuard \u304c\u8d77\u52d5\u3057\u305f\u5f8c\u306b\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\n\n[Service]\nType=oneshot\nExecStart=\/usr\/local\/sbin\/proxy_dlna.py\n\n[Install]\nWantedBy=multi-user.target<\/code><\/pre><\/div>\n\n\n\n<p>\u4fdd\u5b58\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3089 <span style=\"text-decoration: underline;\">systemctl enable proxy_dlna<\/span> \u7b49\u3067\u6709\u52b9\u306b\u3059\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u624b\u9806\u306f\u4ee5\u4e0a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30d7\u30ed\u30ad\u30b7\u3067\u5168\u3066\u52d5\u4f5c\u3059\u308b\u304b\u3068\u3044\u3046\u3068\u305d\u3046\u3067\u306f\u306a\u304f\u3001\u7279\u306b DTCP-IP \u7b49\u3092\u7528\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u5834\u5408\u306f\u300cTTL \u306f 3\u30db\u30c3\u30d7\u4ee5\u4e0b\u300d\u300cRTT \u306f 7ms \u4ee5\u4e0b\u300d\u3068\u3044\u3046\u5236\u7d04\u304c\u5b58\u5728\u3059\u308b\u305f\u3081\u5b9f\u73fe\u3059\u308b\u306e\u304c\u5927\u5909\u96e3\u3057\u3044\u72b6\u6cc1\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3057\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u3064\u3044\u3066\u306f NTT \u306e NGN \u7db2\u306e\u7279\u6b8a\u6027\u3092\u7528\u3044\u3066\u56de\u907f\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3084\u3001L2TPv3 \u306a\u3069\u3092\u4e0a\u624b\u304f\u7d44\u307f\u5408\u308f\u305b\u3066\u56de\u907f\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u30cd\u30c3\u30c8\u4e0a\u306b\u3044\u304f\u3064\u304b\u8ee2\u304c\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u305d\u3061\u3089\u3092\u7528\u3044\u308b\u306e\u304c\u826f\u3044\u304b\u306a\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3068\u306f\u3044\u3048\u3001\u5f53\u65b9\u74b0\u5883\u3067\u306f\u3053\u308c\u3067 VPN \u30e9\u30a4\u30d5\u304c\u304b\u306a\u308a\u6539\u5584\u3055\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u3082\u3057\u3088\u308d\u3057\u3051\u308c\u3070\u53c2\u8003\u306b\u3057\u3066\u3044\u305f\u3060\u3051\u305f\u3089\u3068\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u307f\u3080\u3089\u3067\u3059\u3002 VPN \u8d8a\u3057\u306b NAS \u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u3001\u3057\u304b\u3082 DLNA \u5bfe\u5fdc\u30a2\u30d7\u30ea\u7d4c\u7531\u3067\u89e6\u308a\u305f\u3044\u3068\u601d\u3063\u305f\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\u3002 \u6570\u30f6\u6708\u524d\u306b NAS \u3092\u8cfc\u5165\u3057\u3066\u3001\u901f\u653b\u3067\u9759\u97f3\u5316\u306e\u8a18\u4e8b ( ASUSTOR DataSync [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-5870","post","type-post","status-publish","format-standard","hentry","category-python"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/comments?post=5870"}],"version-history":[{"count":0,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/posts\/5870\/revisions"}],"wp:attachment":[{"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/media?parent=5870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/categories?post=5870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimumimu.net\/blog\/wp-json\/wp\/v2\/tags?post=5870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}