IPTABLES 評論:沒有該名稱的鏈/目標/匹配

IPTABLES 評論:沒有該名稱的鏈/目標/匹配

使用「評論」新增規則時遇到錯誤:

# iptables -I INPUT 1 --source 66.***.***.78 -j REJECT -m comment --comment "Some"
iptables: No chain/target/match by that name.

沒有評論 - 正常工作。

使用中央作業系統6.5,內核2.6.32

但相同的命令適用於具有相同作業系統的其他機器。

兩者都有相同的模組:

# cat /proc/net/ip_tables_matches
icmp
state
udplite
udp
tcp

 # lsmod | grep ip
nf_conntrack_ipv4       9506  8
nf_defrag_ipv4          1483  1 nf_conntrack_ipv4
iptable_filter          2793  1
ip_tables              17831  1 iptable_filter
ipt_LOG                 5845  0
ipt_REJECT              2351  5
ip6t_REJECT             4628  2
nf_conntrack_ipv6       8337  2
nf_defrag_ipv6         11156  1 nf_conntrack_ipv6
nf_conntrack           79758  3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state
ip6table_filter         2889  1
ip6_tables             18732  1 ip6table_filter
ipv6                  318183  17 ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6

答案1

檢查系統是否在您正在設定的連接埠上指派了 IP。簡單的方法是刪除網路配置 ( ifcfg-eth*) 檔案並重新配置,以便解決問題。

相關內容