-
QuestionMediaMTX Version: v1.5.1 Hi, I want to use MediaMTX as a RTSP proxy passthrough for universal RTSP streams. Ex: When I connect to I tried a few things: 1. Using the example regex to proxy
Error: 2. Using a groupable RTSP stream regex
Connect RTSP Stream:
PS: Current RTSP stream redacted. The final goal is to proxy a RTSP stream while recording on the MediaMTX server. Can someone point what I am doing wrong in this case? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, the setup you are describing, which is the ability to use the server as a proxy to any URL, is seldom used since it has an intrinsic security flaw, that is the possibility for an attacker to use the server to send requests to arbitrary services or websites. Anyway this can be accomplished if the protocol (RTSP) is fixed: paths:
"~^proxy_rtsp/(.+)/(.+)/(.+)/(.+)/(.+)$":
source: rtsp://$G1:$G2@$G3:$G4/$G5
sourceOnDemand: yes Requests addressed to
will be proxied to
You can create configurations for different protocols: paths:
"~^proxy_rtsp/(.+)/(.+)/(.+)/(.+)/(.+)$":
source: rtsp://$G1:$G2@$G3:$G4/$G5
sourceOnDemand: yes
"~^proxy_rtmp/(.+)/(.+)/(.+)/(.+)/(.+)$":
source: rtmp://$G1:$G2@$G3:$G4/$G5
sourceOnDemand: yes |
Beta Was this translation helpful? Give feedback.
Hello, the setup you are describing, which is the ability to use the server as a proxy to any URL, is seldom used since it has an intrinsic security flaw, that is the possibility for an attacker to use the server to send requests to arbitrary services or websites.
Anyway this can be accomplished if the protocol (RTSP) is fixed:
Requests addressed to
will be proxied to
You can create configurations for different protocols: