Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
I have a problem with iptables that I can't seem to figure out a way around. Here's my situation:
I have two T1's coming into a Cisco 2620 router and a RedHat 7.3 iptables firewall with three NIC's after that.
eth0 is the ethernet ip of the router (internet IP)
eth1 is my internal
eth2 is my DMZThe problem is I am going to have two web servers in the DMZ on listening on port 80 and the other listening on port 8080. How can I make the requests for example www.abc.com come in on port 80 and www.123.com come in on port 8080. I know how I can setup my iptable rules to redirect port 80 to on IP in DMZ ip and port 8080 to a different IP in the DMZ. But, how do I get the request to point to a specific port? I'm guessing its in DNS but I don't know how or where to set that. BTW my DNS is WinNT 4.0.
Any help will be greatly appreciated... I in a bind!
Thank You,
Rich

DNS won't help ya. It is strictly a hostname/IP resolution. You'll have to do what you need through your firewall or web server. It sounds like you already know how to do it.
Another question: Are you having issues with your web server listening on a specific port or are you wondering how to get someone coming in on port 80 redirected to port 8080?

I have one web server listening on 80 (www.abc.com) and one setup to listen on port 8080 (www.123.com).
What I don't know how to do is when someone types www.123.com in their browser how can I get my firewall to forward it to the DMZ web server listening on port 8080. When I do it everything goes to the default port 80 web server.
I can redirect ports in the firewall but the request coming into the firewall is coming in on the standard port 80. If I type the hard IP:8080 it works, but not with relying on DNS.
Thank you!

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |