Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-31-2006, 05:54 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
Question Route Wan to Lan but Still have Wan answer requests.

Hi, I want to route from WAN apache sever to LAN apache server on windows xp box while is still answered by wan server runing linux Cent os v4.3 (i.e. RHEL4).

i'm running a server on Cent os V4.3. with a single public ip address: This server acts as a Router, Firewall, Web Server, Mail Server, anything else you can think of server - you get the idea.

Here's what i'm trying to do:

1. you go to and the cent os v4.3 server loads the Web Site on it's hard drive. This part works fine.

2. you go to and the server loads a web site from an apache Web Server running on a lan windows xp client machine. This part does not work. let me explain:

Internal Client Machine is running windows xp with apache and mysql and php. it's address is it gets it's address through the cent os v4.3 server which has two network cards one for public address (eth0 and one for lan address 192.168.x.x. which then assigns ip address to client machine.

Thank you so much for any help,


ps. sorry for bad english - trying to learn english and linux

Last edited by swilhelm; 07-31-2006 at 06:20 AM.
Old 07-31-2006, 02:39 PM   #2
LQ Newbie
Registered: Mar 2005
Distribution: Gentoo
Posts: 22

Rep: Reputation: 15
I also want to do something similar. I currently have a free domain pointing to my internet IP, lets say, and would like to make subomains of it or folders after it referring to other computers on my local network. For example: --> server --> box 1 --> box 2

or --> server --> box 1 --> box 2

My internal network is your typical private, routed network, like so:
                       Linksys Router
      |                |                 |                 |
(192.168.x.100)  (192.168.x.101)   (192.168.x.102)   (192.168.x.2)
    box1             box2              box3           server (DMZ)
Is this possible? My 'server' is currently running Trustix Secure Linux, and it is my DMZ host for my local network. I can install any server applications needed, be it DNS, routing, firewall, whatever.

Last edited by cs.cracker; 07-31-2006 at 02:53 PM.
Old 08-02-2006, 03:57 PM   #3
LQ Newbie
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Talking Solved!

I just changed the port that apache is listening on and forward it through the router. So you just type in if you want to go to internal web server or just if you want to go to main web server.

Server/firewall/web server port 80
Apache www port 1404

Thanks, For Your Help!

I'd rather be judged by 12 than carried by 6


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
httpd problems - blank web page shows up when access from outside of internet LAN wk4997 Linux - Networking 2 01-21-2006 10:59 AM
IPTABLES How to access to web server on gateway from LAN? kozaki Linux - Networking 4 08-26-2005 12:27 PM
Can access local LAN Webserver, but not Internet spaceuser Debian 11 08-23-2005 01:54 AM
cannot access web server from LAN puding Linux - Newbie 11 09-07-2004 01:06 AM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 03:38 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:44 AM.

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