LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-10-2023, 06:19 PM   #1
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
sshd and libwrap


All --

I just now finished installing an Alma 9 Appliance for a Customer.

Just a few minutes after we booted we discovered that we were being clobbered by script kiddies trying to ssh into the Box from 'all over'

I had already installed 'the usual' /etc/hosts.allow file so I was surprised to say the least and it was a scramble to set up an IP Addr white-list via a remote ssh login without locking myself out.

I found out after a little research that libwrap has been depricated as of openssh version 6.7

see: Fedora Project > Changes/Deprecate TCP wrappers

IMO, tcpwrappers might be old but it certainly provided a simple and safe way to keep the script kiddies at bay without locking myself out of a remote machine.

I also see that libwrap is no longer linked to openssh-9.2p1 in Slackware 15.0

Does anyone know of a good online discussion on why libwrap is no longer linked to openssh ?

What's wrong with tcpwrappers ?

Thanks

-- kjh

Last edited by kjhambrick; 02-10-2023 at 06:21 PM.
 
Old 02-10-2023, 08:01 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
A thread in this forum a few years back
 
1 members found this post helpful.
Old 02-11-2023, 01:55 AM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,791

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Quote:
Originally Posted by kjhambrick View Post
I also see that libwrap is no longer linked to openssh-9.2p1 in Slackware 15.0

Does anyone know of a good online discussion on why libwrap is no longer linked to openssh ?
libwrap is still linked to openssh. Look at openssh.SlackBuild and openssh.tcp_wrappers.diff.gz. Or look at the binary:
Code:
$ strings /usr/sbin/sshd|grep '/etc/hosts.[ad]'
/etc/hosts.allow
/etc/hosts.deny

Last edited by Petri Kaukasoina; 02-11-2023 at 04:08 AM.
 
1 members found this post helpful.
Old 02-11-2023, 04:16 AM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by Petri Kaukasoina View Post
libwrap is still linked to openssh. Look at openssh.SlackBuild and openssh.tcp_wrappers.diff.gz. Or look at the binary:
Code:
$ strings /usr/sbin/sshd|grep '/etc/hosts.[ad]'
/etc/hosts.allow
/etc/hosts.deny
Petri Kaukasoina --

Yes, but I based my conclusion on this as suggested in one of the .docs I found:
Code:
# ldd /usr/bin/sshd |grep libwrap

<<no output>>
Thanks !

-- kjh

p.s. after reading the posts in allend's link I see that libwrap is provided as /usr/lib64/libwrap.a and as you said, it IS statically linked in /usr/sbin/sshd ( whew ! I love my /etc/hosts.allow files )

Last edited by kjhambrick; 02-11-2023 at 04:50 AM. Reason: p.s.
 
Old 02-11-2023, 04:30 AM   #5
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Original Poster
Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by allend View Post
A thread in this forum a few years back
Thanks allend !

I now see that tcp_wrappers-7.6-x86_64-6 on Slackware64 15.0 provides only a static library ( usr/lib64/libwrap.a )

That explains why ldd finds no references to libwrap.

I've got some reading to do either way

-- kjh

p.s. I REALLY appreciate Pat's decision to keep tcp_wrappers alive in Slackware !

Last edited by kjhambrick; 02-11-2023 at 04:39 AM. Reason: p.s.
 
2 members found this post helpful.
  


Reply

Tags
libwrap, openssh, tcpwrappers



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
To libwrap or not to libwrap? linux4evr5581 Linux - Newbie 2 12-17-2016 12:12 PM
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
Libwrap aragorn Linux - General 1 06-08-2006 06:19 AM
xinetd, tcpd and libwrap on RH9 and 7.2 haylingchrist Linux - Security 3 08-14-2003 04:42 PM
xinetd + libwrap mysql Stanton Linux - Security 1 05-02-2001 06:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration