DEV Community

Discussion on: PrxPass - A reverse-proxy self-hosted solution (aka local tunnel)

Collapse
 
msoedov profile image
Alex Miasoiedov

What is the advantage comparing to traditional

ssh -D 8123  username@hostname

?

Collapse
 
defman profile image
Sergey Kislyakov • Edited

I've not used ssh in this way, so could you tell me how it works?

If I understand the man page correctly, this will give you a tunnel to the remote server, but an user won't be able to access you. PrxPass allows you to share localhost to public by creating a dial tunnel (client <-> server) with your remote server.

PrxPass works in this way:

  1. User requests <id>.example.com/hello.html
  2. The HTTP request (GET /hello.html) is being sent to the associated prxpass client.
  3. The prxpass client sends the HTTP request to localhost (GET /hello.html; Host: localhost) and waits for a response.
  4. The response is being sent back to the server.
  5. User sees localhost/hello.html.
Collapse
 
msoedov profile image
Alex Miasoiedov • Edited

It's a TCP proxy over ssh

jguru.com/faq/view.jsp?EID=227532

Thread Thread
 
defman profile image
Sergey Kislyakov

I don't see a way to route the traffic from a remote server from a specific domain (13.37.13.37, mylocaltunnel.mysite.com) to a local web server (e.g. localhost:8000). PrxPass is a reverse-proxy server, not a simple proxy server.

I'd be happy to see if it's possible to setup a ssh tunnel in this way.