Proxy web traffic via teleport

#1

I have a node on a cluster behind a firewall that I can reach via tsh but I need to install updates on it via apt-get and was wondering if there is a way to forward all web traffic via the main proxy over ssh ? So as an exampleI I would like to setup the yum or apt-get conf to point to a local binded port like 127.0.0.1:5000 and then it would tunnel all such traffic via the proxy?

0 Likes

#2

I think you could use standard SSH port forwarding that works with teleport. You can also use SOCKS5 mode with tsh or ssh.

Some links:

https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding
https://gravitational.com/teleport/docs/user-manual/#port-forwarding

0 Likes

#3

I did try using tsh with -D command which sort of works and then blows up usually. I was thinking maybe using the “ssh -R” with tsh command but seems that is not supported on “tsh”

0 Likes

#4

What do you mean by blows up :slight_smile: Can you share some logs/error you are getting?

0 Likes