由 Dragonsoar 在 08-19-2004 14:08 发表:
看看我端口到底开没开?
我的/etc/services内容很少:
swat 901/tcp
ftp 21/tcp
syslog 514/udp
smtp 25/tcp
pop3 110/tcp
imap2 143/tcp
但我用nmap扫自己,
nmap localhost
出现:
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
139/tcp open netbios-ssn
143/tcp open imap
445/tcp open microsoft-ds
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql
6000/tcp open X11
那些在我的/etc/services里没有的但nmap扫出来的的端口到底开没开?
如果开了,那/etc/services岂不没用了?
由 Snoopy 在 08-19-2004 14:18 发表:
对,/etc/services没用
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 lylzgq 在 08-19-2004 14:39 发表:
你的services 根本没有启动吧。
linux 学习中!!!!!
由 Dragonsoar 在 08-19-2004 16:39 发表:
> quote:
>
> * * *
>
> 最初由 lylzgq 发表
>
> 你的services 根本没有启动吧。
>
> * * *
根据什么判断呢?thx.
由 Snoopy 在 08-19-2004 19:13 发表:
你想在/etc/services里将服务给#掉是行不通的,可能是老些linux版本可以吧,这方法是存在的,可我没实现过,因为我用的所有linux都不能/etc/services里添加#将服务给禁止掉
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 txkss 在 08-19-2004 23:51 发表:
那该如何关闭掉相应的端口呢?
只有通过防火墙吗?
由 Snoopy 在 08-19-2004 23:54 发表:
关闭对应的服务,防火墙的话同样可以实现,但会占用资源
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the da