免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1746 | 回复: 2
打印 上一主题 下一主题

[其他] iptables网关3389端口转发不成功 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-05-24 19:41 |只看该作者 |倒序浏览
-A PREROUTING -d 202.96.209.110 -p tcp -m tcp --dport 3389 -j DNAT --to-destination 192.168.2.5:3389
-A POSTROUTING -s 192.168.2.0/24 -j SNAT --to-source 202.96.209.110

外网不能防问





113.77.81.22.nsjtp-ctrl > 202.96.209.110.ms-wbt-server: Flags [S], cksum 0xbc86 (correct), seq 1763564969, win 14600, options [mss 1440,sackOK,TS val 1030242 ecr 0,nop,wscale 7], length 0
19:09:36.161349 IP (tos 0x0, ttl 59, id 26060, offset 0, flags [DF], proto TCP (6), length 60)
    113.77.81.22.nsjtp-ctrl > 202.96.209.110.ms-wbt-server: Flags [S], cksum 0xbb8c (correct), seq 1763564969, win 14600, options [mss 1440,sackOK,TS val 1030492 ecr 0,nop,wscale 7], length 0
19:09:38.166428 IP (tos 0x0, ttl 59, id 26061, offset 0, flags [DF], proto TCP (6), length 60)
    113.77.81.22.nsjtp-ctrl > 202.96.209.110.ms-wbt-server: Flags [S], cksum 0xb997 (correct), seq 1763564969, win 14600, options [mss 1440,sackOK,TS val 1030993 ecr 0,nop,wscale 7], length 0
19:09:42.177297 IP (tos 0x0, ttl 59, id 26062, offset 0, flags [DF], proto TCP (6), length 60)
    113.77.81.22.nsjtp-ctrl > 202.96.209.110.ms-wbt-server: Flags [S], cksum 0xb5ac (correct), seq 1763564969, win 14600, options [mss 1440,sackOK,TS val 1031996 ecr 0,nop,wscale 7], length 0
19:09:50.193372 IP (tos 0x0, ttl 59, id 26063, offset 0, flags [DF], proto TCP (6), length 60)
    113.77.81.22.nsjtp-ctrl > 202.96.209.110.ms-wbt-server: Flags [S], cksum 0xadd8 (correct), seq 1763564969, win 14600, options [mss 1440,sackOK,TS val 1034000 ecr 0,nop,wscale 7], length 0
19:10:06.225290 IP (tos 0x0, ttl 59, id 26064, offset 0, flags [DF], proto TCP (6), length 60)
    113.77.81.22.firefox > 202.96.209.110.ms-wbt-server: Flags [S], cksum 0x9e2e (correct), seq 1763564969, win 14600, options [mss 1440,sackOK,TS val 1038008 ecr 0,nop,wscale 7], length 0
19:10:38.258321 IP (tos 0x0, ttl 59, id 26065, offset 0, flags [DF], proto TCP (6), length 60)
    113.77.81.22.ng-umds > 202.96.209.110.ms-wbt-server: Flags [S], cksum 0x7ee5 (correct), seq 1763564969, win 14600, options [mss 1440,sackOK,TS val 1046016 ecr 0,nop,wscale 7], length 0
19:14:00.941022 IP (tos 0x0, ttl 109, id 256, offset 0, flags [none], proto TCP (6), length 40)
    113.6.232.122.x11 > 202.96.209.110.ms-wbt-server: Flags [S], cksum 0x5baa (correct), seq 418709504, win 16384, length 0

论坛徽章:
26
CU十二周年纪念徽章
日期:2013-10-24 15:41:34技术图书徽章
日期:2014-07-11 16:27:52辰龙
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55双子座
日期:2014-09-26 11:00:042014年中国系统架构师大会
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辞旧岁徽章
日期:2015-03-03 16:54:15NBA常规赛纪念章
日期:2015-05-04 22:32:03IT运维版块每日发帖之星
日期:2016-01-29 06:20:00
2 [报告]
发表于 2014-05-27 16:14 |只看该作者
iptables -A FORWARD -o eth0 -d 202.96.209.110 -p tcp --dport 3389 -j ACCEPT
iptables -A FORWARD -i eth0 -s 202.96.209.110 -p tcp --dport 3389 -j ACCEPT


加一下看看

论坛徽章:
0
3 [报告]
发表于 2014-05-28 08:12 |只看该作者
回复 2# cryboy2001


    谢谢。{:2_172:}

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP