securesocketfunneling / ssf

Secure Socket Funneling - Network tool and toolkit - TCP and UDP port forwarding, SOCKS proxy, remote shell, standalone and cross platform

Home Page:https://securesocketfunneling.github.io/ssf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to forward rtsp webcam port

rajkiranjeet opened this issue · comments

Hi
i am looking for rtsp security cam port forward through to my remote server ,i am behind router cant forward port so how i can forward port to remote server through SSF.I want to pull local stream with my remote server like local its rtsp://127.0.0.1/myfeed and i want to acess remotely rtsp://remoteserver_ip/myfeed
any example will be good
thanks

RTSP is pure TCP right ? So it should be fairly easy.

Generate CA and certificates for both server and client : https://securesocketfunneling.github.io/ssf/#security-features

Define the TLS settings in a config.json on both server and client.

On your remote server launch ssfd (the server accessible from your sec cam so not on the sec cam side)
ssfd --config config.json -p <REMOTESERVERPORT>

On the sec cam server you use tcp forwarding by using -R instead of -L in order to access your feed from your remote server like this :

ssf --config config.json -R <REMOTESERVERFEEDPORT>:127.0.0.1:<SECCAMFEEDPORT> -p <REMOTESERVERPORT> <REMOTESERVERIP>

So in theory you should be able to access the feed with rtsp://<REMOTESERVERIP>:<REMOTESERVERFEEDPORT>/myfeed

e.g. :
Accessing the feed on the remote server on port 8080 where on the sec cam it is running on port 8070

Remote Server
ssfd --config config.json -p 8011

Sec Cam Server
ssf --config config.json -R 8080:127.0.0.1:8070 -p 8011 serverip

And access

rtsp://serverip:8080/myfeed

I'm quite late to post this but whatever, maybe it's helpful to someone else.