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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changed apache listen port and now can't access from outside

Status
Not open for further replies.

annointed3

Technical User
May 8, 2007
2
US
all,

I have 2 apache servers on my network. WebServerA is configured to listen on port 80. WebServerB is configured to listen on port 81. These servers are behind a router that has a static ip address assigned to it. I have port forwarding setup on the router to forward all requests to port 80 - to web serverA and requests to port 81 to webserverB. I am able to access webserverA from internal and external networks. I am able to access webserverB only internally. Does anyone have any ideas why I cannot access webserverB from external networks? I have made the change in the httpd.conf file for webserverB to tell it to listen on port 81. I have also made the appropriate change on the router to foward requests for port 81 to webserverB's internal ip. I am attempting to access webserver b by using the hostname assigned to router following my port 81,


Thanks in advance for your help.
 
Yes I did. I also have done the following:

Verified that default gateway, subnet, etc. were same on both server A & B. I ran tcpdump to see if there was any traffic on server B, but nothing. I also have an application server running on port 8180 on serverB. I am able to access app from the outside. If I disable port forwarding for webserver A and set webserver B to listen on 80, I can also access apache on serverB if listening port is set at 80 from the outside. I have also tried other ports other than 81, and still no luck
 
if you do 'lsof -Pni' on serverB do you see that port 81 is being listened on?

Can you use 'nmap' from the other side of the firewall to ensure that the remote traffic can traverse the firewall to port 81 at that address?

Is there any NAT'ing to adjust?

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top