Score:0

How can I do this port-forward?

ru flag

Hello I try to do a port forward in this network

enter image description here

As you can see I have the localhost when I want to execute a curl to localhost:9203, in order to get access to 10.0.0.1:9200.

10.0.0.1:9200 is a server that only is accessible by ssh server, 10.0.0.0.

Currently, I connect by ssh to ssh server and then I execute the curl, but I want to do this from localhost because I cannot install dependencies in ssh server.

How can I do this port-for

I need access to ssh server with a user and password.

how can I do a port forward or ssh server needs a firewall rule to redirect?

Thanks

Score:0
cn flag

Based upon your question, I assume you are wanting to use an SSH tunnel.

ssh -L 9203:10.0.0.1:9200 [email protected] (replace user with an actual user on 10.0.0.0)

That will open up 9203 on your local machine, and redirect traffic to 10.0.0.1 on 9200.

Tlaloc-ES avatar
ru flag
this `ssh -L 9203:elastic_ip.3:9200 user@sshserver` doesn't redirect trafic only get a access to the ssh server.
Tlaloc-ES avatar
ru flag
bind [elastic_ip]:9200: Cannot assign requested address channel_setup_fwd_listener_tcpip: cannot listen to port: 9200
cn flag
Is the port in use? netstat -ltmp
Tlaloc-ES avatar
ru flag
no, elasticsearch is a server that is only accesible by ssh server
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.