LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-16-2010, 04:09 PM   #1
mrotsliah
LQ Newbie
 
Registered: May 2009
Posts: 25

Rep: Reputation: 15
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
 
Old 03-16-2010, 04:47 PM   #2
oznola
Member
 
Registered: Mar 2010
Location: las vegas, nv
Distribution: debian etch, kubuntu, mac osx 10.51, vista
Posts: 65

Rep: Reputation: 15
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.

Last edited by oznola; 03-16-2010 at 05:01 PM.
 
Old 03-16-2010, 06:22 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,012

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
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
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to wget a random file from a website, then use FEH to view it. xmrkite Linux - Software 3 10-17-2006 01:26 PM
can't send mail with ISP but can receive and view website lostnconfused Linux - Networking 1 09-18-2006 08:02 PM
View Website Problem? TimmyWa Linux - Networking 1 02-25-2005 03:05 PM
View Website Problem? TimmyWa Red Hat 1 02-25-2005 02:14 PM
Can't View Website Through Windows (Apache 2.0, RH 9.0) TastyWheat Linux - Networking 5 08-22-2003 12:10 PM


All times are GMT -5. The time now is 05:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration