Menu

Reserve Proxy Setup

Comments
Anonymous
2012-05-10
2012-07-13
  • Anonymous

    Anonymous - 2012-05-10

    Hi there,

    Guess I am still very confuse about how to setup my PortFusion network. I have a Windows server with one fixed IP from my ISP. I have two VM running on the same Windows server. Each server is for a specific domain.

    My question is how to "setup" PortFusion as a Reserve Proxy to do the following:
    somedomain1.com to access 10.0.0.1:80 on VM1
    somedomain2.com to access 10.0.0.2:80 on VM2

    Thanks,
    John

     

    Last edit: Anonymous 2012-05-13
    • Anonymous

      Anonymous - 2012-05-13

      Hi John,

      Thank you a lot for your interest!

      There are two possible cases here.

      1) VM1 and VM2 serve different content

      PortFusion cannot handle this case without using different ports on your gateway Windows Server host machine HM because it does not inspect domain names used to access services hosted via it.

      Current best solutions would be either (where HM is your host machine):

      @HM>  PortFusion        ] 4000    [
      @VM1> PortFusion 80 ::1 - 4000 HM [ 81
      @VM2> PortFusion 80 ::1 - 4000 HM [ 82
      

      or in your case equivalent iff HM can access VM1 and VM2 (enter as a single line):

      @HM>  PortFusion "81 ] - VM1:80"
                       "82 ] - VM2:80"
      

      both of which would set up the following tunnels:

      VM1:80 - [ HM:81
      VM2:80 - [ HM:82
      

      and assuming somedomain1.com and somedomain2.com just point to HM would give you:

      VM1:80 - [ somedomain1.com:81
      VM1:80 - [ somedomain2.com:82
      

      .

      Use an HTTP Proxy to get rid of the port numbers

      You can use an HTTP proxy with URL and content rewrite rules. (for IIS see URL Rewrite, Application Request Routing) to mask the different port numbers.

      Iff your HM can access VM1 and VM2, you would not even need PortFusion when you use an HTTP proxy.

      2) VM1 and VM2 serve the same (session-less) content

      @HM>  PortFusion        ] 4000    [
      @VM1> PortFusion 80 ::1 - 4000 HM [ 80
      @VM2> PortFusion 80 ::1 - 4000 HM [ 80
      

      would set up the following tunnels:

      [VM1:80, VM2:80] - [ HM:80
      

      and assuming somedomain1.com and somedomain2.com just point to HM would give you:

      [VM1:80, VM2:80] - [ somedomain1.com
      [VM1:80, VM2:80] - [ somedomain2.com
      

      where either VM1:80 or VM2:80 is chosen non-deterministically for each HTTP request.

      Implicit Feature Request

      I take handling the first (different-content, same endpoint (domain name + port)) case better as an implicit feature request.

      I will investigate whether it can be covered satisfactorily with simple extensions to PortFusion.

      Full-fledged application-layer intelligence for HTTP and other protocols is planned for the not so near future possibly in the form of modular extensions.

      Note

      Version 1.0.3 was released fixing an important bug related to reverse proxy mode: https://sourceforge.net/projects/portfusion/files/#readme.

      Questions

      1. Was this answer helpful?
      2. Is yours the first or the second case?
      3. Can you (continue to) use PortFusion?
       

      Last edit: Anonymous 2012-05-13
    • Anonymous

      Anonymous - 2012-05-13

      I can create and send you a step by step visual guide for IIS 7 or above if you drop me an email confirming a need.

      fusion@corsis.eu

       
      • Anonymous

        Anonymous - 2012-05-14

        Thanks for such detail reply. It is very helpful indeed. I am in the first case which two VM serve different content. I am sure I will keep using PortFusion if I have the above setup running.

        I will drop you a line for the visual guide.

        • John
         
  • Anonymous

    Anonymous - 2012-05-11

    I cant figure out how to start your new version.. When i run it on my x64 Windows 7 system all is says is:

    CORSIS PortFusion ( ]-[ayabusa 1.0.0 )
    (c) 2012 Cetin Sert. All rights reserved.

    Windows - x86 [Sun May 06 03:31:40 2012]

    Do i need the haskel runtime???

     
    • Anonymous

      Anonymous - 2012-05-13

      No there is no Haskell runtime :)
      This is expected behaviour. I will answer your first post in detail.

      I am sorry that I received no notifications because you created a new topic. The SourceForge forums are really quite frustrating to work with.

      Please post further questions here: https://github.com/corsis/PortFusion/issues/new

       

Anonymous
Anonymous

Add attachments
Cancel