Score:0

Can I tunnel all ports from remote server to 127.0.0.2 (for example), so work with it like with localhost

kh flag

I have a remote server.

I started on remote server app that listen localhost only.

I want to tunnel this server to local ip like 127.0.0.2 and access this app through like I on remote server.

I need to tunnel all ports. Only one port is not what I search.

I tried to google ssh tunnel for it, but couldn't find.

vidarlo avatar
ar flag
Why do you need all ports? This sounds more like an X-Y problem to me.
Дмитрий Лейкин avatar
kh flag
I want to debug my app that used many dynamic ports.
vidarlo avatar
ar flag
Is it possible to do that via a socks proxy?
Score:0
cn flag

Use a routable IP address. Not loopback. Access it remotely like a normal IP application.

For security, firewalls with default deny of TCP and UDP are a good idea, as usual. Allow rules for this could be restricted to smaller nets in some internal zone. Firewall rules can open a large range of ports, if that is needed. All ports is extraordinary, if I were firewall administrator I'd ask for you to restrict to a smaller range.

Depending on what this application is and what networks it needs to traverse, you may wish to tunnel or proxy in some way. Or leave it as localhost only, and require remoting into this host (such as with ssh) to access the thing running on its loopback.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.