TCL:TCPラッパー(tcp_wrappers.tcz)がインストールされましたが、/usr/local/bin/tcpdファイルが存在しません。

TCL:TCPラッパー(tcp_wrappers.tcz)がインストールされましたが、/usr/local/bin/tcpdファイルが存在しません。

tcp_wrappers.tczTiny Core Linux(TCL)にホストベースのファイアウォールをインストールして学習しています。

最初は、予想される次のファイルは存在しません。

/etc/hosts.allow
/etc/hosts.deny

今後

tc@linux:/etc$ date; ls -lh /etc/host*
Thu May  3 20:20:51 UTC 2018
-rw-rw-r--    1 root     staff         26 Jul  4  2016 /etc/host.conf
-rw-r--r--    1 root     root           4 May  3 20:18 /etc/hostname
-rw-r--r--    1 root     root         290 May  3 20:18 /etc/hosts

インストールする

tc@linux:/etc$ tce-load -wi tcp_wrappers.tcz
Downloading: tcp_wrappers.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
tcp_wrappers.tcz     100% |****************************************************************************************************************************************| 40960   0:00:00 ETA
tcp_wrappers.tcz: OK

後ろに

tc@linux:/etc$ date; ls -lh /etc/host*
Thu May  3 20:21:14 UTC 2018
-rw-rw-r--    1 root     staff         26 Jul  4  2016 /etc/host.conf
-rw-r--r--    1 root     root           4 May  3 20:18 /etc/hostname
-rw-r--r--    1 root     root         290 May  3 20:18 /etc/hosts
-rw-r--r--    1 root     root         121 Nov 27  2008 /etc/hosts.allow
-rw-r--r--    1 root     root         119 Nov 27  2008 /etc/hosts.deny

これにより、生成された2つのファイルを表示できます。

tc@linux:/etc$ cat /etc/hosts.allow
# hosts.allow   This file describes the names of the hosts which are allowed access by the '/usr/local/bin/tcpd' server.

tc@linux:/etc$ cat /etc/hosts.deny
# hosts.deny   This file describes the names of the hosts which are denied access by the '/usr/local/bin/tcpd' server.

残念ながら/usr/local/bin/tcpd、当時はありませんでした。

tc@linux:/etc$ ls -lh /usr/local/bin/tcpd
ls: /usr/local/bin/tcpd: No such file or directory

明らかに、TCP Wrapperはそれなしでは動作しません。tcpdそうですか?

どのように機能させますか?

ベストアンサー1

明らかに、sshdとncはTCLのlibwrap.aライブラリに対してコンパイルされません。私/usr/sbin/sshdはCentOSでテストしましたが、動作しますが、TCLでは動作しません。

[root@CentOS ~]# whereis sshd
sshd: /usr/sbin/sshd /usr/share/man/man8/sshd.8.gz
[root@CentOS ~]#

[root@CentOS ~]# ldd /usr/sbin/sshd | grep libwrap
        libwrap.so.0 => /lib64/libwrap.so.0 (0x00007f506b6e2000)
[root@CentOS ~]# 

http://forum.tinycorelinux.net/index.php/topic,21917.msg137160.html#msg137160

おすすめ記事