码迷,mamicode.com
首页 > 其他好文 > 详细

iptables进行本机端口转发

时间:2018-01-03 18:38:16      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:mil   执行   direct   连接   tab   rac   table   实验   ble   

备注:

   平时用iptables较少,基本会直接关闭,由于近期使用新智云进行测试实验,需要连接外面的oracle,二新智云向外连接是只能连接80端口,无法连接1521端口,只能进行端口转发。

执行:   

#iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 1521

#service iptables save


iptables进行本机端口转发

标签:mil   执行   direct   连接   tab   rac   table   实验   ble   

原文地址:http://blog.51cto.com/jingfeng/2057110

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!