Community discussions

MikroTik App
 
raitk
just joined
Topic Author
Posts: 1
Joined: Sat Mar 13, 2021 10:59 pm

RTSP conntrack module

Mon Mar 15, 2021 2:00 am

To use third party routers for IPTV with VOD features, 2 functions are needed. I believe the ISP with "purple logo" uses the same technology even in Latvia. IPTV "replay" and movie rental over rtsp stream.
Those 2 required functions are:
1. IGMP proxy. Thanks Mikrotik for their hard work for getting this function working. Works well, haven't seen any problems.
2. RTSP ip connection tracking. This is still missing.

RTSP IP connection tracking ie. rtsp conntrack module is basically L7 NAT feature that replaces destination ip address in outgoing package and automatically does destination NAT to get the RSTP stream to client. For example: https://github.com/maru-sama/rtsp-linux

The following data have been collected by looking packages between STB and "ISP provided router" and compared with packages that go out from the ISP provided router.
STB sends out package:
SETUP rtsp://X.X.X.X:554/SomeAbstractNameHere RTSP/1.0
User-Agent: Kreatel_IP-STB
Transport: MP2T/H2221/UDP;unicast;destination=192.168.1.207;client_port=34808
x-properties: mac_address=6C63XXXXXXXX
x-mayNotify: 
CSeq: 3

The same package goes out from the ISP router as:
SETUP rtsp://X.X.X.X:554/SomeAbstractNameHere RTSP/1.0
User-Agent: Kreatel_IP-STB
Transport: MP2T/H2221/UDP;unicast;destination="EXTERNAL IP AADRESS";client_port=34808
x-properties: mac_address=6C63XXXXXXXX
x-mayNotify: 
CSeq: 3
2 things happen. First the internal IP address in destination= is changed from internal IP to external IP address.
Second the client port is read, and proper port is directed to internal IP address.

Currently all we have managed with a RouterOS device is a polite reply from RTSP server:
RTSP/1.0 403 Forbidden
Server: Orbit2x
CSeq: 3
Because rtsp server has absolutely no idea where to send the stream when it is destination="internal ip address"

Would this feature be eventually implemented?
Or is there a way to achieve these 2 "things" already using L7 firewall and some scripting magic?
 
User avatar
Etz
Member Candidate
Member Candidate
Posts: 178
Joined: Thu Mar 27, 2014 10:09 am
Location: Estonia

Re: RTSP conntrack module

Sun Apr 04, 2021 8:48 pm

Has been requested already for 6 years...

viewtopic.php?f=14&t=95261

And it is major roadblock for using MT if IPTV VOD services are involved.
 
msatter
Forum Guru
Forum Guru
Posts: 2897
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: RTSP conntrack module

Sun Apr 04, 2021 9:22 pm

Am I having a déjà vu here?

Who is online

Users browsing this forum: No registered users and 21 guests