我已经配置了xinetd,我想远程访问echo服务。关键是,当 y 做:
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
顺便谢谢!干杯!
我发现了错误:是我一直在使用错误的IP。谢谢大家