Fedora Linux Support Community & Resources Center
  #1  
Old 17th March 2007, 04:17 AM
warnockm Offline
Registered User
 
Join Date: Aug 2004
Posts: 38
apache problems on multi interface configuration

I have an interesting problem running apache. I currently have 2 NICs in a FC5 server, one on the internal network and one to the external network. Each NIC is on a different subnet. I'm able to connect to apache through the internal interface using it's ip address. When i try to connect through the external interface it does not work. My httpd.conf is set to "Listen 80". I tried changing it to 2 entries, one for each IP and port, but again, only the one interface worked. I assumed that something was wrong w/ the network firewall on the external side, so i ran tcpdump and tried to connect to both interfaces. I was surprised to see entries for the both interfaces when i connected to the appropriate ip. It appears the packets are making it to the server, but aren't making it into apache. I turned the system-config-network firewall off, and iptables --list has no entries in input, output or forwarding. At this point, i'm not sure what to try next. Any suggestions??
Reply With Quote
  #2  
Old 17th March 2007, 06:22 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 9,041
The command
netstat -lt | grep http
should return
tcp 0 0 *:http *:* LISTEN
--
If so then let's see your route table with ...
netstat -r
Reply With Quote
  #3  
Old 17th March 2007, 04:40 PM
warnockm Offline
Registered User
 
Join Date: Aug 2004
Posts: 38
netstat -r revealed 3 entries, 1 for *:http and 1 for each ipaddr:http. So that looks good. route table:

ipaddr1 * eth0
ipaddr2 * eth1
169.254.0.0 * eth1 ---- not sure why we have this ip on eth1
default ipadd_internal_router eth1

So basically we have the external IP on eth0, and internal ip on eth1, and the default route goes through the internal network. I don't think the default route should affect incoming connections. Right?
Reply With Quote
  #4  
Old 19th March 2007, 01:02 AM
warnockm Offline
Registered User
 
Join Date: Aug 2004
Posts: 38
I can't imagine how iptables or apache would be dropping the connection, but is there a way to log this? I tried using syslog to log dropped packets from iptables, but nothing showed up, probably because i have no rules in iptables. I also don't see any entries in error_log or access_log in apache. Is there a way to check other logs?
Reply With Quote
  #5  
Old 19th March 2007, 03:39 PM
warnockm Offline
Registered User
 
Join Date: Aug 2004
Posts: 38
Quote:
Originally Posted by warnockm
netstat -r revealed 3 entries, 1 for *:http and 1 for each ipaddr:http. So that looks good. route table:

ipaddr1 * eth0
ipaddr2 * eth1
169.254.0.0 * eth1 ---- not sure why we have this ip on eth1
default ipadd_internal_router eth1

So basically we have the external IP on eth0, and internal ip on eth1, and the default route goes through the internal network. I don't think the default route should affect incoming connections. Right?
Figured it out, the default route was through the internal network and the syn ack replies were blocked by the stateful firewall. thanks!
Reply With Quote
Reply

Tags
apache, configuration, interface, multi, problems

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The multi-OS, multi-boot GRUB guide (Windows included!) Firewing1 Guides & Solutions (No Questions) 35 14th July 2009 08:03 AM
Configuration problems for apache/router RSD Installation, Upgrades and Live Media 2 19th August 2006 01:17 PM
Fc4 Network Configuration- Apache And Dns Problems!? stevea86 Servers & Networking 1 29th March 2006 04:56 AM


Current GMT-time: 23:02 (Saturday, 20-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Vintage & Classic Car Collection, The Palace, Udaipur - Marina Bay Sands Singapore - Sofitel Xanadu Resort Hangzhou Travel Photos on Instagram - MacDonalds Aboboda Photos - IV Miglio Photos