AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题

问题[tcp-wrappers](unix)

Martin Hope
Timothy Pulliam
Asked: 2019-03-01 10:41:10 +0800 CST

是否有检查 /etc/hosts.{allow,deny} 语法的工具?

  • 1

我正在寻找一个命令行工具来检查 tcp_wrapper 配置文件语法,以确保守护进程名称设置正确等,检查拼写或语法错误等。

configuration tcp-wrappers
  • 1 个回答
  • 743 Views
Martin Hope
user264359
Asked: 2018-05-04 04:32:39 +0800 CST

TCL:已安装 TCP Wrapper (tcp_wrappers.tcz) 但 /usr/local/bin/tcpd 文件不存在

  • 1

我正在通过tcp_wrappers.tcz在 Tiny 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

然后,我能够看到创建的两个文件。

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?

我怎样才能让它工作?

tinycore tcp-wrappers
  • 1 个回答
  • 182 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve