【发布时间】:2018-03-05 21:58:38
【问题描述】:
我正在使用 centOS,我想将端口 xxxx 重定向到 anthor 端口。
node.js 已安装。 我已经用这个笔记试过了: Best practices when running Node.js with port 80 (Ubuntu / Linode)
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
我收到一条错误消息: can't initialize iptables table `nat': 表不存在(需要insmod吗?)
如果有其他方法可以重定向端口,请告诉我。
【问题讨论】: