免费注册 查看新帖 |

Chinaunix

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

关于iptables的pptpd的问题,请高手指点!(已搜索,但仍未解决) [复制链接]

论坛徽章:
0
1 [报告]
发表于 2011-09-21 11:17 |只看该作者
你上面那样 的确和没开一样

论坛徽章:
0
2 [报告]
发表于 2011-09-21 11:54 |只看该作者
请问怎么样解决呢

论坛徽章:
0
3 [报告]
发表于 2011-09-21 12:00 |只看该作者
回复 1# 碌木


    你把你防火墙现有的规则列下

论坛徽章:
0
4 [报告]
发表于 2011-09-21 12:06 |只看该作者
呃...怎么看防火墙现有的规则
#service iptables status
吗?

论坛徽章:
0
5 [报告]
发表于 2011-09-21 12:09 |只看该作者
本帖最后由 碌木 于 2011-09-21 13:27 编辑

这是重启iptables后的规则
  1. [root@localhost ~]# service iptables restart
  2. Flushing firewall rules:                                   [  OK  ]
  3. Setting chains to policy ACCEPT: nat mangle filter         [  OK  ]
  4. Unloading iptables modules:                                [  OK  ]
  5. Applying iptables firewall rules:                          [  OK  ]
  6. Loading additional iptables modules: ip_conntrack_netbios_n[  OK  ]
  7. [root@localhost ~]# service iptables status
  8. Table: nat
  9. Chain PREROUTING (policy ACCEPT)
  10. num  target     prot opt source               destination

  11. Chain POSTROUTING (policy ACCEPT)
  12. num  target     prot opt source               destination
  13. 1    MASQUERADE  all  --  0.0.0.0/0            0.0.0.0/0           MARK match 0x9

  14. Chain OUTPUT (policy ACCEPT)
  15. num  target     prot opt source               destination

  16. Table: mangle
  17. Chain PREROUTING (policy ACCEPT)
  18. num  target     prot opt source               destination
  19. 1    MARK       all  --  0.0.0.0/0            0.0.0.0/0           MARK set 0x9

  20. Chain INPUT (policy ACCEPT)
  21. num  target     prot opt source               destination

  22. Chain FORWARD (policy ACCEPT)
  23. num  target     prot opt source               destination

  24. Chain OUTPUT (policy ACCEPT)
  25. num  target     prot opt source               destination

  26. Chain POSTROUTING (policy ACCEPT)
  27. num  target     prot opt source               destination

  28. Table: filter
  29. Chain INPUT (policy ACCEPT)
  30. num  target     prot opt source               destination
  31. 1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0

  32. Chain FORWARD (policy ACCEPT)
  33. num  target     prot opt source               destination
  34. 1    RH-Firewall-1-INPUT  all  --  0.0.0.0/0            0.0.0.0/0

  35. Chain OUTPUT (policy ACCEPT)
  36. num  target     prot opt source               destination

  37. Chain RH-Firewall-1-INPUT (2 references)
  38. num  target     prot opt source               destination
  39. 1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
  40. 2    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
  41. 3    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           icmp type 255
  42. 4    ACCEPT     esp  --  0.0.0.0/0            0.0.0.0/0
  43. 5    ACCEPT     ah   --  0.0.0.0/0            0.0.0.0/0
  44. 6    ACCEPT     udp  --  0.0.0.0/0            224.0.0.251         udp dpt:5353
  45. 7    ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:631
  46. 8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:631
  47. 9    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
  48. 10   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
  49. 11   REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

复制代码

论坛徽章:
0
6 [报告]
发表于 2011-09-21 12:34 |只看该作者
回复 1# 碌木


    那帖子 里面 1楼和下面楼层的 几句 你都加进去了吗?

论坛徽章:
0
7 [报告]
发表于 2011-09-21 13:07 |只看该作者
没有,因为这是重启iptables给你看的,我现在加进去再发给你看

论坛徽章:
0
8 [报告]
发表于 2011-09-21 13:33 |只看该作者
更新了一下一楼的内容

论坛徽章:
0
9 [报告]
发表于 2011-09-21 13:42 |只看该作者
本帖最后由 FaintKnowledge 于 2011-09-21 13:46 编辑

回复 9# 碌木


  加个 -i eth0 呢?
iptables命令根服务停掉启动没什么关系...,只要语法没问题,就可以执行.

论坛徽章:
0
10 [报告]
发表于 2011-09-21 14:31 |只看该作者
vps的宿主故障了,还没用得上vps
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP