博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
22.3. xinetd.d
阅读量:6438 次
发布时间:2019-06-23

本文共 3357 字,大约阅读时间需要 11 分钟。

# yum -y install xinetd

22.3.1. tftpd

# yum install -y tftp-server tftp

/etc/xinetd.d/tftp

# vim /etc/xinetd.d/tftp# default: off# description: The tftp server serves files using the trivial file transfer \#       protocol.  The tftp protocol is often used to boot diskless \#       workstations, download configuration files to network-aware printers, \#       and to start the installation process for some operating systems.service tftp{        socket_type             = dgram        protocol                = udp        wait                    = yes        user                    = root        server                  = /usr/sbin/in.tftpd        server_args             = -s /tftpboot        disable                 = yes        per_source              = 11        cps                     = 100 2        flags                   = IPv4}

disable = yes 改为 disable = no

mkdir /tftpboot/etc/init.d/xinetd restart

22.3.1.1. atftp-server

# yum install -y atftp-server atftp

/etc/xinetd.d/tftp

# cat /etc/xinetd.d/tftp# default: off# description: The tftp server serves files using the trivial file transfer protocol. The tftp protocol is often used to boot diskless workstations, download configuration files to network-aware printers, and to start the installation process for some operating systems.service tftp{    disable         = no    socket_type     = dgram    protocol        = udp    wait            = yes    user            = root    server          = /usr/sbin/in.tftpd    server_args     = /tftpboot    per_source      = 11    cps             = 100 2    flags           = IPv4}

atftp-server 是一个可以不依赖xinetd的tftp服务器

 

22.3.2. rsync

# vim /etc/xinetd.d/rsync# default: off# description: The rsync server is a good addition to an ftp server, as it \#       allows crc checksumming etc.service rsync{        disable = no        socket_type     = stream        wait            = no        user            = root        server          = /usr/bin/rsync        server_args     = --daemon        log_on_failure  += USERID}

22.3.3. rshd

/etc/xinetd.d/rsh

# cat  /etc/xinetd.d/rsh# default: on# description: The rshd server is the server for the rcmd(3) routine and, \#	consequently, for the rsh(1) program.  The server provides \#	remote execution facilities with authentication based on \#	privileged port numbers from trusted hosts.service shell{	socket_type		= stream	wait			= no	user			= root	log_on_success		+= USERID	log_on_failure 		+= USERID	server			= /usr/sbin/in.rshd	disable			= no}

访问权限配置

# cat /etc/hosts.allow## hosts.allow	This file describes the names of the hosts which are#		allowed to use the local INET services, as decided#		by the '/usr/sbin/tcpd' server.#in.rshd : your.example.com 192.168.0.1
# cat /etc/hosts.deny## hosts.deny	This file describes the names of the hosts which are#		*not* allowed to use the local INET services, as decided#		by the '/usr/sbin/tcpd' server.## The portmap line is redundant, but it is left to remind you that# the new secure portmap uses hosts.deny and hosts.allow.  In particular# you should know that NFS uses portmap!all : all

访问主机设置

# cat ~/.rhostsyour.example.com user192.168.0.1	user

Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>comments powered by
Disqus

原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

你可能感兴趣的文章
2018年中国银行业十件大事,“Fintech深度融合,科技子公司遍地” ...
查看>>
Git SSH 连接phacility服务器
查看>>
【客户案例】智能驾驶行业如何上云?
查看>>
foreman源NO_PUBKEY 6F8600B9563278F6
查看>>
揭秘:蚂蚁金服bPaaS究竟是什么?
查看>>
mongo数据库单节点搭建
查看>>
WPF模糊和阴影效果
查看>>
增加关系型数据库驱动配置同步任务
查看>>
别用这种方式聊天,你都不知道自己是怎么聊死的
查看>>
中国香港地区 DDoS- botnet 态势分析
查看>>
另一个角度的架构师
查看>>
SparseArray<E>详解
查看>>
Eclipse-Java代码规范和质量检查插件-PMD
查看>>
阿里专家分享:企业级大数据轻量云实践
查看>>
阿里财报:云计算年度营收133亿,季度营收连续12个季度翻番
查看>>
人工智能化发展已经到了哪一步?
查看>>
php实现上传图片保存到数据库的方法
查看>>
安卓应用安全指南 5.4.3 通过 HTTPS 的通信 高级话题
查看>>
针对CMS中的tag标签理解
查看>>
AR头显要上天!欧洲太空总署或用HoloLens维修太空站
查看>>