Bonjour à tous,
j'ai un problème bizarre sur mon firewall :
il me semble que j'ai des connexions "fantomes" qui ne veulent pas se fermer et qui n'appartiennent à aucun processus...
en fait si: elles ont été initées par apache et restent bloquées sur le port 80 alors que apache est mort depuis longtemps, mais cette connexion fantome squatte le port 80 et empèche apache de redémarrer :
root@zerty:/home/diwann>tail /var/log/apache/error.log
[Sat Jan 8 22:47:45 2005] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Sat Jan 8 22:50:59 2005] [crit] (98)Address already in use: make_sock: could not bind to port 80
[Sat Jan 8 23:13:24 2005] [crit] (98)Address already in use: make_sock: could not bind to port 80
root@zerty:/home/diwann>ps aux |grep apa
root 5419 0.0 1.1 1528 448 pts/0 S 23:45 0:00 grep apa
root@zerty:/home/diwann>ps aux |grep http
root 5421 0.0 1.1 1528 448 pts/0 S 23:45 0:00 grep http
et c vrai que nmap localhost me trouve le port 80 ouvert !
alors forcément, j'ai voulut faire le malin avec des tests netstats et des tests lsof et voila ce que ca donne :
root@zerty:/home/diwann>netstat -ant
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 192.168.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:11000 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp 149 0 82.67.109.XXX:80 82.67.89.145:3909 ESTABLISHED <- ca c louche :??:
tcp 158 0 82.67.109.XXX:80 65.54.188.85:61398 CLOSE_WAIT
tcp 150 0 82.67.109.XXX:80 82.67.213.142:3830 CLOSE_WAIT
tcp 0 0 192.168.0.1:22 192.168.0.4:33365 ESTABLISHED
tcp 150 0 82.67.109.XXX:80 82.67.1.105:4666 CLOSE_WAIT
tcp 12 0 192.168.0.1:80 192.168.0.4:33420 CLOSE_WAIT
tcp 405 0 192.168.0.1:80 192.168.0.4:33364 CLOSE_WAIT
tcp 54 0 192.168.0.1:80 192.168.0.4:33316 CLOSE_WAIT
tcp 154 0 82.67.109.XXX:80 207.46.98.65:31941 CLOSE_WAIT
tcp 15 0 192.168.0.1:80 192.168.0.4:33367 CLOSE_WAIT
tcp 158 0 82.67.109.XXX:80 65.54.188.85:10652 CLOSE_WAIT
tcp 154 0 82.67.109.XXX:80 207.46.98.65:42846 CLOSE_WAIT
tcp 195 0 82.67.109.XXX:80 68.142.251.146:53882 CLOSE_WAIT
tcp 154 0 82.67.109.XXX:80 207.46.98.65:35647 CLOSE_WAIT
tcp 158 0 82.67.109.XXX:80 65.54.188.85:14482 CLOSE_WAIT
tcp 405 0 192.168.0.1:80 192.168.0.4:33313 CLOSE_WAIT
tcp 32 0 192.168.0.1:80 192.168.0.4:33411 CLOSE_WAIT
tcp 405 0 192.168.0.1:80 192.168.0.4:33355 CLOSE_WAIT
tcp 154 0 82.67.109.XXX:80 207.46.98.65:49458 CLOSE_WAIT
tcp 405 0 192.168.0.1:80 192.168.0.4:33315 CLOSE_WAIT
tcp 0 2560 192.168.0.1:22 192.168.0.4:33482 ESTABLISHED
tcp 150 0 82.67.109.XXX:80 82.65.59.137:1714 CLOSE_WAIT
tcp 154 0 82.67.109.XXX:80 207.46.98.65:29411 CLOSE_WAIT
Houla !
déja yen a plein en cours de fermeture mais qui partent pas !
en plus ya ca :
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
qui confirme que qqun "écoute" sur le port 80
bon et lsof il donne quoi ?
rien de bizarre, c bizarre ...
dernier ptit test et après j'arrive à court de ressource :
root@zerty:/home/diwann>fuser 80/tcp
80/tcp: 5828
root@zerty:/home/diwann>ps aux |grep 5828
root 5564 0.0 1.1 1528 448 pts/0 S 23:57 0:00 grep 5828
qu'est ce que je peut faire maintenant ??
apparemment j'ai l'ip de l'opportun vu que la connexion est "ESTABLISHED" mais je sais pas trop comment le virer ?
faut rebooter ?