Comment on Using a SSH tunnel/ port forward to connect a TV?
eksb@programming.dev 2 days ago
Can you provide more detail? What are the networks/routers/vlans? Which network is the RPi on? What is your ssh command? Is that ufw command on the RPi or the router?
eyesaremosaics@lemmy.zip 2 days ago
Ok there is a TV and a pi on network 1 and a server on network 2, the pi can connect to the server through SSH or VPN or whatever is needed. The TV would like to connect to the server, however it can’t run a VPN or anything like that so exposing the server would be a risk.
The SSH command on the pi is SSH -L 1234:localhost1234 remote_server
The ufw command was run on the pi, with the intention to allow the TV to access the forwarded port on the pi
ssh -L 1234:localhost:1234 remote_serverbinds the RPi’slocalhost:1234to remote_server’slocalhost:1234. You want to bind the port to something on the RPi that the TV can hit, so something likessh -L 192.168.1.5:1234:localhost:1234 remote_server, where192.168.1.5is the RPi’s address.I think you also want
-Non thesshcommand.eyesaremosaics@lemmy.zip 1 day ago
That worked thanks, I didn’t know you could put an address like that in the -L command, and the -N is correct here too