LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Question about setting up to view one website through another (http://www.linuxquestions.org/questions/linux-networking-3/question-about-setting-up-to-view-one-website-through-another-795874/)

mrotsliah 03-16-2010 05:09 PM

Question about setting up to view one website through another
 
I have several web servers, say myserver1, myserver2, and myserver3, behind a firewall that the higher-ups run. They recently changed the firewall to block all ports except for the ones they want open. I have www.myserver1.com viewable to the outside world, but www.myserver2.com is not viewable to the outside world. I was wondering if there is a way to set things up so that people could go to

www.myserver1.com/(some_address_stuff)

and view the www.myserver2.com and www.myserver2.com website content.

myserver1 is running Solaris 7, which will (hopefully) be upgraded to Ubuntu 10.04. myServer2 is running Ubuntu 8.04. myserver3 is running Windows XP. I was wonder if this is possible with any OS, not just mine.

Any suggestions or comments? I am not sure what phrase to use on the Google to research this.

Thanks

oznola 03-16-2010 05:47 PM

hi,

i am using portfoward on my debian server/router/firewall to reach a server behind it.

with the port forward on the firewall i have source ip=all, public port=1234 (but can be anything from 1024 to 65535), private port=80, private ip=<private.ip.of.server.behind.firewall>.
then one can reach the backend server with http://<yourdomain>.com:<public.port.number>

port forward for the second server ip=all, public port=1235 (but can be anything from 1024 to 65535), private port=80, private ip=<private.ip.of.second.server.behind.firewall>.
http://<yourdomain>.com:<second.public.port.number>

for example you can reach my backend server with http://alonzofretwell.com:1234 with public port set to 1234. my second backend server is at http://alonzofretwell.com:1235

the portforward method is the quick and dirty method. a more elegant solution is to configure a reverse proxy server on the gateway/server/router machine that you are behind.

imo squid configured as a reverse proxy server is the most elegant method but you can use apache.

here is a link to a thread that discusses setting up a reverse proxy server for this purpose. http://www.linuxquestions.org/questi...ptions-795388/

at present my goal is learning how to setup squid as reverse proxy server. so i am just learning to setup a revers proxy server.

tredegar 03-16-2010 07:22 PM

Quote:

I have several web servers, say myserver1, myserver2, and myserver3, behind a firewall that the higher-ups run.
Hmmmm. So, if there are "higher-ups", this isn't your network.
Quote:

They recently changed the firewall to block all ports except for the ones they want open.
It's their network, so they can administer it as they see appropriate.

But it seems you'd like to find a way to circumvent their settings.

The LQ rules do not allow us to help you do this, and with good reason.

I suggest you speak politely to the "higher-ups" to explain your problem, and why they should help you solve it, not us ;)


All times are GMT -5. The time now is 11:05 PM.