Home > Linux, Red Hat / CentOS > Felsökning nätverk och WWW tjänst

Felsökning nätverk och WWW tjänst

October 19th, 2010 Leave a comment Go to comments
Verify it’s not a connection issue: Try to ping.
On the host when the interface is up do a ethtool eth0
If it is autoneg you should see a speed and duplex. Also the link at the bottom should say yes.
Do a tcpdump -i eth0 and make sure you can see traffic of any kind.
Then check if firewall is active with this command
service iptable status
The outpur should contain:
12   ACCEPT     tcp  —  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:80
15   ACCEPT     tcp  —  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:443
(12 and 15 are the sequence numbers and could be different than the numbers listed here)
Please check both boxes for /etc/sysconfig/iptables and see if both have these:
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 443 -j ACCEPT
If not add these lines and restart firewall:
service iptables restart
Troubleshoot the Apache daemon. Check if it is working with these commands:
netstat -anpt | grep http
Do you see anything like :
tcp        0      0 :::80                       :::*                        LISTEN      3717/httpd
tcp        0      0 :::443                      :::*                        LISTEN      3717/httpd
in the output?
If not please try to restart the daemon :
service httpd restart
If this fails please check the output from :
/var/log/messages
/var/log/httpd/access_log
/var/log/httpd/error_log

Categories: Linux, Red Hat / CentOS Tags:
  1. No comments yet.
  1. No trackbacks yet.