iptables无法使用相同的目标

时间:2015-07-30 08:12:02

标签: iptables

我无法在iptables下使用相同的目标。有人可以帮忙吗?

iptables v1.4.21 内核:3.16.7

iptables -t nat -A POSTROUTING -o eth0 -j SAME - 到1.2.3.4-1.2.3.7 iptables:没有链/目标/匹配该名称。

1 个答案:

答案 0 :(得分:1)

According to iptables-extensions's man page, the SAME target was superseded by the --persistent flag of the DNAT target:

--persistent

Gives a client the same source-/destination-address for each connection. This supersedes the SAME target. Support for persistent mappings is available from 2.6.29-rc2.