我在创建 iptables 时遇到此错误,有谁知道为什么并且可以给我解决方案吗?

问题描述 投票:0回答:1
antonio@ant:~$ lxc exec R1 bash
root@R1:~# iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 10.25.1.11:80
iptables v1.8.7 (nf_tables): unknown option "--to-destination 10.25.1.11:80"
Try `iptables -h' or 'iptables --help' for more information.
root@R1:~#

代码应该没问题,应该可以工作,我已经读到这可能是一个错误

linux containers network-programming lxc
1个回答
0
投票

iptables 中没有选项

--to-destination
。你的意思是

[!] --destination -d address[/mask][...]
                            destination specification
© www.soinside.com 2019 - 2024. All rights reserved.