LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-22-2003, 12:43 PM   #1
Xiat
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
Gateway problem


I've setup a box running an Apache server for web pages. I've gotten the box and server up as well as MySQL and PHP.

The box is setup on an intranet with a linux box acting as a gateway for all traffic. I've setup the gateway to forward all port 80 requests to the webserver box I've setup.

This allows everyone out on the internet to see the server but I can't see it from inside. I don't want to have use the local IP address to see it because that limits what I can install and do with the web (phpBB, etc.)

How do I make it so the machines on the intranet can see the server through the same gateway as everyone else sees it?
 
Old 08-22-2003, 12:50 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The easiest way is to create a hosts entry on each pc in your lan that pionts you your internal ip address. eg - put this in the host files:
192.168.1.1 www.yourhost.com

Assuming that 192.168.1.1 is the internal IP of the server and your domain is www.yourhost.com
 
Old 08-22-2003, 12:57 PM   #3
Xiat
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Well therein lies he problem.

The web page is currently hosted externally. My intent with this was to change the external site to forward all requests to the gateway IP address and run the web page through here. So there is no domain associated with the internal server. All I have is the IP address of the gateway that is forwarding port 80 requests.

So basically the hosts would have to define the external IP to be the internal IP on the network computers. Is that possible?

Last edited by Xiat; 08-22-2003 at 01:22 PM.
 
Old 08-22-2003, 03:19 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
No it isn;t. If you only want to use the external ip with no hostnames then you will need to check if your router/firewall supports loopback natting.
 
  


Reply



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
Odd problem: Gateway unreachable after certain amount of time (Win XP Gateway) SocialEngineer Linux - Networking 2 08-13-2004 12:54 AM
Gateway Problem rhonneil Linux - Networking 3 09-10-2003 01:32 PM
problem with gateway modem ykees Linux - Hardware 1 03-14-2003 05:10 PM
2 nic gateway problem d-rez Linux - Networking 4 06-20-2002 05:40 AM
possibly a gateway problem? websurfe Linux - Networking 1 08-17-2001 06:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration