iptables 跳转后端到mysql数据库上

192.168.23.95  跳转到的mysql机器

192.168.11.119  iptables 机器

iptables -t nat -A PREROUTING -p tcp --dport 63306 -j DNAT --to-destination 192.168.23.95:3306

iptables -t nat -A POSTROUTING -d 192.168.23.95 -p tcp --dport 3306 -j SNAT --to 192.168.11.119

posted @ 2015-10-09 15:49  zenghui940  阅读(241)  评论(0编辑  收藏  举报