When I run the command netstat -tln
I see the following output:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp6 0 0 :::8000 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::443 :::* LISTEN
I understand all the entries except 0.0.0.0:22
and 127.0.0.1:3306
; why are these entries there?
I am using iptables as my firewall tool and want to know if I need to disable this and how this entry showed up in the first place.
I know that 3306
is for mysql. But why are there specific IP addresses for SSH and Mysql but not for the other servers?