I am running fedora 17, I am having problems with a couple network services, but not all of them. I can connect to them from another machine but they dont seem to be sending anything back fast enough and time out. Specifically this is happening with weinre and gitweb, but not with a couple php scripts i have hosted. All of these network programs work fine if I try to access them locally from the fedora box itself, it is only an issue in some of the programs over the network.
Here's some details, my linux version:
Linux 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug 29 18:46:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
SEL is in disabled mode
I have httpd installed:
Server version: Apache/2.2.22 (Unix)
Server built: Apr 30 2012 09:55:22
and am running virtualhosts on the following ports:
80/443
7777
4466
and a node server on port 8080, but i am leaving that out of this post... i just want to look at the apache servers. they run as the same user with the same permissions on their directories and logs.
Example working port 7777 httpd conf, this runs a custom php script (index.php)
Example not working from off the fedora machine, port 4466 httpd conf, this runs gitweb:
Machines:
192.168.0.199 - The fedora box
192.168.0.196 - My "client" box that cant connect
I am hitting the fedora box from another machine, and the port 7777 works fine. When i try to hit 4466, i get timeouts. However if i look at connections in netstat, i can see it is listening on 4466 and 7777 without any difference
Also if i use iftop i can see a connection is hitting the box, but it never completes and times out.
Even though bits are clearly exchanged, I do not get anything in the apache access or error logs for port 4466 for this request this. So i know it is getting to the machine, but not reaching the application level.
Here's some details, my linux version:
Linux 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug 29 18:46:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
SEL is in disabled mode
I have httpd installed:
Server version: Apache/2.2.22 (Unix)
Server built: Apr 30 2012 09:55:22
and am running virtualhosts on the following ports:
80/443
7777
4466
and a node server on port 8080, but i am leaving that out of this post... i just want to look at the apache servers. they run as the same user with the same permissions on their directories and logs.
Example working port 7777 httpd conf, this runs a custom php script (index.php)
Code:
Listen 7777
NameVirtualHost *:7777
<VirtualHost *:7777>
DirectoryIndex index.php
DocumentRoot /web/board
<Directory /web/board>
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /web/board/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
CustomLog /web/board/access.log combined
</VirtualHost>
Code:
Listen 4466
NameVirtualHost *:4466
<VirtualHost *:4466>
DocumentRoot /web/gitweb/website
DirectoryIndex gitweb.cgi
<Directory /web/gitweb/website>
Options -Indexes FollowSymLinks +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex gitweb.cgi
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /web/gitweb/logs/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
CustomLog /web/gitweb/logs/access.log combined
</VirtualHost>
192.168.0.199 - The fedora box
192.168.0.196 - My "client" box that cant connect
I am hitting the fedora box from another machine, and the port 7777 works fine. When i try to hit 4466, i get timeouts. However if i look at connections in netstat, i can see it is listening on 4466 and 7777 without any difference
Code:
netstat -an | grep tcp
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 192.168.0.199:8080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 52 192.168.0.199:22 192.168.0.196:53557 ESTABLISHED
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::4466 :::* LISTEN
tcp6 0 0 :::9876 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::631 :::* LISTEN
tcp6 0 0 :::443 :::* LISTEN
tcp6 0 0 :::7777 :::* LISTEN
Code:
fedora17 => 192.168.0.196 2.16kb 3.14kb 3.14kb (this is over 4466 from the remote machine)
<= 1.50kb 648b 648b