Project

General

Profile

FritzBox different subnet error during scan RTSP cmd error 7

Added by Marco E almost 4 years ago

Hi,
I have a FritzBox with DVB-C and already used it with tvheadend in the past so the Box itself is working.
Now I've changed the network setup that behind the Fritzbox a new Router (TPLink TL-R605) is located with its own NAT and different subnet (and of course own DHCP and DNS). I can open ports for getting calls inside my new network (443 is opened and works). Also calls from the internal network to the Fritzbox (ping, port 80, port 49000,...) are working (and also to the internet).
My tvheadend server is inside my new net (running on Ubuntu). I've added as ARGS the satip_xml with the url of the satipdesc.xml on the Fritzbox. With that I see the 4 tuners in the UI of tvheadend.
specinv is set to not use. If I now add Muxes and let then scan I get the following:

2021-02-05 07:12:02.632 subscription: 0095: "scan" subscribing to mux "426MHz", weight: 5, adapter: "SAT>IP DVB-C Tuner #1 (192.168.178.1)", network: "fff", service: "Raw PID Subscription" 
2021-02-05 07:12:02.831 satip: SAT>IP DVB-C Tuner #1 (192.168.178.1) - RTSP cmd error 7 (Unknown error -7) [8-408]
2021-02-05 07:12:07.635 mpegts: 426MHz in fff - scan no data, failed
2021-02-05 07:12:07.635 subscription: 0095: "scan" unsubscribing

My fritzbox is on 192.168.178.1
the TL-R605 has the internal network 192.168.0.1/24 and has on the Fritzbox the IP 192.168.0.101
Tvheadend is running on 192.168.0.131
satip_xml is on http://192.168.178.1:49000/satipdesc.xml (and delivers the correct stuff)

If I use the m3u from the fritzbox I can watch TV insided the 192.168.0.1 network using VLC (so links like rtsp://192.168.178.1:554/?avm=1&freq=330&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,5100,5101,1170,1176,2171,2172,5102,5103,5104,5105 are working).

What do I have to do to get TVH running again? (If possible I don't want to add a Raspi in the 192.168.178.1 network)

Thanks and Kind Regards
Marco


Replies (29)

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

Hello,

sorry, aint got no solution, but the same problem.. ;)

Ahm, have you figured out how to solve this?

In my case, I also have a FritzBox cable (6591), a ubiquiti DMP and a Synology NAS, where tvheadend is running on.
Here is what I tried:
- start tvheadend with the same ARG (satip_xml...) and this is showing the tuners in my setup, too
- forwarded port 554 to port 9983 as tvheadend can onnly use port 554 if running as root
- tried to set specinv to on

still, I got the same error when scanning (RTSP cdm error 7)

:(

Regards
Oliver

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

You need to add a route in the FritzBox, it doesn't know how to reach your internal subnet.

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

Well, what kind of route is it and what do I have to do?
Would be interesting how you managed to get it working... ;)

Thanks
Oliver

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Marco E over 3 years ago

Hi,

Flole Systems wrote:

You need to add a route in the FritzBox, it doesn't know how to reach your internal subnet.

at least in my case there is no need for an additional route as my router which is connected to the Fritzbox has an IP from the box and therefore the box is already routing the traffic to this router (also VPN from outside is working and many other services which are running in my inside network).

Kind Regards
Marco

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

Think about what you wrote again for a second: The Box only knows how to route traffic to the Router, how does it know it's a Router with one or multiple subnets behind it? In case you have multiple devices connected, how does it know which one is a Router and which subnet is behind which Router? And that's exactly what static routes are for.

Also if your Router is acting as a firewall you need to make sure UDP Traffic to Tvheadend can go through.

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

Hi Marco,

so... have you solved the problem?
If so, how?

Regards
Oliver

P.S.: I tried to set a static route:
network: 192.168.1.0
(which is my dream machine pro)
subnet 255.255.255.0
gateway: 192.168.178.188 (IP for my ubiquiti router in the fritzbox network)

But that didn't help

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Marco E over 3 years ago

Hi,
Oliver Greling wrote:

Hi Marco,

so... have you solved the problem?
If so, how?

yes and no. I've put the TVheadend Server in the FritzBox network (which I don't like but it was the only way I got it running) and added the IP of it as a source to my kodi. With that it works.

Kind Regards
Marco

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

Well, that's something I'd like to avoid.

Seems like Flole Systems knows the secret - unfortunately, he doesnt like to tell... or am I wrong? ;)

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

I already told you what you need to do: Add a static route. The route you added looks correct, now all you need to do is make sure the router also forwards the packets and doesn't block them.

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

First of all: Flole, is it true that you have tvheadend running in a subnet/after a firewall/gateway or whatever?

If so, could you tell us what steps you made? E.g. in my case I have a FritzBox with the IP 192.168.178.1 (dfault),
my Security gateway has the 192.168.178.188 on the FritzBox side, and it spans a 192.168.1.0 network. My NAS with tvheaedend
has 192.168.1.7
So, if I got this right, you mean setting a staric route would be in my setup like this:
network: 192.168.1.0
subnet mask: 255.255.255.0
IP adrdress gateway: 192.168.178.188

oh, I see, I wrote it already. OK, so far.
So which ports have you forwarded?

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

I had it working but put Fritzbox and Server in a separate VLAN now as it's completely stupid in my case to put the >1Gbit/s of TV traffic (worst case) through the firewall if it's not necessary. So having those 2 devices connect directly was a wise thing to do.

I don't remember which ports I allowed, I'd just add a "allow all" route for now. Later on you can restrict it on the correct IP addresses and protocol.

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

Could you tell your parameters? (like IP addresses and what you exactly did)
Not to copy but to translate that to my setup, maybe...

Thanks

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

As I said: You just need to add the firewall rules (or disable the firewall completely) so that UDP Traffic can go through. Don't ask me how that's done on your router/firewall, unless it's a cisco router I can't tell you how it's done.

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

That is not applicable here, this is not Multicast so setting up Multicast won't help

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

"Rules" (firwall rules) have to do something with ports - which ports have you forwaded?

OK, so we dont really have a way to go through as I can see.

Let's gather all the info and experience we have:
1) adding "satip_xml IP.OF.FRITZ.BOX:49000/satipdesc.xml" to the startup otions of tvheadend - necessary or not necessary?

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

There is no need to forward any ports if you don't do NAT. You just need to make sure the traffic is routed and not blocked. If you're doing NAT (which doesn't make any sense and makes things more complicated) you should forward all UDP ports or specify the ports in Tvheadend.

Adding that option is necessary if you don't let UPNP go through your router.

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

UPnP is activated. Believe me, I tried A LOT ;)

That's why I am trying to get a clean line in thinking about this and solving the isssue... :/

What about the "satip_xml..." thing?

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

As I said: If you're indeed routing UPnP between the subnets then the satip_xml option is not needed.

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

Well, I now deleted the satip_xml option - now i cannot see the tuners anymore.
And all UPnP settings are on.
Here is a screenshot from my gateway:

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

That option doesn't say anything about Routing of UPnP, it just allows the Firewall/Gateway to be configured with UPnP. But this is probably not the right place for support with configuring your gateway, the manufacturer or a specialized Forum is probably a better place to ask and get this kind of support.

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

It's not about configuring my gateway, it's just about finding a solution in getting the BASIC idea of what to do - regardless of the gateway hardware...

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

As I said: Disable NAT for that host, allow all UDP Traffic to go through from FritzBox to Tvheadend and add a static route. Specify the URL and don't care about UPnP. That's it. Now you just need to figure out how that is done on your firewall/router.

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Oliver Greling over 3 years ago

Could you specify "dsiable NAT for that host" with an example?

RE: FritzBox different subnet error during scan RTSP cmd error 7 - Added by Flole Systems over 3 years ago

Don't do NAT for traffic with the FritzBox as destination. The source address that reaches the FritzBox should still be the original IP address and not the address of the gateway.

(1-25/29)