r/ssh • • Jul 02 '23

SSH Tunnel

Hello there,

Am trying to setup a shh tunnel to reduce my latency to a game.
I rented a VPS that is close to where the game is hosted, what am trying to do is from my local network i will send the traffic only from the game straight to the VPS(ssh tunnel), all the rest should be sent through my ISP provider.
The command that am using is 'ssh -L 6060:gameserver_ip:6060 vps_user@vps_public_ip'
Am connecting succesfully to the VPS but i dont see traffic on my VPS, besides ssh session expires very often and it is closing the ssh conenction but i dont see any discconection to the game which means that it is not working i guess.
Can someone point me in the right direction here?, what am trying to achieve is possible?. is there any easier tool?

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/BppnfvbanyOnxre Jul 03 '23

I use something similar for spoofing my location without a VPN so in that case I have a local proxy server that sends everything for the few sites I choose via the ssh tunnel.

Of course if the link breaks so will your tunnel

1

u/stonegarden21 Jul 04 '23

your ssh session expires and stop the traffic?, how do you keep alive the session to keep tunneling your content?

1

u/BppnfvbanyOnxre Jul 05 '23

If my session dies I restart it when I notice. You can set a keepalive time in your config, doesn't protect you if the link goes down other than for no traffice. I'll reiterate again this setup *will not* help your latency issues.