1

I built openssh 7.5p1 on a CentOS 7.3 system, after removing the originally installed package openssh which is (currently) 6.6.1p1.

All seemed good until I found out that openssh removed support for the tcp_wrappers/libwrap at version 6.7.

I guess this would mean that my old / trusted ACL via /etc/hosts.allow and /hosts/deny is now useless? (I have no way to test at this moment, unless using a spoofing tool).

If this holds true, what would be a replacement for this until now so convenient and easy way to control access for a public ssh server?

1
  • 2
    The host based firewall.
    – user143703
    Aug 18, 2017 at 22:24

1 Answer 1

3

I built openssh 7.5p1 on a CentOS 7.3 system, after removing the originally installed package openssh which is (currently) 6.6.1p1.

The current OpenSSH is 7.4 in RHEL 7.4. If it is not yet in CentOS, just wait some more days.

All seemed good until I found out that openssh removed support for the tcp_wrappers/libwrap at version 6.7.

You can build OpenSSH with the support for tcp_wrappers if you wish. There is a patch that adds a support for that:

http://lists.mindrot.org/pipermail/openssh-unix-dev/2017-July/036131.html

I guess this would mean that my old / trusted ACL via /etc/hosts.allow and /hosts/deny is now useless? (I have no way to test at this moment, unless using a spoofing tool).

Or you can use tcpd to start your sshd and do the filtering with instanced sshd service as described in the following mail:

https://lists.fedoraproject.org/archives/list/[email protected]/message/UOAUI4TC6PQVHRJ2ONQ2N3IKHR4577VH/

If this holds true, what would be a replacement for this until now so convenient and easy way to control access for a public ssh server?

Yes, it is true, but for reasonable filtering, you should use firewall. The tcp_wrappers were a thing 20 years ago, when there were quite much no firewalls in linux (and unix).

1
  • Thanks for the hints. I checked a RHEL 7.4 system and effectively, it comes with openssh 7.4 - and it supports tcp_wrappers! So, no action seems to be required! Aug 24, 2017 at 14:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .