相关疑难解决方法(0)

iptables 没有按名称匹配的链目标

大家好,进入我的 Ubuntu 服务器,我想阻止所有人的 ftp 端口,但我在启动命令时:

iptables -A INPUT -p tcp --destination-port 21 -j DROP
Run Code Online (Sandbox Code Playgroud)

返回此错误:iptables: No chain/target/match by that name

命令行:

root@webanddesignsrl-one:/# iptables -A input -p tcp --destination-port 21 -j DROP
iptables: No chain/target/match by that name.
Run Code Online (Sandbox Code Playgroud)

我看到很多关于它的问题:

iptables:没有该名称的链/目标/匹配
https://serverfault.com/questions/422103/iptables-no-chain-target-match-by-that-name iptables 错误:没有该名称的
链/目标/匹配?

没有人帮助我。我该如何解决?

服务器是 Ubuntu 10.04

lsmod 的输出是:

binfmt_misc             7960  1 
act_police              4620  0 
cls_flow                7754  0 
cls_fw                  4283  0 
cls_u32                 6698  0 
sch_htb                15660  0 
sch_hfsc               15167  0 
sch_ingress             2098  0 
sch_sfq                 5863  0 
xt_time                 2181  0 …
Run Code Online (Sandbox Code Playgroud)

ubuntu iptables

-2
推荐指数
1
解决办法
5579
查看次数

标签 统计

iptables ×1

ubuntu ×1