どうもみむらです。
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://alternative-freddie-9zba6oy3.dcms.site
Jules & Cleo, solely at David’s Bridal Polyester, nylon Back zipper; fully lined …
https://classic-blog.udn.com/aa9ab185/184028999
I can assure you that I won’t ever make that mistake once more.
https://classic-blog.udn.com/1adbe988/184250702
Tadashi Shoji is an effective name to look out for when you’re on the hunt for a designer gown.
https://mypaper.pchome.com.tw/trinityward39/post/1382131813
We’ve received all the advice and inspiration you want to find the proper mom-of-the-bride outfit.
https://classic-blog.udn.com/0e2c6cc1/183974661
For a beach marriage ceremony I would wear something a bit extra flowy like the flowery and ruffly dresses above.
https://classic-blog.udn.com/06b711d0/183811945
You can go for prints, and flowers should you like that fashion.
https://amandapeterson.exblog.jp/35470241/
We’ve received all the advice and inspiration you should discover the perfect mom-of-the-bride outfit.
https://classic-blog.udn.com/b2d3790b/183931299
We are picturing this beautifully embroidered robe for a backyard or backyard wedding set amongst romantic flowers and rich greenery.
https://defeated-jeri-fdaflm1k.dcms.site/
Not certain the place to begin out together with your search for that picture-perfect mother-of-the-bride dress?
https://telegra.ph/boginhall-1-11-03-7
This robe in timeless black is flocked with shimmering sequins and eyecatching beadwork.
https://classic-blog.udn.com/b88723d9/183925217
Dillards is a good place to take a glance at if you’re on the lookout for one thing larger end.
https://mypaper.pchome.com.tw/andrewclark77/post/1382126030
Florals can sometimes be tough to put on as a outcome of they’ll look old-fashioned.
https://mypaper.pchome.com.tw/liamburns44/post/1382133858
For her daughter’s art-filled Washington, D.C., wedding ceremony, this mom of the bride , donned a quirky, multi-patterned Oscar de la Renta gown.
https://zacharywhite1407.neocities.org/my_2nd_article
Mothers of Bride and Groom often have a sort of ‘uniform’.
https://classic-blog.udn.com/c10ed488/183964919
The high-end retailer sells plenty of coveted luxurious brands like Monique Lhuillier, THEIA, Jenny Packham, Badgley Mischka and more.
https://sites.google.com/view/boginhall-12-12-2025/page-3?authuser=1
Available in 14 colors, you might be certain to discover a gown that matches your daughter or son’s wedding theme.
https://nicholehorne3305.wixsite.com/my-site-1/post/____4
This embellishment on this attractive gown adds a contact of magic good for any winter wedding.
https://mypaper.pchome.com.tw/david748/post/1382124571
The whole look was the right match for the couple’s tradition-filled day.
https://sites.google.com/view/boginhall-29/page3
Adhere to the costume code, and look to bridesmaids or the marriage robe for steerage on bold patterns or gildings.
https://zacharyyoung.jimdofree.com/2025/11/26/3/
This bride’s mother escorted her down the aisle in a floor-length golden robe with a floral overlay.
https://classic-blog.udn.com/60c90f23/184656190
You will want to put on lighter colours, or no matter your daughter suggests.
https://classic-blog.udn.com/ac9c397a/184617648
Sophie Moore is a former Brides editor and current contributing author.
https://classic-blog.udn.com/2cc6fe9f/183687865
Stick to a small yet stately earring and a cocktail ring, and keep additional sparkle to a minimum.
https://xavier2474.blogspot.com/2025/12/blog-post_28.html
Looking at summer time mom of the bride dresses which would possibly be a step away from the norm?
https://classic-blog.udn.com/03327fd8/183783672
As versatile as is elegant, this icy blue frock is the proper transition piece to take you from the ceremony to the reception.
https://lindaaa9.wordpress.com/2025/12/13/1-2/
For the redwood location, it might be great to wear something in natural colours like the two moss green outfits pictured.
https://richardlee1423.wixsite.com/my-site-1/post/____2
You can present a bit of cleavage, but too much can seem a bit inappropriate.
https://classic-blog.udn.com/f6948d40/183572910
Pink anemones and blue and yellow wildflower buds accented this beautiful black gown worn by the mother of the bride.
https://classic-blog.udn.com/70559d90/183718275
However, the only rule for sporting sequin attire is to keep equipment and makeup delicate.
https://classic-blog.udn.com/83bd8fed/184077891
This will full your outfit and produce it together as an entire.
https://classic-blog.udn.com/cf8f72a7/183834388
A mid-length cocktail dress is an efficient way to attain a chic look.
https://classic-blog.udn.com/6bfa66c4/183851576
Always take into consideration the sorts of sleeves and straps you’ll have in your costume.
https://ebony-cyclamen-sk8blp.mystrikingly.com/blog/5ed7d69f5f4
Find jacket dresses in champagne, orchid, pink, lavender, or navy for women of all ages.
https://telegra.ph/boginhal-2-10-03
Peach, crimson, and gold brought punchy colour to a conventional Indian sari.
https://mypaper.pchome.com.tw/brandonflores35/post/1382129773
Following these simple guidelines are sure to make the method go smoothly and efficiently.
https://classic-blog.udn.com/50bef256/183954459
Celebrate their huge day in fashion with our Mother of the Bride or Groom outfits.
https://classic-blog.udn.com/9aeb1496/184647753
Jovani is a classy yet easy model that caters to the modern woman.
https://telegra.ph/accounting-3-10-16
Looking at summer mother of the bride dresses which might be a step away from the norm?
https://mypaper.pchome.com.tw/david748/post/1382124576
Shop now via various retailers, including official online stores.
https://classic-blog.udn.com/ffe759fa/184200243
So, at the very least, both moms will need to put on colors that complement the opposite.
https://mypaper.pchome.com.tw/trinityward39/post/1382131818
But the most important piece of apparel you will choose leading as much as your kid’s wedding?
https://classic-blog.udn.com/ea133da5/183749603
This mother of the bride wore a white tunic and skirt for a boho-chic ensemble.
https://classic-blog.udn.com/c5dcf900/184543049
Choose a gown with construction that holds its form all on its own.
https://classic-blog.udn.com/66403605/183822403
You’ve helped her discover her dream costume, now allow us to assist you to find yours…
https://classic-blog.udn.com/beb47c3f/184412768
It’s normally widespread practice to keep away from wearing white, ivory or cream.
https://ameblo.jp/williamwilliams9445/entry-12947612740.html
Some ladies prefer to put on a dress, while others prefer separates…and each are nice options!
https://jordanarnold.jimdofree.com/2025/11/05/3/
From the floor-sweeping A-line skirt to the on-trend off-the-shoulder sleeves, there’s so much to love.
https://jamiejones6658.exblog.jp/35769438/
For mothers who swoon for all things sassy, the dramatic gold mom of the bride gown can be the picture-perfect decide in 2022.
https://ducngantran.wordpress.com/2025/10/16/5/
The mom of the bride’s Oscar de la Renta robe was such a success, it truly impressed the bridesmaids’ bouquets.
https://classic-blog.udn.com/d1a2fd70/183759050
Think about jewellery, footwear and handbags – all things that can assist make your mom of the bride outfit distinctive.