博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RH253读书笔记(2)-Lab 2 System Resource Access Controls
阅读量:6841 次
发布时间:2019-06-26

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

Lab 2 System Resource Access Controls

Goal: To become familiar with system resource access controls.

Sequence 1: Controlling access to certain hosts

Scenario: For security reasons, you have chosen to restrict your system so that it allows interactive logins only from machines on your local subnet. Some of the systems are only configured with telnet clients and the decision has been made that they will be allowed to use telnet for now, Access to certain xinetd managed services must also have access controls configured.

Deliverable: Use TCP wrappers and xinetd to control access to certain services.

Instructions:

1. Configure your system to fulfill the following criteria (you will need to work with a couple of other partners for testing). Note: you will need to install the telnet-server and openssh-server packages if you have not already done so, and start each of those services.

a. localhost.localdomain (127.0.0.1) should be allowed access to all TCPwrapped services.

• Add the following line to /etc/hosts.allow:

ALL: 127.0.0.1

• Add the following line to /etc/hosts.deny:

ALL: ALL

b. ssh should be available to every host in the local subnet, but no other networks.

• Add the following line to /etc/hosts.allow (it doesn't matter where):

in.telnetd, sshd: 192.168.0.

c. telnet should be available to exactly three of your neighbors, but no one else.

• Install and enable the telner server:

# yum -y install telnet-server

# chkconfig telnet on

• Add the following line to /etc/xinetd.d/telnet. Use the station numbers of three of your classmates for A, B and C:

only_from = 192.168.0.A 192.168.0.B 192.168.0.C

d. No xinetd managed services are accessible from the IP address range for the domain cracker.org. (How might you find the appropriate IP address range?)

• Try doing a reverse lookup on a couple of cracker.org hostnames:

# host server1.cracker.org

server1.cracker.org has address 192.168.1.254
# host station5.cracker.org
station5.cracker.org has address 192.168.1.5

It looks like cracker.org uses the 192.168.1.0/24 network. If you wanted to be even more sure, you could run host -l cracker.org to list every IP in the domain, but keep in mind that this will not work with most real-world domains because most DNS servers will not allow it.

• Add the following line to /etc/xinetd.conf:

no_access = 192.168.1.0/24

转载于:https://www.cnblogs.com/thlzhf/p/3477234.html

你可能感兴趣的文章
http 头信息详解
查看>>
sql语句遇到错误: The used SELECT statements have a different number of columns :
查看>>
openlayers 根据style设置显示级别并在字体加背景框
查看>>
sys_init
查看>>
array_map与array_column之间的关系
查看>>
xml 学习
查看>>
一次性验证码
查看>>
Mac设置信认任意来源应用
查看>>
基于matlab的退化图像复原(二)------逆滤波复原
查看>>
jquery中的each各种神奇遍历用法
查看>>
代码同步到树莓派
查看>>
obj-c 坑
查看>>
MySql数据库概念
查看>>
javascript中将整数添加千位符号
查看>>
软件测试艺术一:程序正确性证明
查看>>
面向对象课程第二单元作业总结
查看>>
Linux下运行C语言程序
查看>>
一句white-space:nowrap解决IE6,IE7下浮动元素不自动换行
查看>>
SQL Server中的小技巧(重复、替换、截取、去空格、去小数点后的位数)
查看>>
codevs 5963 [SDOI2017]树点染色
查看>>