here's my scenario:
I have IP camera behind the company firewall that I want to stream publicly, and for that, I've created two Azure VMs (Ubuntu 19.04) - let's call them vm1 and vm2
In case it's important, my VM SKU is Standard B1s (1 vcpus, 1 GiB memory)
I SSH to my camera and from there, I do a remote port forwarding for RTSP like this:
ssh -R 554:localhost:554 root@<vm1-ip>And, I guess I need to enable root SSH because it's a "well-known" port.
I log in to
vm1, and I see it's listening on the port:sudo netstat -tlnpgives me this:Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:554 0.0.0.0:* LISTEN 108748/sshd: root@p tcp6 0 0 ::1:554 :::* LISTEN 108748/sshd: root@pBut, when I use
nmapfrom fromvm2, the port is shown as closed:nmap <vm1-ip> -p 554 PORT STATE SERVICE 554/tcp closed rtspWhen I use
vlcto connect to the stream, it doesn't work either: the URL I use invlcis:rtsp://<vm1-ip>/...I thought this might be an issue with the NSG (network security group) associated with
vm1, so I tried allowing all inbound traffic:
and, needless to say that it doesn't solve the issue
Any thoughts on this?
Thank you