分页: 1 / 1

网络端口,怎么关闭

发表于 : 2008-03-29 21:13
eexpress
☎ sudo nmap 192.168.18.0/24
....
Interesting ports on 192.168.18.2:
Not shown: 1713 closed ports
PORT STATE SERVICE
23/tcp open telnet
☎ sudo lsof -i :23
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
inetd 5378 root 4u IPv4 14000 TCP *:telnet (LISTEN)
☎ cat /etc/services|grep '\<23\>'
telnet 23/tcp

我找不到地方关闭23呢? 2个rc.local都没这内容。

发表于 : 2008-03-29 21:23
sdjkx
找到使用这个端口的进程,kill之

发表于 : 2008-03-29 21:29
eexpress
☎ l /etc/rc?.d/*openbsd*
/etc/rc0.d/K20openbsd-inetd@ /etc/rc3.d/K20openbsd-inetd@ /etc/rc6.d/K20openbsd-inetd@
/etc/rc1.d/K20openbsd-inetd@ /etc/rc4.d/K20openbsd-inetd@
/etc/rc2.d/K20openbsd-inetd@ /etc/rc5.d/K20openbsd-inetd@

发表于 : 2008-03-29 22:06
oneleaf
iptable drop