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:~#
代码应该没问题,应该可以工作,我已经读到这可能是一个错误
iptables 中没有选项
--to-destination
。你的意思是
[!] --destination -d address[/mask][...]
destination specification