Smart questions
Smart answers
Smart people
Join Tek-Tips Forums

Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

illdill (IS/IT--Management) (OP)
14 Jul 05 1:27
I have a win2003 and a Redhat linux ES box, but ony one WAN IP address. This is not a multiple host issue, I drudged through that months ago. What I need to do is somehow have the windows box ( :80 ) forward dns requests to the Linux box ( :81 ) for certain domain names. Anyone got any ideas?

It would be nice also if the :81 didn't show up in the address bar.

Belive me, I would much rather just have another WAN IP, but in this case, it is just not possible.
jpm121 (MIS)
14 Jul 05 1:37
Confused - what does the :80 and :81 mean?  Are we talking port numbers, and if so, did you mean to say DNS, or HTTP?
illdill (IS/IT--Management) (OP)
14 Jul 05 1:42
Not sure...
illdill (IS/IT--Management) (OP)
14 Jul 05 1:43
Yes, :80 and :81 are the different server ports, not sure about the dns / http
illdill (IS/IT--Management) (OP)
14 Jul 05 1:46
Right now, (or whoever) forwards it to my WAN IP, from there I need to redirect it to the right server.
peeky1323 (MIS)
15 Jul 05 4:34
So what you are saying is you have http (port80) requests going to your WAN address form the internet (Windows Box), and you want the request to actually end up using a web server running on port 81 on the Linux box?  

What you do have between your LAN and the WAN? Is the Windows Box sitting directly on the internet or is there a Router in between?


illdill (IS/IT--Management) (OP)
15 Jul 05 4:53
Yes, Cable modem - Router configured to allow requests for http at ports 80 and 81
pinkpanther56 (TechnicalUser)
15 Jul 05 6:40
You might be able to use host headers to redirect certain requests to the Linux box from your Windows box.;en-us;190008
peeky1323 (MIS)
15 Jul 05 6:44
Does your router do port forwarding? If it doesn, you could have any request to hit the router forweard port 80 or 81 to the Linux box? Then any request that hits the port you forwarded will be passed throught the router to the chosen box.
pinkpanther56 (TechnicalUser)
15 Jul 05 6:44
Or if your router supports virtual servers any traffic on port 81 can be redirected to the Linux box, but :81 would have to show in the address bar.
illdill (IS/IT--Management) (OP)
15 Jul 05 23:00
I don't beleive my router supports virtual servers, and I havn't had any luck using host headers...
illdill (IS/IT--Management) (OP)
15 Jul 05 23:02
Yes, My router supports port forwarding, but the settings are very general, not speific enough to destinguish what goes where, only that port 80 and 81 are accesible to http requests.

It wants an IP, a port, and a service type (http), thats it...
illdill (IS/IT--Management) (OP)
15 Jul 05 23:08
My router is a netgear hardwired being fed by a netgear wireless G being fed by the cable modem.

The wireless G is simply acting as a switch with wireless access...

There are no connection issues here, both and will serve...
illdill (IS/IT--Management) (OP)
16 Jul 05 22:04
So... sends the request to my IP address, my router allows http on both ports :80 & :81, http requests automatiacly go to port :80 so my windows machine gets the request. From there I need to push the request to the linux machine running and configured to serve on port :81.
illdill (IS/IT--Management) (OP)
17 Jul 05 21:20
I found the answer.

It required be to change ports for the two servers so that the linux box served port :80

Then using <virtual host> tags

        UseCanonicalName off
        DocumentRoot /usr/local/www/data/

I was able to pass the request on to the windows box. Unfortunately it shows the :81 at the end of the url, but it is no longer required to get to the site. Hope this will help others with the same dilemma. Thanks for all your suggestions!
illdill (IS/IT--Management) (OP)
17 Jul 05 21:22
Sorry, that tag should look like this:

        UseCanonicalName off
        Redirect /
illdill (IS/IT--Management) (OP)
17 Jul 05 22:23
Any sites on the windows box with links to say will not resolve to because only the default will get forwarded to :81. What this means is that I cannot include the domain name in any links unless I also include the port :81. This realy isn't a big deal from this point on, but as far as all the links that do reference the domain, I had to go through and manualy change either by removing the domain reference in the link (defaults to current domain), or adding the :81 to the links for every site I am hosting. This wasn't too bad because FrontPage has a hyperlink utility that lets me change several links at once.

Also, the :81 does end up included in the address bar. And in order to get to any other page besides the default index, I would have to type in the :81 before the rest of the location.

I am wondering if I can use the all switch (*.*) in the Virtual Host header?


      UseCanonicalName off
      Redirect /*.*
illdill (IS/IT--Management) (OP)
17 Jul 05 22:28
So, as far as I have gotten, there is no workaround for this so far. What I have come up with is just not good enough for a dependable system. I still say get another WAN IP, but for me, this is what I have to suffer with until I come up with something better, or afford the expensive NAT boxes that they sell to put in front of your network and resolve just about anything but string theory...

Peace and Good Luck!


Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close