需要使用iptables进行端口转发推荐这个脚本,支持iptablesUtils域名转发。
https://github.com/arloor/iptablesUtils
wget -qO natcfg.sh /tools/natcfg.sh --no-check-certificate && bash natcfg.sh
下方为已失效原链接:
wget -qO natcfg.sh http://arloor.com/sh/iptablesUtils/natcfg.sh && bash natcfg.sh