Posts tagged ‘http proxy’

HTTP Proxy

Wir benutzen SSH um einen eigenen HTTP-Proxy auf der lokalen Maschine zu schaffen.

SOCKS sind in OpenSSH bereits eingebaut und so ist es mit einfachsten Mitteln möglich einen eigenen SOCKS HTTP Proxy mit dem “-D”-Parameter zu öffnen. Hier das Beispiel:

$ ssh -D 7070 myuser@remote_ssh_server

wird einen Port 7070 auf der lokalen Maschine öffnen, die als lokaler Proxy fungiert. Nun kann der gesamte HTTP Proxy Traffic auf diesen Port 7070 umgeleitet werden und wandert somit in einem SSH-Tunnel zu dem remote_ssh_server … und von da aus in das Internet. Das war es auch schon. Die Umleitung des lokalen Ports 7070 ist somit erledigt.

Http Proxy

Utilize SSH to make an HTTP Proxy

SOCKS is built in to OpenSSH, and so it’s a trivial thing to establish a local SOCKS HTTP proxy with the -D flag. For instance:

$ ssh -D 7070 myuser@remote_ssh_server

will open the port 7070 on your local machine for a SOCKS proxy and then all your HTTP proxy traffic can be defined to go through the SSH tunnel and out distant_ssh_server on the other end. Your HTTP proxy server is directly set up.