Question regarding the functionality of httpp forward

67 views
Skip to first unread message

baob...@gmail.com

unread,
Nov 20, 2014, 12:42:20 AM11/20/14
to iwe...@googlegroups.com
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

unread,
Nov 20, 2014, 1:17:46 AM11/20/14
to iwe...@googlegroups.com, baob...@gmail.com
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
  Tom

BO BAO

unread,
Nov 20, 2014, 8:45:00 AM11/20/14
to tom, iwe...@googlegroups.com
Hi Tom,

Thanks for the quick response.

For case 2, is it feasible to have a local reverse proxy and remove that local proxy layer? As I only wanna visit limited number of websites.


Regards,

Bo

Sent From My iPhone

tom

unread,
Nov 20, 2014, 10:17:14 AM11/20/14
to iwe...@googlegroups.com, zs68...@gmail.com, baob...@gmail.com
you mean chained reverse proxy ?

Best regards
  Tom

BO BAO

unread,
Nov 20, 2014, 11:03:10 AM11/20/14
to tom, iwe...@googlegroups.com
Yes, but the second one could be a normal tcp reverse proxy.

Sent From My iPhone

tom

unread,
Nov 21, 2014, 5:54:59 AM11/21/14
to iwe...@googlegroups.com, zs68...@gmail.com, baob...@gmail.com

sure, you can try below

browser -> local reverse http to httpp reverse proxy -> remote httpp to http revere proxy -> real web server 

both local and remote reverse proxy can be implemented with node-httpp-proxy 

Best regards
  Tom

BO BAO

unread,
Nov 25, 2014, 5:18:43 PM11/25/14
to tom, iwe...@googlegroups.com
Hi Tom,

I was trying to install the httpp module for node. In npm there is a 0.1 version for that. 

I check the git for node-httpp, did the configure, make and make install on linux. But when I try to acquire the module httpp, nodejs still complains module not found.

Could you tell me know to properly install that httpp module?


Thanks

Bo

Sent From My iPhone

在 Nov 20, 2014,1:17 AM,tom <zs68...@gmail.com> 写道:

tom

unread,
Nov 25, 2014, 7:02:56 PM11/25/14
to iwe...@googlegroups.com, zs68...@gmail.com, baob...@gmail.com
Bo:

after compile node-httpp manually, you can do xxx/node -v , it will show node-httpp version string with httpp appendix. 
like v0.8.28-httpp

otherwise, you may call to original node binary.

Best regards
  Tom

Bo Bao

unread,
Nov 25, 2014, 9:05:00 PM11/25/14
to tom, iwe...@googlegroups.com
Tom:

So which directory does httpp0.8 will be written to?

Right I have the folder:

node-httpp-0.8-httpp

and :

node-httpp-proxy


Right now i'm trying to compile the httpp on windows, and it said missing node_natives.h. I believe I would need the node source code as well.

So when I finished compile, which folder I can find the output and which folder I should move them into under "node-httpp-proxy"?

I am very appreciate for your patient for my such noob questions :(



Bo

tom

unread,
Nov 25, 2014, 9:29:56 PM11/25/14
to iwe...@googlegroups.com, zs68...@gmail.com, baob...@gmail.com

to compile on windows, you need install VS studio 2010. after compile, node.exe binary will be on out/Release/ dir.

Best regards
  Tom

Bo Bao

unread,
Nov 25, 2014, 9:38:04 PM11/25/14
to tom, iwe...@googlegroups.com
Do I need to compile the httpp module?

As I run the httpp proxy it complains that couldn't find the httpp module.

Bo Bao

unread,
Nov 25, 2014, 9:42:20 PM11/25/14
to tom, iwe...@googlegroups.com
Maybe in another word:

how can I install the httpp module on windows?


Bo

tom

unread,
Nov 25, 2014, 9:43:58 PM11/25/14
to iwe...@googlegroups.com, zs68...@gmail.com, baob...@gmail.com
httpp module is built-in with node-httpp binary, just like http built-in with original node.js binary.

Best regards
  Tom
Reply all
Reply to author
Forward
0 new messages