我已经配置了 xinetd,我想远程访问 echo 服务。关键是,当你这样做时:
nmap localhost
它出现
PORT STATE SERVICE
7/tcp open echo
但是当我做
nmap [远程IP]
它没有出现
> PORT STATE SERVICE
21/tcp open ftp
23/tcp open telnet
80/tcp open http
我不知道为什么
这是 /etc/xinetd.d/echo
> service echo
{
disable = no
type = INTERNAL
id = echo-stream
socket_type = stream
protocol = tcp
user = root
wait = no
}
这是/etc/xinetd.conf
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults {
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
}
includedir /etc/xinetd.d
顺便谢谢!干杯!