Bug #362
upnp, natpmp, mdnsresponder borked
| Status: | New | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | 1st Public Cerowrt release |
Description
I really haven't been paying attention to those packages.I was doing some work
I am creating a bug for this, please update me there.
What is a good way to test the functionality of these packages?
---------- Forwarded message ----------
From: Maciej Soltysiak <maciej@soltysiak.com>
Date: Wed, Apr 11, 2012 at 12:37 PM
Subject: Re: [Cerowrt-devel] some of the advanced stuff (sort of) in cerowrt
To: Dave Taht <dave.taht@gmail.com>
Cc: cerowrt-devel@lists.bufferbloat.net
Hi!
2) UPNP / NATPMP / mDNSresponder - to help different apps reaching out
- i am sort of losing grasp of which package does what, they seem to
be intertwined (?) but cero has these packages currently (3.3.1-4)
broken.
3) miniDLNA - DLNA is a good low-latency (?) / high-throughput
use-case within the wireless (laptops, picture frames) and wired (TV,
NAS) home network. Also minidlna package is broken too.
History
Updated by Dave Täht about 1 year ago
I was doing some work... (and then I got cut off)
on pcp and dslite, and that may have crept into the relevant packages by mistake.
It certainly wasn't ready for prime time, so if it escaped, I'll fix it.
But aside from that I don't actually use these packages at all, nor do I have automated tests. What exactly is breaking?
Updated by Hector Ordorica about 1 year ago
I usually pull these packages from this build:
https://forum.openwrt.org/viewtopic.php?id=27722
Arokh doesn't use the in tree openwrt packages, I know he uses miniDLNA cvs for example.
For UPNP/NATPMP you only need miniupnpd.
MDNSresponder isn't needed for anything anymore (as far as I can tell). I think Avahi replaces it.
To get MiniDLNA and miniupnpd to work together (they use the same ports), you use minissdpd to manage that.
Basically, I start with Arokh's tarball as a base, and then apply CeroWRT patches on top of that.
Updated by Maciej Soltysiak about 1 year ago
miniupnpd is running on port 5000 by default (http://wiki.openwrt.org/doc/uci/miniupnpd)
minidlna is running on port 8200 by default
[b]update: looks like minissdpd might really be required for these 2 to work, because of UDP 1900, not the TCP ports...[/b]
My check for UPNP (apart from `ps` and `netstat -ntpl` on the router):- netalyzr has a check for that
- utorrent has a built-in checker if it can negotiate with the router to open a port
- other PNP/SSDP test programs like: http://www.junegillespie.plus.com/UPnPTest.exe
- Run Windows Media Player 12+ (or any other DLNA device, like a TV) and see if it shows your DLNA under "Other Libraries" and if you can stream a video or a photo (provided you gave minidlna something to index
I am going to updated to latest cero, install these 2 packages and try describe what's wrong with packaging because I believe the daemons should work, it's just getting the scripts to start properly and read right config files and stay daemonized.
Updated by Dave Täht about 1 year ago
Arokh doesn't use the in tree openwrt packages, I know he uses miniDLNA cvs for >example.
Although I have been pulling multiple packages from unstable sources, I'd like to do that less, not more.
For UPNP/NATPMP you only need miniupnpd.
OK.
MDNSresponder isn't needed for anything anymore (as far as I can tell). I think >Avahi replaces it.
Avahi does, although I currently don't have the router issuing multicast queries to itself, but using the local dns.
To get MiniDLNA and miniupnpd to work together (they use the same ports), you use minissdpd to manage that.
I don't build that currently...
Basically, I start with Arokh's tarball as a base, and then apply CeroWRT patches >on top of that.
Call me lazy, but if you can package that up and give me a tarball of the package(s), that would be great. Better, I can give you commit privs to the ceropackages repo.
Let me...
Updated by Dave Täht about 1 year ago
I note that I don't have a problem in pulling something that works from an unstable source, if that's the way to get it to work. I'd merely prefer to pull something that works from a released tarball, if at all possible.
Updated by Hector Ordorica about 1 year ago
When I get the chance I'll look at adding these packages to cerowrt.
I think by now the in-tree openwrt packages do work, so I'll attempt
to use them as a base.
There's a cerowrt tarball I can work with as a base? It's been a while
since I've worked on the cerowrt base. I've being using arokh's builds
and picking and choosing bufferbloat patches.
The only thing I use Avahi for is to announce time machine/ftp/ssh
servers. I'm not really sure it's necessary to make minidlna/miniupnpd
features work.
A caveat is that miniDLNA can use a good chunk of RAM, especially if
you have BIND running still.
It seems to work fine for me, but I'm using chrony rather than
ntp-client, and dnsmasq rather than BIND, which cuts down on RAM
usage.
On Fri, Apr 13, 2012 at 8:14 AM, <cerowrt@lists.bufferbloat.net> wrote:
Issue #362 has been updated by Dave Täht.
I note that I don't have a problem in pulling something that works from an unstable source, if that's the way to get it to work. I'd merely prefer to pull something that works from a released tarball, if at all possible.
Bug #362: upnp, natpmp, mdnsresponder borked https://www.bufferbloat.net/issues/362Author: David Taht Status: New Priority: Normal Assignee: Category: Target version:
I really haven't been paying attention to those packages.I was doing some work
I am creating a bug for this, please update me there.
What is a good way to test the functionality of these packages?
---------- Forwarded message ---------- From: Maciej Soltysiak <maciej@soltysiak.com> Date: Wed, Apr 11, 2012 at 12:37 PM Subject: Re: [Cerowrt-devel] some of the advanced stuff (sort of) in cerowrt To: Dave Taht <dave.taht@gmail.com> Cc: cerowrt-devel@lists.bufferbloat.net
Hi!
2) UPNP / NATPMP / mDNSresponder - to help different apps reaching out - i am sort of losing grasp of which package does what, they seem to be intertwined (?) but cero has these packages currently (3.3.1-4) broken. 3) miniDLNA - DLNA is a good low-latency (?) / high-throughput use-case within the wireless (laptops, picture frames) and wired (TV, NAS) home network. Also minidlna package is broken too.
Updated by Maciej Soltysiak about 1 year ago
Update. I've installed minissdpd, miniupnpd and minidlna-cvs from trondah (http://enduser.subsignal.org/~trondah/latest-release-is-r31219/packages/) and they work. All I needed to correct were the interface names in /etc/config/... to include se00,sw00 and sw10. If proper starting sequence is respected it works: minissdpd, then miniupnpnd, then minidlna.
If I knew how to add these packages to the build, I'd do it.
There's one issue with it though. When my TV is on se00 and my laptop on sw10, they can't discover each other as UPNP queries are broadcast-domain-bound (won't traverse NICs) - so the network fragmentation plays in my disadvantage here. I still need to poke around to see if there's anything I missed or maybe I could use iptables to DNAT it to the other interfaces.
Having said all that, I still need to evaluate performance of minidlna on WNDR3800 and how much memory/cpu stress it could cause with 30.000 files. Unfortunately I can only check with a NTFS drive promptly. Converting it to ext4 is tricky as I don't have enough storage space handy that would allow me to do it quickly enough.
Anyway, this is mostly DLNA talk. If that wouldn't make it into cero, I could live with it, but I'd still like to see miniupnpd for UPNP assisted port forwarding negotiation and since it would be good for the build to allow users to install minidlna externally, minissdp would also be very nice to see (as per the dependcy Hector mentioned)
Updated by Dave Täht about 1 year ago
I'll try to make anything work. But does he have his source packages somewhere?
As for the crossing broadcast domain issue, I'm always into finding those and figuring out how to fix them...
Updated by Hector Ordorica about 1 year ago
That's his source.
http://enduser.subsignal.org/~trondah/releases/r31216/openwrt-r31216-src.tar.bz2
As far as performance of MiniDLNA, it will use a lot of disk seeks and CPU while it builds its database. But otherwise it mostly sits idle, and serves up files on demand. I personally have a swap file enabled since I hits the limits of the 64MB of RAM.
Updated by Dave Täht about 1 year ago
Please send me cero-specific conf files? and tell me which package sets to use? Openwrt? the other guys?
Also, I have a user reporting that upnp doesn't work the way he expected in that he wanted to open port 22, gets 2022 on both sides, and I don't understand the requested behavior...
Updated by Robert Bradley about 1 year ago
I assume the idea is to map <external>:22 => <internal>:22. Since that possibly clashes with the internal sshd, I'd naively expect it to map <external>:2022 => <internal>:22 instead (you don't get the external port you wanted, but a mapping does exist). If it's changing the requested mapping to <external>:2022 => <internal>:2022, that's a bug.
Updated by Dave Täht about 1 year ago
- Target version set to 1st Public Cerowrt release
Updated by Maciej Soltysiak about 1 year ago
Dave Täht wrote:
Please send me cero-specific conf files? and tell me which package sets to use? Openwrt? the other guys?
Hi, sorry for no update. I was travelling. I will redo from scratch with latest cero build and document the packages and configs.
Maciej
Updated by Maciej Soltysiak about 1 year ago
- File minissdp_miniupnpd_cero.txt added
Here's how I did it on latest cero:
# opkg install http://enduser.subsignal.org/~trondah/latest-release-is-r31219/packages/minissdpd_1.0-1_ar71xx.ipk
# apply the following on /etc/config/minissdpd
--- minissdpd.old
+++ minissdpd
@@ -1,4 +1,4 @@
config 'minissdpd' 'config'
option 'enabled' '1'
option 'log_output' '0'
- option 'internal_iface' 'lan'
+ option 'internal_iface' 'se00 sw00 sw10'
# /etc/init.d/minissdpd enable
# /etc/init.d/minissdpd start
#opkg install http://enduser.subsignal.org/~trondah/latest-release-is-r31219/packages/miniupnpd_1.6.20120121-1_ar71xx.ipk
#opkg install http://enduser.subsignal.org/~trondah/latest-release-is-r31219/packages/luci-app-upnp_trunk+svn8531-1_ar71xx.ipk
# apply the following /etc/config/upnpd
--- upnpd.old
+++ upnpd
@@ -6,8 +6,8 @@
option log_output '0'
option download '1024'
option upload '512'
- option external_iface 'wan'
- option internal_iface 'lan'
+ option external_iface 'ge00'
+ option internal_iface 'se00 sw00 sw10'
option port '5000'
option uuid '61809265-e55e-43dd-92d1-8b1cc9c0dd5c'
# /etc/init.d/miniupnpd enable
# /etc/init.d/miniupnpd start
AFAIK: download '1024' is just for information, so no need to tweak.
Tested with uTorrent Setup Guide, where it uses UPNP or NAT-PMP to open ports.
Also, it seemed to take a few minutes to start working. After a reboot it seemed to work.
Regards,
Maciej
Updated by Stephen Walker about 1 year ago
Add https://dev.openwrt.org/ticket/8988 along with the appropriate config changes?
Updated by Maciej Soltysiak about 1 year ago
Stephen Walker wrote:
Add https://dev.openwrt.org/ticket/8988 along with the appropriate config changes?
Yes, trondah's minissdpd, miniupnpd with config changes are what we need.
I also found one thing here. DLNA does not work on cero between a wireless and a wired peers because FORWARD chain needs to let UDP 1900 through for SSDP multicasts and in the case of PS3 media server also TCP 5001. Anyway, FORWARD chain is a bit restrictive.
Updated by David Taht 7 months ago
I would like to fix this somehow before the next release.
what is the current status of the in tree vs out of tree code?
Updated by Maciej Soltysiak 7 months ago
For UPNP this is required. I tried a git commit today but I'm not familiar
with git that much.
This patch uses cero iface names. Listens only on 'secure' interfaces such
as ethernet and non-guest wlans.
diff --git a/net/miniupnpd/files/upnpd.config
b/net/miniupnpd/files/upnpd.config
index 02b4b2a..afa97da 100644
--- a/net/miniupnpd/files/upnpd.config
++ b/net/miniupnpd/files/upnpd.config@ -5,8 +5,8 @ config upnpd config
option log_output 0
option download 1024
option upload 512
- option external_iface wan
- option internal_iface lan
option external_iface 'ge00'
+ option internal_iface 'se00 sw00 sw10'
option port 5000
config perm_rule
On Sun, Nov 25, 2012 at 9:22 AM, <cerowrt@lists.bufferbloat.net> wrote:
Issue #362 has been updated by David Taht.
I would like to fix this somehow before the next release.
what is the current status of the in tree vs out of tree code?
Bug #362: upnp, natpmp, mdnsresponder borked https://www.bufferbloat.net/issues/362Author: David Taht Status: New Priority: Normal Assignee: Category: Target version: 1st Public Cerowrt release
I really haven't been paying attention to those packages.I was doing some work
I am creating a bug for this, please update me there.
What is a good way to test the functionality of these packages?
---------- Forwarded message ---------- From: Maciej Soltysiak <maciej@soltysiak.com> Date: Wed, Apr 11, 2012 at 12:37 PM Subject: Re: [Cerowrt-devel] some of the advanced stuff (sort of) in cerowrt To: Dave Taht <dave.taht@gmail.com> Cc: cerowrt-devel@lists.bufferbloat.net
Hi!
2) UPNP / NATPMP / mDNSresponder - to help different apps reaching out - i am sort of losing grasp of which package does what, they seem to be intertwined (?) but cero has these packages currently (3.3.1-4) broken. 3) miniDLNA - DLNA is a good low-latency (?) / high-throughput use-case within the wireless (laptops, picture frames) and wired (TV, NAS) home network. Also minidlna package is broken too.
Updated by Maciej Soltysiak 7 months ago
And this for minissdpd:
diff --git a/net/minissdpd/files/minissdpd.config
b/net/minissdpd/files/minissdp
index 979f855..2c1e638 100644
--- a/net/minissdpd/files/minissdpd.config
++ b/net/minissdpd/files/minissdpd.config@ -1,4 +1,4 @
config 'minissdpd' 'config'
option 'enabled' '1'
option 'log_output' '0'
- option 'internal_iface' 'lan'
option 'internal_iface' 'se00 sw00 sw10'
On Sun, Nov 25, 2012 at 1:38 PM, <cerowrt@lists.bufferbloat.net> wrote:
Issue #362 has been updated by Maciej Soltysiak.
For UPNP this is required. I tried a git commit today but I'm not familiar with git that much.
This patch uses cero iface names. Listens only on 'secure' interfaces such as ethernet and non-guest wlans.
diff --git a/net/miniupnpd/files/upnpd.config b/net/miniupnpd/files/upnpd.config index 02b4b2a..afa97da 100644 --- a/net/miniupnpd/files/upnpd.config +++ b/net/miniupnpd/files/upnpd.config
@ -5,8 +5,8@ config upnpd config option log_output 0 option download 1024 option upload 512 - option external_iface wan - option internal_iface lan + option external_iface 'ge00' + option internal_iface 'se00 sw00 sw10' option port 5000 config perm_ruleOn Sun, Nov 25, 2012 at 9:22 AM, <cerowrt@lists.bufferbloat.net> wrote:
Issue #362 has been updated by David Taht.
I would like to fix this somehow before the next release.
what is the current status of the in tree vs out of tree code?
Bug #362: upnp, natpmp, mdnsresponder borked https://www.bufferbloat.net/issues/362Author: David Taht Status: New Priority: Normal Assignee: Category: Target version: 1st Public Cerowrt release
I really haven't been paying attention to those packages.I was doing some work
I am creating a bug for this, please update me there.
What is a good way to test the functionality of these packages?
---------- Forwarded message ---------- From: Maciej Soltysiak <maciej@soltysiak.com> Date: Wed, Apr 11, 2012 at 12:37 PM Subject: Re: [Cerowrt-devel] some of the advanced stuff (sort of) in cerowrt To: Dave Taht <dave.taht@gmail.com> Cc: cerowrt-devel@lists.bufferbloat.net
Hi!
2) UPNP / NATPMP / mDNSresponder - to help different apps reaching out - i am sort of losing grasp of which package does what, they seem to be intertwined (?) but cero has these packages currently (3.3.1-4) broken. 3) miniDLNA - DLNA is a good low-latency (?) / high-throughput use-case within the wireless (laptops, picture frames) and wired (TV, NAS) home network. Also minidlna package is broken too.
Bug #362: upnp, natpmp, mdnsresponder borked https://www.bufferbloat.net/issues/362Author: David Taht Status: New Priority: Normal Assignee: Category: Target version: 1st Public Cerowrt release
I really haven't been paying attention to those packages.I was doing some work
I am creating a bug for this, please update me there.
What is a good way to test the functionality of these packages?
---------- Forwarded message ---------- From: Maciej Soltysiak <maciej@soltysiak.com> Date: Wed, Apr 11, 2012 at 12:37 PM Subject: Re: [Cerowrt-devel] some of the advanced stuff (sort of) in cerowrt To: Dave Taht <dave.taht@gmail.com> Cc: cerowrt-devel@lists.bufferbloat.net
Hi!
2) UPNP / NATPMP / mDNSresponder - to help different apps reaching out - i am sort of losing grasp of which package does what, they seem to be intertwined (?) but cero has these packages currently (3.3.1-4) broken. 3) miniDLNA - DLNA is a good low-latency (?) / high-throughput use-case within the wireless (laptops, picture frames) and wired (TV, NAS) home network. Also minidlna package is broken too.
Updated by Stephen Walker 6 months ago
Commit e7e5dcf to ceropackages-3.3 has the iface name changes.