Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

routing problem on apache server with 2 interface

Status
Not open for further replies.

yuenlok

Technical User
Nov 20, 2002
18
0
0
CA
I've been fighting for this problem for a long time, any help would be appreciated
I have an Apache server has 2 interfaces qfe0 and hme0 connected to the front end and back end network respectively.

Front end interface: qfe0
IP: 142.124.187.78
network: 142.124.187.64
netmask: 255.255.255.224
broadcast: 142.124.187.95
router IP of frontend network: 142.124.187.65

Back end interface: hme0
IP: 142.124.187.12
network: 142.124.187.0
netmask: 255.255.255.192
broadcast: 142.124.187.63
router IP of backend network: 142.124.187.1

What happen is I can't do HTTP request from any machine in the backend network to the apache server's front end IP. (in the DNS, the server's domain name is configured to its front end IP, this makes sure all the HTTP request with the domain name will come from the front end)

I can telnet to the front end IP port 80, but wget always times out , and there's no any message logged in the apache access log.
wget stgznc01-01
--16:29:26-- => `index.html'
Resolving stgznc01-01... done.
Connecting to stgznc01-01[142.124.187.78]:80... connected.
HTTP request sent, awaiting response...
Read error (Connection timed out) in headers.
Retrying.

I snoop the apache server's interface and found the HTTP request actually come from the front end interface but the reply is sent to the back end interface. I assume this is because apache sees the client network is directly connected to it's backend interface and so it replis by back end. Is it caused the problem?

Is there any way I can force the apache server to reply the request with the same front end interface?

Thanks
 
can you give me a [tt]traceroute[/tt] from the back-end to the front-end interface .78?

What is your solaris version?

 
Here's the output of traceroute and telnet from a Unix box in the backend network, both works fine.
The IP of this backend box is 142.124.187.39, all the machines are in Solaris 8

traceroute 142.124.187.78
traceroute to 142.124.187.78 (142.124.187.78), 30 hops max, 40 byte packets
1 142.124.187.1 (142.124.187.1) 0.812 ms 0.600 ms 0.499 ms
2 stgznc01-01.X.X.X.ca (142.124.187.78) 0.772 ms 0.699 ms 0.698 ms

telnet 142.124.187.78 80
Trying 142.124.187.78...
Connected to 142.124.187.78.
Escape character is '^]'.
^]
telnet> quit
Connection closed.

Thanks a lot
 
Finally found out it's nothing about the apache configuration or routing configuration. It's because there are some ads in the site's home page are actually served by other company outside the firewall, so it needs to specified a http proxy when trying to load the index page (I knew a http proxy is requried to access the internet, but I thought to load a page in a local apache server shouldn't go through any proxy , well I'm wrong...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top