Hello,
I'm having this very strange behavior. Am I making a mistake ?
netstat and lsof show no port 80 open :
root@kali:~# netstat -anpe --inet
Connexions Internet actives (serveurs et établies)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat User Inode PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 9690 3159/sshd
tcp 0 64 192.168.25.141:22 192.168.25.1:1292 ESTABLISHED 0 9702 3177/1
udp 0 0 0.0.0.0:68 0.0.0.0:* 0 6569 2075/dhclient
udp 0 0 0.0.0.0:18569 0.0.0.0:* 0 6539 2075/dhclient
root@kali:~# lsof -i -n
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dhclient 2075 root 5u IPv4 6569 0t0 UDP *:bootpc
dhclient 2075 root 20u IPv4 6539 0t0 UDP *:18569
dhclient 2075 root 21u IPv6 6540 0t0 UDP *:62285
sshd 3159 root 3u IPv4 9690 0t0 TCP *:ssh (LISTEN)
sshd 3159 root 4u IPv6 9692 0t0 TCP *:ssh (LISTEN)
sshd 3177 root 3u IPv4 9702 0t0 TCP 192.168.25.141:ssh->192.168.25.1:1292 (ESTABLISHED)
apache2 3300 root 4u IPv6 11219 0t0 TCP *:http (LISTEN)
apache2 3318 www-data 4u IPv6 11219 0t0 TCP *:http (LISTEN)
apache2 3320 www-data 4u IPv6 11219 0t0 TCP *:http (LISTEN)
apache2 3321 www-data 4u IPv6 11219 0t0 TCP *:http (LISTEN)
apache2 3322 www-data 4u IPv6 11219 0t0 TCP *:http (LISTEN)
apache2 3323 www-data 4u IPv6 11219 0t0 TCP *:http (LISTEN)
apache2 3330 www-data 4u IPv6 11219 0t0 TCP *:http (LISTEN)
(as you can see, it's open in IPv6)
But connection from a browser on the host machine shows a page, and telnet localhost works :
root@kali:~# telnet localhost 80
Trying ::1...
Connected to localhost.
Escape character is '^]'.
get
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>get to /index.html not supported.<br />
</p>
<hr>
<address>Apache/2.2.22 (Debian) Server at 127.0.1.1 Port 80</address>
</body></html>
Connection closed by foreign host.
Before rebooting, lsof showed it, but netstat didn't.
Any idea?
Thank you for any answer!