blog.mfuchs.org

yet another useless weblog

Quote

"What if we chose the wrong religion? Each week we just make God madder and madder."
--Matt Groening (The Simpsons)

Sometimes you’ve got the problem that some websites are just reachable in a particular network or you want to connect a service from another computer. No problem if you have SSH access to an external computer:

ssh <username>@external-computer.net -L 1234:badwebsite.com:80

This simple command on your terminal (executed as root!) will take you directly to badwebsite.com port 80, when you enter localhost:1234 in your browser. This means that port 1234 of your local machine is bound to external-computer.net and leads directly to badwebsite.com. This website thinks you connect from external-computer.net.
You can even try to establish secured SSL connections, but this is not allowed by all remote servers. Therefor you just have to replace 80 with 443
As you can see, every port can be tunneled, not only the HTTP port. For example try port 6667 for IRC connections.

Leave a Reply

You must be logged in to post a comment.