how do i use my linode server for remote port forwarding?

i have a website running on my local machine and i want to access it outside my local network can i use my linode server to perform a reverse port forwarding so i can access my website?

1 Reply

Most of my research on reverse port forwarding has sent me to resources about reverse SSH tunneling. The directions on this site, Make Tech Easier, show how to set up a reverse SSH tunnel and configurations, starting with editing the /etc/ssh/sshd_config file to allow GatewayPorts. It then provides the command necessary to forward traffic from from your Linode to your home computer. This seems like it may help you achieve what you're looking for.

I also found this post on SuperUser tha provides some additional flags that may be needed with the command.

Based on the goal of being able to access something on your local network while away from home, you may want to look into setting up a VPN or Virtual Private Network. Several of those VPN options are available as Marketplace apps to make deployment easier.

You can also check the options the Awesome Tunneling list on GitHub. While a lot of those options are meant to share with the public, there are options like zrok that support private sharing. I like this one because there is a easy to follow video on YouTube from OpenZiti that uses Linode as a sample, so I feel good about its compatibility without having tested it myself. Hopefully one of these options works for you.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct