EFW Support

Support => General Support => Topic started by: deepfresh on Friday 05 September 2008, 05:13:22 pm



Title: source based port forwarding
Post by: deepfresh on Friday 05 September 2008, 05:13:22 pm
Hello,

I'm trying to setup the my endian FW in the following way:

I have several web servers in my Orange Zone all listening on Port 80. Now, I have been unable to setup endian to make a port forwarding
depending on the URL request. i.e.

if a request comes in for aaaaa.com it needs to be forwarded to server1:80
if a request comes in for bbbbb.com it needs to be forwarded to server2:80
and so on....

Anyone with some ideas how to achive this with endian?
Thanks for your help guys, greatly appreciated.
Deep


Title: Re: source based port forwarding
Post by: blobbi on Friday 05 September 2008, 06:30:48 pm
Hi there,

is this Web Service only ?
I had the same Problem an fix it when i use vhosts config at the Apache WebServer.
so when aaaa.com is comming to the server he nows that the website for this domain found in /srv/www/vhosts/aaaa.com/htdocs
and when domain bbbb.com he reached the Site from the /srv/www/vhosts/bbb.com/htdocs/

it works finde ..

if you have multible physicaly Server
try
aaaa.com goes server1:80
bbbb.com:81 goes server2:81

grettings
from Germany
Frank


Title: Re: source based port forwarding
Post by: deepfresh on Friday 05 September 2008, 08:10:02 pm
Hello Frank,

thanks for your reply. I have different physical servers and they need to run on port 80. I had the same configuration whith
an ISA Server, where you can specify source based port forwarding meaning that a request to aaaaa.com goes to server1:80 and so on

I saw in the endian documentatino that this should be possible (at least this is what I understood) but I cannot find any setting for this.

Thanks and greetings from Switzerland :-)
deep


Title: Re: source based port forwarding
Post by: blobbi on Friday 05 September 2008, 11:40:03 pm
ok what you want is
you have 2 spcial names like aaaa.dyndns.org and bbbb.dyndns.org
together they point to the same endian but internal points to 2 different Servers .. hmmmm  :P
ih checks this .. i think there is a way to do this ... *i hope*

greetings ..from germany
Frank


Title: Re: source based port forwarding
Post by: blobbi on Friday 05 September 2008, 11:57:43 pm
what you can do
as test is

in the Firewall Portf.

add forwarding with incomming all to Server_IP1  with port 80
and
add forwarding with incomming all_IP but Port 81 to Server_IP2 with port 80

but outside of the efw you can connect  aaaa.com goes server 1 port 80
and bbbb.com:81 goes server 2 on port 80

i this this will work
beacause on my quick overwiev i have not seen anything but tomorrow i looking again :)