Skip to contentSkip to conversation

relaying RTSP

DISCUSSION Ottavio Campana 1 participant 1 message Feb 4, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to implement a relay for RTSP or something similar for the following situation:

+--------------+     +---------------------------+     +-----------+
|      pc      |     |         box with 2 NICs   |     |   camera  |
|192.168.0.1/24|<--->|192.168.0.2/24  10.0.0.1/24|<--->|10.0.0.2/24|
+--------------+     +---------------------------+     +-----------+

On the pc I have a *crappy* software that has to read some data from the box with 2 NICs and receive the RTSP video from the camera. The easiest solution would be opening two connections to two different IPs on the 192.168.0.0/24 lan, but the software can deal with just one IP. Thus, since I only need to receive the video from the camera, I considered the solution I just showed you, by hiding the camera in the lan 10.0.0.0/24 and relaying it.

Now the question is: can I do RTSP relaying with netfilter? I have several doubts, for example what happens when the pc issues a DESCRIBE command? I mean, the pc will send a describe command with the ip 192.168.0.2, but it if is forwarded to the camera it should be changed to 10.0.0.2 .

So, do you think it is possible to achieve a working configuration with netfilter or do I have to look for a relay in user space? In the latter case, do you know any program that can solve my problem?

Thank you for your ideas,

Ottavio

Signature · 1 line
Non c'e' piu' forza nella normalita', c'e' solo monotonia.