| [root@dlp ~]# yum -y install tcp_wrappers |
| [root@dlp ~]# ldd /usr/sbin/sshd | grep wrap |
| libwrap.so.0 => /lib64/libwrap.so.0 (0x00007f01b4e2a000) |
| libwrap が含まれているので TCP Wrapper でアクセス制御可 |
| [root@dlp ~]# vi /etc/hosts.deny |
| sshd: ALL |
| [root@dlp ~]# vi /etc/hosts.allow |
| sshd: 10.0.0. |
| [root@dlp ~]# vi /etc/hosts.deny |
| vsftpd: ALL |
| [root@dlp ~]# vi /etc/hosts.allow |
| vsftpd: host.example.domain |
| [root@dlp ~]# vi /etc/hosts.deny |
| ALL: ALL |
| [root@dlp ~]# vi /etc/hosts.allow |
| ALL: .example.domain 10.0.1. |