Answer the question
In order to leave comments, you need to log in
Tunneling a port from a VM to an external server?
It is necessary that an external source can get to the service running in vagrant on the guest OS.
This is important when using the callback API.
There is port forwarding between the guest VM and the Windows host: host port 8816 is guest 80.
The Windows host does not have a white IP.
This forwarding works, and at localhost:8816 on a Windows machine, the site is displayed.
There is a third Server machine with a white IP, this is a normal VDS.
How to forward from 8816 port of the Server server to 8816 port of Windows using tools on Windows (PuTTY)?
So that a site running in the VM opens on server.com:8816.
Here is an approximate diagram of what I am doing: I
tortured the entire SSH Tunnels tab, but did not pick up a working solution.
It seemed to me that this should work (ports in the screenshot are different):
But it does not work.
Answer the question
In order to leave comments, you need to log in
The checkbox above, about local ports accept connections...
Local mode instead of remote
According to the screenshots, it turns out that the connection is expected on the machine where putty clings to, and is forwarded to the machine where putty is running.
OnYourLips found a problem:
/etc/ssh/sshd_config needs GatewayPorts yes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question