どうもみむらです。
VPN 越しに NAS のコンテンツに、しかも DLNA 対応アプリ経由で触りたいと思ったことはありませんか。
数ヶ月前に NAS を購入して、速攻で静音化の記事 ( ASUSTOR DataSync Center の HDD アクセスを静かにする ) を書いたりしていたのですが、DLNA 経由で音楽ファイルに触れるようにしてみた所これが大変使いやすく、ぜひ VPN 越しにもこれを享受したい・・と。。
DLNA は UPnP を用いており、その機器発見に SSDP (1900/udp) を用いているのですが、早い話が VPN 越しにブロードキャストが上手く動作しないので、これを改善してみようというそういう話です。
1.サーバから VPN 感を感じ取れないようにする
DLNA は同一ネットワーク上での動作を想定しているものになります。
他のネットワークからアクセスしようとすると上手く動いてくれないケースがいくつか見られましたので、下記のようにしてサーバからの 「VPN 感」を少し消してみます。

NAS 側には “192.168.1.0/24” のネットワークに属しているように見せ、VPN 用に “192.168.1.224/28” のネットワークを用意しておきます。
VPN サーバには Proxy ARP の設定を入れて、192.168.1.0/24 のネットワーク上からも 192.168.1.224/28 の端末の MAC アドレスの解決 (といっても VPN サーバが指し示されるだけ)が出来るようになります。
なお、Proxy ARP については、こちらのサイトが詳しいですので参照ください:
Proxy ARP(プロキシARP)とは / ネットワークエンジニアとして
https://www.infraexpert.com/study/gateway.htm
具体的な設定方法としては
“/proc/sys/net/ipv4/conf/<device>/proxy_arp” を 1 に書き換えるか
systemd-networkd の “[Network]” セクションに “IPv4ProxyARP=yes” とする方法が
簡単かなと思います。
設定する際は、“192.168.1.0/24” の方に ProxyARP の設定を適用する形になります。
systemd-networkd の設定例)
# cat /etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
Address=192.168.1.240/24
Gateway=192.168.1.254
IPv4ProxyARP=yes
# cat /etc/systemd/network/eth1.network
[Match]
Name=eth1
[Network]
Address=192.168.1.238/28
[Link]
MTUBytes=12002. SSDP をプロキシする
探索プロトコルの通信を転送するようにしてみます。
転送しないと探索が VPN のネットワーク内で閉じてしまい、本来の機器まで届かなくなってしまいます。
SSDP の中身は概ね下記のような HTTP ベースの通信になっています。
# リクエストの例。(クライアントからサーバに対して送る)
# 239.255.255.250:1900/UDP に対して送出される
---
M-SEARCH * HTTP/1.1
MX: 5
ST: urn:schemas-upnp-org:device:MediaServer:1
MAN: "ssdp:discover"
User-Agent: UPnP/1.0
Host: 239.255.255.250:1900
Connection: close
---
# 応答例。
# サーバからリクエストを行ったクライアントのポートに対してユニキャストで応答が入る
---
HTTP/1.1 200 OK
Cache-Control: max-age=1800
EXT:
Location: http://192.168.1.22:55247/dms
Server: Linux 4.0.0 UPnP/1.0
ST: urn:schemas-upnp-org:device:MediaServer:1
USN: uuid:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx::urn:schemas-upnp-org:device:MediaServer:1
Date: Sun, 16 May 2021 19:42:50 GMT
---見ていただくとわかるように、応答の中にユニキャストアドレスが含まれているため、発見処理のみプロキシしてあげれば後は1対1での通信となります。
ということで下記のようなプログラムを書いてみました
#!/bin/python3
#
# SSDP (DLNA の探索プロトコル) を吸って吐くプロキシ。
# Wireguard のように純粋にbridgeできないネットワーク間で使うと幸せになれる気がします。
# (使ったことでネットワークがダウン等しても保証は出来ませんので、自己責任でどうぞ。)
#
# Author : Satoshi Mimura (@mimura1133)
#
import socket
from contextlib import closing
def main():
multicast_group = '239.255.255.250'
src_adapter_ip = '' # DLNA クライアントがいるネットワークの IP アドレスを指定
dst_adapter_ip = '' # DLNA サーバがいるネットワークの IP アドレスを指定
port = 1900
timeout = 5.0
with closing(socket.socket(socket.AF_INET,socket.SOCK_DGRAM)) as src_sock:
src_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,1)
src_sock.bind(('',port))
src_sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,
socket.inet_aton(multicast_group) + socket.inet_aton(src_adapter_ip))
while True:
request_data, client_addr = src_sock.recvfrom(4096)
with closing(socket.socket(socket.AF_INET,socket.SOCK_DGRAM)) as dst_sock:
dst_sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(dst_adapter_ip))
dst_sock.settimeout(timeout)
dst_sock.sendto(request_data,(multicast_group,port))
print("\033[31m [FORWARDED:REQUEST]\033[0m {} -> {}".format(client_addr,(multicast_group,port)))
print(request_data)
while True:
try:
response_data, server_addr = dst_sock.recvfrom(4096)
src_sock.sendto(response_data,client_addr)
print("\033[32m [FORWARDED:RESPONSE]\033[0m {} -> {}".format(server_addr,client_addr))
print(response_data)
except Exception:
break
return
if __name__ == '__main__':
main()動かしてみた結果は下図の通り。中々上手く動いてます。


3.永続化する
毎回手動で起動するのは筋がよくありませんので、systemd のサービスにしてしまいましょう。
まずは、先ほどの Proxy をするプログラムからデバッグ用の print 文を消去したものを準備します。
#!/bin/python3
#
# SSDP (DLNA の探索プロトコル) を吸って吐くプロキシ。
# Wireguard のように純粋にbridgeできないネットワーク間で使うと幸せになれる気がします。
# (使ったことでネットワークがダウン等しても保証は出来ませんので、自己責任でどうぞ。)
#
# Author : Satoshi Mimura (@mimura1133)
#
import socket
from contextlib import closing
def main():
multicast_group = '239.255.255.250'
src_adapter_ip = '' # DLNA クライアントがいるネットワークの IP アドレスを指定
dst_adapter_ip = '' # DLNA サーバがいるネットワークの IP アドレスを指定
port = 1900
timeout = 5.0
with closing(socket.socket(socket.AF_INET,socket.SOCK_DGRAM)) as src_sock:
src_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,1)
src_sock.bind(('',port))
src_sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,
socket.inet_aton(multicast_group) + socket.inet_aton(src_adapter_ip))
while True:
request_data, client_addr = src_sock.recvfrom(4096)
with closing(socket.socket(socket.AF_INET,socket.SOCK_DGRAM)) as dst_sock:
dst_sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_IF, socket.inet_aton(dst_adapter_ip))
dst_sock.settimeout(timeout)
dst_sock.sendto(request_data,(multicast_group,port))
while True:
try:
response_data, server_addr = dst_sock.recvfrom(4096)
src_sock.sendto(response_data,client_addr)
except Exception:
break
return
if __name__ == '__main__':
main()上記を /usr/local/sbin/proxy_dlna.py として保存しておきます。
保存が完了したら下記のように systemd のサービスを作成します。
今回は下記の内容を /etc/systemd/system/proxy_dlna.service として作成しました。
[Unit]
Description=Launch DLNA Proxy (/usr/local/sbin/proxy_dlna.py)
# After=wg-quick@wg0.service #WireGuard を使っている場合はこうしておくと WireGuard が起動した後に起動するようになります。
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/proxy_dlna.py
[Install]
WantedBy=multi-user.target保存が完了しましたら systemctl enable proxy_dlna 等で有効にすれば完了です。
手順は以上となります。
ただ上記のようなプロキシで全て動作するかというとそうではなく、特に DTCP-IP 等を用いるシステムの場合は「TTL は 3ホップ以下」「RTT は 7ms 以下」という制約が存在するため実現するのが大変難しい状況になっています。
もしそのような場合については NTT の NGN 網の特殊性を用いて回避しているケースや、L2TPv3 などを上手く組み合わせて回避しているケースがネット上にいくつか転がっていますのでそちらを用いるのが良いかなと思われます。
とはいえ、当方環境ではこれで VPN ライフがかなり改善されましたので、もしよろしければ参考にしていただけたらと!
https://objectstorage.ap-tokyo-1.oraclecloud.com/n/nrswdvazxa8j/b/digi68sa/o/research/digi68sa-(323).html
Find jacket dresses in champagne, orchid, pink, lavender, or navy for girls of all ages.
https://classic-blog.udn.com/c69173ee/184028677
Make it pop with a blinged-out pair of heels and matching accessories.
https://renewed-rozele-hge1rla8.dcms.site
Wear it to a backyard celebration with block heels or wedges.
https://mypaper.pchome.com.tw/mikimouse95/post/1382124682
Look for cinched-in jackets that will not only cover her wobbly bits, but additionally assist her change her look from day to nighttime.
https://sites.google.com/view/marketing-december-9-2025/dec-11
As the groom’s mom, you’ll need to let the mother of the bride take the lead through the gown purchasing process.
https://classic-blog.udn.com/27d5a8d8/184845180
Gold, black or navy shoes and accessories would look fashionable.
https://classic-blog.udn.com/28bd4c2f/184524297
This deco-inspired robe will shimmer in photos and stun on the dance floor.
https://classic-blog.udn.com/a62efbd5/183736174
Opt for a well-cut, flowing sundress in a breathable fabric—and pair with dressy sandals to pull the look together (while nonetheless feeling comfy on the sand!).
https://classic-blog.udn.com/3d6fd53a/183784651
You really need to think about what’s best for the season, and the climate you’ll be sitting in.
https://jeffshelton7839.wixsite.com/jeffshelton7839/post/____2
There are plenty of options obtainable for plus measurement mother of the bride attire.
https://classic-blog.udn.com/50461722/184470104
Opt for something present but timeless with clean lines.
https://classic-blog.udn.com/c9ae2095/184039947
This gown, as its name suggests, is extremely elegant.
https://classic-blog.udn.com/59a712bc/183974257
This outfit’s intricate corded embroidery and understated black skirt are a match made in heaven—just like your daughter and their soon-to-be spouse.
https://classic-blog.udn.com/94d49ab5/183884600
I assume every of the above may work with winery weddings.
https://classic-blog.udn.com/43ac25ce/184078314
Most of the combos I feature here include great jackets.
https://exrijxcjuyrcvh56.exblog.jp/35114938/
Gone are the times when moms of the bride were anticipated to wear matronly clothes in washed-out shades of pastels or beige.
I read this article completely regarding the resemblance oof latest annd earlier technologies, it’s amazing article. http://boyarka-inform.com/
https://ducngantran719.exblog.jp/35132955/
Add a metallic heeled sandal or pump and you’re good to go.
https://classic-blog.udn.com/b95474cc/184535145
But I is not going to select any of the outfits you could have proven.
https://classic-blog.udn.com/58aa0b59/183847694
Here’s a tea-length mother-of-the-bride dress you probably can simply pull out of your wardrobe time and time once more.
https://classic-blog.udn.com/24c66892/183861691
Use the filters to kind by silhouette, neckline, cloth, and length.
https://mypaper.pchome.com.tw/4384584253/post/1382129767
Choose a robe with structure that holds its shape all by itself.
https://sites.google.com/view/marketing-dec-16-2025/page-8
This materials is great because it lays flattering and appears nice in photos.
https://mypaper.pchome.com.tw/ethanfranklin77/post/1382133681
Plan nicely prematurely, so you will not get too stressed and may help both your son or daughter with the wedding preparations.
https://classic-blog.udn.com/421f6ad0/183689662
To allow you to on your search, we’ve done the hard work for you!
https://fuchsia-whale-rjh7h2.mystrikingly.com/blog/seo
Similar to the mothers of the bride and groom, the grandmothers might wish to coordinate with the wedding celebration.
https://portfolio-eswgxoc.format.com/blog/seo
You don’t need to buy a mother-of-the-bride gown if the thought of it sitting untouched in your closet after the large day is unappealing.
https://duheje604.seesaa.net/article/518765335.html?1761817701
But the most important piece of apparel you will choose main as a lot as your child’s wedding?
https://grwlmwxmq.jimdofree.com/2025/12/22/2/
I might play a job in my stepdaughter’s marriage ceremony or I might not.
https://classic-blog.udn.com/a6ebbd1b/183740332
Speak to your daughter in regards to the really feel of the marriage day; is it a black tie affair?
https://michelecochran.seesaa.net/article/519025737.html?1763525357
The website’s refined robes make for excellent evening put on that’ll serve you long after the marriage day.
https://ohesqjb01.wixsite.com/my-site-2/post/____1
So, in case your youngsters are internet hosting a black tie affair, make sure to wear a floor-length gown—preferably in a neutral tone .
https://classic-blog.udn.com/d4bd4136/183863745
Frumpy, shapeless mom of the bride clothes are a thing of the past!
https://iagvifkn.free-blogz.com/86621728/
Guests love to watch the enjoyment and delight appear on your face as you watch your daughter marry their greatest friend.
https://classic-blog.udn.com/4d8c98f9/183727657
Before you start your search (around the six- to eight-month mark), brush up on mother-of-the-bride apparel etiquette.
https://classic-blog.udn.com/362e8456/183479887
The entire look was the right match for the couple’s tradition-filled day.
https://thoughtful-taro-sqszlp.mystrikingly.com/blog/ad84f22dba5
This two-piece silhouette type flows beautifully over the body and has a v-shaped back opening that closes with a hid zipper.
https://classic-blog.udn.com/49b977ac/183975952
Red Dress has some very beautiful and chic clothes, and they’re reasonably priced.
https://classic-blog.udn.com/c2fe3fd0/184656561
If chic and sophisticated is what you’re going for, think about this sequined ensemble from Alex Evenings.
https://mypaper.pchome.com.tw/59457263262/post/1382133566
Look for supplies like breezy chiffon, breathable mesh, or draping georgette for the final word seashore wedding apparel.
https://classic-blog.udn.com/3251058f/184209275
They are a fantastic place to take a glance at in case you are looking for good quality dresses.
https://classic-blog.udn.com/3b859b1f/183795352
This off-the-shoulder fashion would look nice with a pair of strappy stilettos and shoulder-duster earrings.
https://mypaper.pchome.com.tw/edithjwi/post/1382106897
For a mom, watching your daughter stroll down the aisle and marry the love of her life is an unforgettable second.
https://classic-blog.udn.com/7a1d7751/183509986
Jovani provides you the highest best quality MOB robes for a low price.
https://classic-blog.udn.com/fd70558b/184438385
We’ve rounded up a number of the fairly Mother-of-the-Bride dresses to put on for spring weddings.
https://sites.google.com/view/boginhal10132025/page-1
Find the best tie kinds for 2021 and past on your marriage ceremony.
https://classic-blog.udn.com/cb6345af/184011986
“I wished my ladies to have enjoyable,” the bride said of the choice.
https://adorable-gnu-t2ms39.mystrikingly.com/blog/3e8928f7563
You may go for a classic shade similar to navy, or choose a summery colour like the Eliza j ruched waist jumpsuit .
https://portfolio-zvwxjlo.format.com/blog/467337
You may think it’s customary for the mom of the bride to put on an over-sized hat, however that’s simply not the case for 2022.
https://maryochoa5454.jimdofree.com/2025/12/01/2/
Preferably not be all black as that will counsel mourning.