免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234
最近访问板块 发新帖
楼主: J14
打印 上一主题 下一主题

服务器做NAT服务老是失败,连不上!!!! [复制链接]

论坛徽章:
0
31 [报告]
发表于 2004-05-29 19:53 |只看该作者

服务器做NAT服务老是失败,连不上!!!!

[quote]原帖由 "szkingrose"]MASQUERADE 只有拨号上网时才用到。[/quote 发表:

you are wrong.

论坛徽章:
0
32 [报告]
发表于 2004-05-29 21:52 |只看该作者

服务器做NAT服务老是失败,连不上!!!!

各位大哥,我的外网IP是固定IP,我问过了!
大家再帮忙看看好吗?谢谢!

论坛徽章:
0
33 [报告]
发表于 2004-05-30 07:59 |只看该作者

服务器做NAT服务老是失败,连不上!!!!

http://bbs.chinaunix.net/forum/viewtopic.php?t=328799

论坛徽章:
0
34 [报告]
发表于 2004-05-30 09:01 |只看该作者

服务器做NAT服务老是失败,连不上!!!!

你在服务器上能上网吗?晕

论坛徽章:
0
35 [报告]
发表于 2004-05-30 12:48 |只看该作者

服务器做NAT服务老是失败,连不上!!!!

嘿嘿嘿嘿嘿嘿嘿……这个配置能上去才怪哦~

单看iptalbes -t nat -L 的输出,内网的IP包就转不出去.

另外,对内的eth0就不要设置GATEWAY了~

论坛徽章:
0
36 [报告]
发表于 2004-05-31 10:13 |只看该作者

服务器做NAT服务老是失败,连不上!!!!

原帖由 "szkingrose" 发表:
iptables -t nat -A POSTROUTING -o ethx -j MASQUERADE
老兄 拨号才用 MASQUERADE


实践才是硬道理.你再试试固定IP也用masquerade.

论坛徽章:
0
37 [报告]
发表于 2004-05-31 10:54 |只看该作者

服务器做NAT服务老是失败,连不上!!!!

MASQUERADE
       This target is only valid in the nat table, in the  POSTROUTING  chain.
       It  should  only  be used with dynamically assigned IP (dialup) connec-
       tions: if you have a static IP address, you should use the SNAT target.
       Masquerading is equivalent to specifying a mapping to the IP address of
       the interface the packet is going out, but also  has  the  effect  that
       connections  are  forgotten  when the interface goes down.  This is the
       correct behavior when the next dialup is  unlikely  to  have  the  same
       interface  address (and hence any established connections are lost any-
       way).  It takes one option:

我没有固定IP,没有测试过。这些都是我在man iptables中看的。
可能有误,SORRY。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP