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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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):
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
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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???
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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
Hi John,
Thank you a lot for your interest!
There are two possible cases here.
1)
VM1andVM2serve different contentPortFusion cannot handle this case without using different ports on your gateway Windows Server host machine
HMbecause it does not inspect domain names used to access services hosted via it.Current best solutions would be either (where
HMis your host machine):or in your case equivalent iff
HMcan accessVM1andVM2(enter as a single line):both of which would set up the following tunnels:
and assuming
somedomain1.comandsomedomain2.comjust point toHMwould give you:.
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
HMcan accessVM1andVM2, you would not even need PortFusion when you use an HTTP proxy.2)
VM1andVM2serve the same (session-less) contentwould set up the following tunnels:
and assuming
somedomain1.comandsomedomain2.comjust point toHMwould give you:where either
VM1:80orVM2:80is 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
Last edit: 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
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.
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???
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