Port forwarding

It is possible to make port forwarding between a local port and a distant port.

For example, to send the flows from the local port 9999 to the distant port 80, the following command can be used:

ssh  -L 9999: user@remote_machine

The sshd service of the remote machine must be configured with the following parameter:

AllowTcpForwarding yes

With curl, to use the created port, the following command can be used:


In the case of the HTTP protocol (and others), the domain name can be part of the configuration of the web server: the HTTP HEADERS must be set accordingly.