网络端口,怎么关闭

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

网络端口,怎么关闭

#1

帖子 eexpress » 2008-03-29 21:13

☎ 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都没这内容。
● 鸣学
头像
sdjkx
帖子: 30
注册时间: 2008-03-27 22:30
来自: 深圳
联系:

#2

帖子 sdjkx » 2008-03-29 21:23

找到使用这个端口的进程,kill之
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2008-03-29 21:29

☎ 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@
● 鸣学
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#4

帖子 oneleaf » 2008-03-29 22:06

iptable drop
回复