全球主机交流论坛
标题:
阿里云国际香港 iptables转发TCP的问题
[打印本页]
作者:
alanwind
时间:
2016-7-16 02:16
标题:
阿里云国际香港 iptables转发TCP的问题
本帖最后由 alanwind 于 2016-7-16 02:53 编辑
系统 centso 6.5 64位
两条命令
iptables -t nat -A PREROUTING --dst 47.90.15.x -p tcp --dport 2005 -j DNAT --to-destination 113.196.113.x:2016
iptables -t nat -A POSTROUTING --dst 113.196.113.x -p tcp --dport 2016 -j SNAT --to-source 47.90.15.x
测试不行。。
然后 selinux默认关闭的
net.ipv4.forward调成1 了
INPUT 里面也是空的 没有阻拦啊。。
然后。。以为是内网的问题
就将上面命令里的阿里云外网IP 改成内网IP ,结果还是不行。。哭了
又改了改命令
iptables -t nat -A PREROUTING -p tcp --dport 1000 -j DNAT --to-destination 113.196.113.x:2016
iptables -t nat -A POSTROUTING -p tcp -d 113.196.113.x --dport 2016 -j SNAT --to-source 10.25.206.X
结果还是不行。。
求助大神 要哭了
作者:
shiro
时间:
2016-7-16 02:40
http://coxxs.me/303
作者:
alanwind
时间:
2016-7-16 02:43
shiro 发表于 2016-7-16 02:40
http://coxxs.me/303
这个试过了。不行啊。。
作者:
alanwind
时间:
2016-7-16 02:52
楼主已哭晕
作者:
斜阳晚暮
时间:
2016-7-16 03:05
转发我用过haproxy。
作者:
alanwind
时间:
2016-7-16 03:11
斜阳晚暮 发表于 2016-7-16 03:05
转发我用过haproxy。
关键 haproxy 试过了 也不行。。纠结
作者:
alanwind
时间:
2016-7-16 03:13
斜阳晚暮 发表于 2016-7-16 03:05
转发我用过haproxy。
咿。haproxy又可以了 好吧。。
作者:
alanwind
时间:
2016-7-16 03:16
斜阳晚暮 发表于 2016-7-16 03:05
转发我用过haproxy。
我擦。iptables 也可以了。。
妈的 阿里云好神经病
刚才怎么都不行。。。现在又可以
哭晕
欢迎光临 全球主机交流论坛 (https://443502.xyz/)
Powered by Discuz! X3.4