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
    • 最新
    • 标签
主页 / server / 问题 / 1023487
Accepted
Chathu
Chathu
Asked: 2020-07-01 07:20:15 +0800 CST2020-07-01 07:20:15 +0800 CST 2020-07-01 07:20:15 +0800 CST

从 18.04 升级 Ubuntu 20.04 后 CSF 无法启动

  • 772

今天我已经将我的 Ubuntu 18.04.04 VPS 服务器升级到了 Ubuntu 20.04。现在 CSF 未启动并显示以下错误并且未启动 CSF 服务。

*Error* The path to iptables is either not set or incorrect for IPTABLES [/sbin/ip6tables] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/URLGet.pm line 26.
Compilation failed in require at /usr/sbin/csf line 21.
BEGIN failed--compilation aborted at /usr/sbin/csf line 21.

当我测试 iptables 时,它显示以下结果。

root@server:~# sudo iptables -L -n -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination    

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination    

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination    
root@server:~# ip6tables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

如何解决这个 CSF iptable 问题?

ubuntu-20.04 csf
  • 1 1 个回答
  • 1198 Views

1 个回答

  • Voted
  1. Best Answer
    Flávio Pinho
    2020-07-23T01:20:36+08:002020-07-23T01:20:36+08:00

    您需要检查您的 iptables 和 ip6tables 在哪里。

    在终端上运行:

    whereis iptables
    

    和

    whereis ip6tables
    

    我的是:

    iptables 在哪里

    iptables:/usr/sbin/iptables /usr/share/iptables /usr/share/man/man8/iptables.8.gz

    和

    ip6tables 在哪里

    ip6tables:/usr/sbin/ip6tables /usr/share/man/man8/ip6tables.8.gz

    并更新文件 /etc/csf/csf.conf:

    二进制位置

    IPTABLES = "/usr/sbin/iptables"

    IPTABLES_SAVE = "/usr/sbin/iptables-save"

    IPTABLES_RESTORE = "/usr/sbin/iptables-restore"

    IP6TABLES = "/usr/sbin/ip6tables"

    IP6TABLES_SAVE = "/usr/sbin/ip6tables-save"

    IP6TABLES_RESTORE = "/usr/sbin/ip6tables-restore"

    并确保它适合你。

    • 2

相关问题

Sidebar

Stats

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

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve