pwinner
2016-03-08 21:34:25 +08:00
iptables -t nat -A PREROUTING -p tcp --dport port -j DNAT --to-destination mc_VPS_IP:port
iptables -t nat -A PREROUTING -p udp --dport port -j DNAT --to-destination mc_VPS_IP:port
iptables -t nat -A POSTROUTING -p tcp -d mc_VPS_IP --dport port -j SNAT --to-source your-ip
iptables -t nat -A POSTROUTING -p udp -d mc_VPS_IP --dport port -j SNAT --to-source your-ip
跳板机上执行以上内容保存就是一个 vxtrans 啦,自行替换 port 为端口, mc-VPS-port 为 mc 服务器, your-IP 为跳板机自身 IP
如果想要简单一点就是楼上那样用微林的 vxtrans 服务