Blog
Types of Port Forwarding
There are 3 main types of port forwarding: Local Port Forwarding, Remote Port Forwarding and Dynamic port forwarding
1. Local Port Forwarding
2. Remote Port Forwarding
3. Dynamic port forwarding
1. SSH LOCAL PORT FORWARDING
Suppose you are on a local network that restricts access to a site, let us suppose example.com. To work around this we could create a tunnel through a server that is not on our network and thus has access to example.com. The command we would use is:ssh -L 9090:example.com:80 Tato e-mailová adresa je chráněna před spamboty. Pro její zobrazení musíte mít povolen Javascript.
The -L flag here tells that local port forwarding is being used. So, what the above command does is it forwards the data on local port 9090 to the server which has access to example.com through a secure SSH connection. Note here that admin is a user on the server. Now visit example.com on your browser.
Strana 140 z 183