小编lig*_*ght的帖子

将端口转发到主机名

如何将端口转发到主机名和端口。我正在看这篇文章:Iptables forward all tr​​affic to a specified port, to another device and see how to do it port to ip 但如果我需要做 port to hostname 怎么办?尝试将主机作为目的地,但它在 iptables 中引发错误

 iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination ehb-us-redis-001.ehb-usredis.u1.cache.com:6379
iptables v1.4.21: Bad IP address "ehb"

Try `iptables -h' or 'iptables --help' for more information.
Run Code Online (Sandbox Code Playgroud)

iptables port-forwarding

1
推荐指数
1
解决办法
2712
查看次数

标签 统计

iptables ×1

port-forwarding ×1