linux centOS 端口问题
请问我这台服务器开放的端口 有没有危险存在的呀?端口不太能搞清楚干什么的#
# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address Stat
e PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LIST
EN 1266/rpcbind
tcp 0 0 0.0.0.0:80 0.0.0.0:* LIST
EN 1585/nginx
tcp 0 0 0.0.0.0:21 0.0.0.0:* LIST
EN 1854/pure-ftpd (SER
tcp 0 0 0.0.0.0:22 0.0.0.0:* LIST
EN 1607/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LIST
EN 1480/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LIST
EN 1815/master
tcp 0 0 0.0.0.0:5672 0.0.0.0:* LIST
EN 1864/qpidd
tcp 0 0 192.168.1.101:29161 0.0.0.0:* LIST
EN 3711/pure-ftpd (IDL
tcp 0 0 0.0.0.0:43849 0.0.0.0:* LIST
EN 1403/rpc.statd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LIST
EN 1732/mysqld
tcp 0 0 :::111 :::* LIST
EN 1266/rpcbind
tcp 0 0 :::21 :::* LIST
EN 1854/pure-ftpd (SER
tcp 0 0 :::22 :::* LIST
EN 1607/sshd
tcp 0 0 :::52150 :::* LIST
EN 1403/rpc.statd
tcp 0 0 ::1:631 :::* LIST
EN 1480/cupsd
tcp 0 0 ::1:25 :::* LIST
EN 1815/master
# netstat -updl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 *:57675 *:* 1379/avahi-daemon
udp 0 0 *:netviewdm3 *:* 1403/rpc.statd
udp 0 0 *:34785 *:* 1403/rpc.statd
udp 0 0 *:mdns *:* 1379/avahi-daemon
udp 0 0 *:sunrpc *:* 1266/rpcbind
udp 0 0 *:ipp *:* 1480/cupsd
udp 0 0 *:1017 *:* 1266/rpcbind
udp 0 0 192.168.1.101:ntp *:* 1615/ntpd
udp 0 0 localhost:ntp *:* 1615/ntpd
udp 0 0 *:ntp *:* 1615/ntpd
udp 0 0 *:60876 *:* 1403/rpc.statd
udp 0 0 *:sunrpc *:* 1266/rpcbind
udp 0 0 *:1017 *:* 1266/rpcbind
udp 0 0 fe80::21b:fcff:fe9e:c64b:ntp *:* 1615/ntpd
udp 0 0 localhost:ntp *:* 1615/ntpd
udp 0 0 *:ntp *:* 1615/ntpd 挨个搜索看看就行了,一般除了22 80 3306 或你自己需要的,其他的都关了就行了
可以装个iptables,vpser.net上有教程,自行查找参考
页:
[1]