为iptables(8)
防火墙在表中被“正确锁定” filter
,是否有用在非表中采用或类似的终止、“阻止或禁用”规则,即DROP
表REJECT
(或、或表)?filters
NAT
mangle
raw
security
我们特别想关闭任何,潜在的我们的防火墙上有“漏洞”。
NAT
的POSTROUTING
链不接受DROP
或REJECT
目标,至少在我们团队的系统之一上:
$ iptables -t nat -P POSTROUTING DROP
iptables v1.6.1:
The "nat" table is not intended for filtering, the use of DROP is therefore inhibited.
Try `iptables -h' or 'iptables --help' for more information.
$
$ iptables -t nat -P POSTROUTING REJECT
iptables: Bad policy name. Run `dmesg' for more information.
$
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
$