InstantWebP2P / nodejs-httpp

Run HTTP over UDP with Node.js
Other
145 stars 25 forks source link

Use case for udt reversal proxy #12

Closed baobo5625 closed 9 years ago

baobo5625 commented 9 years ago

Hi Tom,

I checked out several projects you built arround httpp-node.

I would like to implement the following scenario, could you help me to tell me if it is feasible with httpp-node.

I am trying to move the http traffic from TCP to UDP/UDT.

Multiple client --> (connect to local proxy, say 127.0.0.1) --> UDP traffic --> Proxy Server -->TCP traffic --> Web server.

Therefore the client will browse on 127.0.0.1 for specific website.

If it is feasible, could you tell me what are the correct modules I should use?

Thank you very much.

Regards,

Bo

Tom said:

it's straightforward.

there are two pattern to forward http/tcp traffic over httpp/udp. you case is case 2.

case 1:

browser -> local proxy server -> httpp/udp -> httpp enabled web server / service

case 2:

browser -> local proxy server -> httpp/udp -> httpp enabled web server reverse proxy -> original http/tcp web server

for local proxy server on browser side, use module : https://github.com/InstantWebP2P/httpp-forward

for httpp enabled web server on server side, use module: https://github.com/InstantWebP2P/connect-httpp

in case 2: you can use httpp-proxy to implement httpp/udp to http/tcp reverse proxy service: https://github.com/InstantWebP2P/node-httpp-proxy

And, please create issue on github is better : https://github.com/InstantWebP2P/node-httpp

Best regards