How to enable user name lookup on TCP Wrapper?
Hello !
I would like to ask people in this community regarding to TCP Wrapper.
down vote
favorite
I would like to ask people in this community regarding to TCP Wrapper.
My OS environment is below.
[root@server1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
[root@server1 ~]# uname -a
Linux server1.ywlocal.net 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
What I want to do is :
Restrict access from user2new@192.168.11.230 on sshd service. Access is made to server 192.168.11.110.
My TCP Wrapper definition (hosts.deny) on 192.168.11.110
#
hosts.deny This file contains access rules which are used to
deny connections to network services that either use
the tcp_wrappers library or that have been
started through a tcp_wrappers-enabled xinetd.
#
The rules in this file can also be set up in
/etc/hosts.allow with a 'deny' option instead.
#
See 'man 5 hosts_options' and 'man 5 hosts_access'
for information on rule syntax.
See 'man tcpd' for information on tcp_wrappers
#
sshd,vsftpd: user2new@192.168.11.230: RFC931: spawn /usr/bin/logger "Access has been made from %a by %u"
Result is :
Access was no restricted for user2new@192.168.11.230.
Is there any configuration change I need to make in order to activate the username lookup?
Thanks,
Yu Watanabe
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
