iptable_nat在更新后停止工作


0

今天,我安装了一些更新dnf update
之后,我无法设置一些基本的iptables规则。

$ iptables -A INPUT --match state --state ESTABLISHED,RELATED --jump ACCEPT`
iptables: No chain/target/match by that name.

这个命令永远运行

$ modprobe iptable_nat

这也是永远的

$ iptables -t nat -L

其他规则工作得很好。
有人提示解决这个问题吗?

dnf-update的信息

Transaction performed with:
    Installed     dnf-2.7.5-2.fc27.noarch  @updates
    Installed     rpm-4.14.2-1.fc27.x86_64 @updates
Packages Altered:
    Erase    kernel-4.18.13-100.fc27.x86_64         @updates
    Install  kernel-4.18.16-100.fc27.x86_64         @updates
    Erase    kernel-core-4.18.13-100.fc27.x86_64    @updates
    Install  kernel-core-4.18.16-100.fc27.x86_64    @updates
    Erase    kernel-devel-4.18.12-100.fc27.x86_64   @updates
    Install  kernel-devel-4.18.16-100.fc27.x86_64   @updates
    Upgraded kernel-headers-4.18.15-100.fc27.x86_64 @updates
    Upgrade                 4.18.16-100.fc27.x86_64 @updates
    Erase    kernel-modules-4.18.13-100.fc27.x86_64 @updates
    Install  kernel-modules-4.18.16-100.fc27.x86_64 @updates
    Upgraded vim-minimal-2:8.1.450-1.fc27.x86_64    @updates
    Upgrade              2:8.1.483-1.fc27.x86_64    @updates
Scriptlet output:
   1 warning: file /lib/modules/4.18.13-100.fc27.x86_64/updates: remove failed: No such file or directory
   2 cat: write error: Broken pipe
   3 Running as unit: run-ra5568fc978d4459eb86c989526d8c755.service
   4 Running as unit: run-rfcb91a7b68a94775bb87bf88d9608331.service

第一条规则ACCEPT在T之后有一个撇号。你也可以试试-j ACCEPT 你也可以尝试这个iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
cybernard

同样的错误iptables -A INPUT --match state --state ESTABLISHED,RELATED --jump ACCEPT
6537157

您使用的是什么版本的iptables?
cybernard

iptables v1.6.2
6537157

iptables v.1.8.1是最新的我会先尝试更新。
游戏
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.