gpt4 book ai didi

linux - iptables端口转发: Unknown arg

转载 作者:太空宇宙 更新时间:2023-11-04 03:48:41 25 4
gpt4 key购买 nike

我正在尝试使用 iptables 进行端口转发

尝试执行此命令时遇到问题'Unknown arg `--to-destination'

iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.1.2:80

有什么想法吗?

最佳答案

您可以重定向流量吗?

如果是的话在预路由上使用 -j REDIRECT --to 192.168.1.2:80如果不抱歉。

关于linux - iptables端口转发: Unknown arg,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27106582/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com