手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux TCP_WRAPPERS 简单配置

[日期:2010-11-06] 来源:Linux社区  作者:wfliving [字体:大 中 小]

两个配置文件:  /etc/hosts.allow   /etc/hosts.deny

1. 如果权限冲突,默认系统是从allow ,deny 文件检查
2.EXCEPT 表示除了什么之外的主机
3. 一般出于安全考虑,可以将deny 文件中某个服务设置成ALL,然后在allow文件中添加权限

例如:
vi /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!

sshd: 192.168.1.100 EXCEPT 192.168.1.116
in.telnetd : 192.168.1.0/255.255.255.0

linux
相关资讯       Linux服务器 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款