指定端口登录‘
类似于ftp
策略文件为/etc/hosts.allow和/etc/hosts.deny
2、应用策略
先检查hosts.allow,找到匹配则允许访问
否则再检查hosts.deny,找到则拒绝
两个文件都没有找到就允许
3、配置实验
实验1:
实验2:
拒绝172.16.13.41 ssh登录
原文已经写的很清楚了
一、配置网络源
#curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
二、安装相关的软件包
#yum install -y xrdp
#yum install -y tigervnc-server
三、配置文件
#vim /etc/xrdp/xrdp.ini
max_bpp=32
四、启动相关服务
#systemctl start xrdp
#systemctl enable xrdp //开机自启
五、防火墙设置
开放 3389 端口,或者关闭防火墙
#firewall-cmd --permanent --zone=public --add-port=3389/tcp
#firewall-cmd --reload
关闭防火墙
systemctl stop firewalld
systemctl disable firewalld 禁止服务开机自启
然后通过
连接