免费注册 查看新帖 |

Chinaunix

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

RedHat linux as 5.3关闭端口 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2010-07-07 14:04 |只看该作者
[root@localhost6 ~]# iptables -A INPUT -p tcp --dport 8888 -j DROP
[root@localhost6 ~]# service iptables save
Saving firewall rules to /etc/sysconfig/iptables:          [  OK  ]
[root@localhost6 ~]# service iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: nat filter                [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules:                          [  OK  ]
Loading additional iptables modules: ip_conntrack_netbios_n[  OK  ]
[root@localhost6 ~]#

做完的再用时8888去连主机,还是可以连上。郁闷啊

论坛徽章:
0
12 [报告]
发表于 2010-07-07 14:07 |只看该作者
回复 8# 一路征程一路笑


    --------------------------------------------------------------------------------


[root@localhost6 ~]# iptables -A INPUT -p tcp --dport 8888 -j DROP
[root@localhost6 ~]# service iptables save
Saving firewall rules to /etc/sysconfig/iptables:          [  OK  ]
[root@localhost6 ~]# service iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: nat filter                [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules:                          [  OK  ]
Loading additional iptables modules: ip_conntrack_netbios_n[  OK  ]
[root@localhost6 ~]#

做完的再用时8888去连主机,还是可以连上。郁闷啊

论坛徽章:
0
13 [报告]
发表于 2010-07-07 14:09 |只看该作者
iptables确实强大呀,值得好好研究研究!

论坛徽章:
0
14 [报告]
发表于 2010-07-07 14:20 |只看该作者
大哥们,帮帮小弟我啊

到底怎么才能让8888端口不能连不上,改配置文件就免了

     跪求解决方法!!!!!

论坛徽章:
0
15 [报告]
发表于 2010-07-07 14:29 |只看该作者
回复 8# 一路征程一路笑


    你看看后面的,指定了还是没有用啊

论坛徽章:
0
16 [报告]
发表于 2010-07-07 14:41 |只看该作者
大哥们,大姐们,帮帮忙啊,问题还没有解决,不要让这个贴子沉下去了啊
一路征程一路笑 该用户已被删除
17 [报告]
发表于 2010-07-07 14:48 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
18 [报告]
发表于 2010-07-07 14:55 |只看该作者
回复 17# 一路征程一路笑


    [root@localhost6 ~]# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:rockwell-csp2
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:isi-gl
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:10086
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ddi-tcp-1
DROP       tcp  --  anywhere             anywhere            tcp spt:mysql
DROP       tcp  --  anywhere             anywhere            tcp spt:ddi-tcp-1
DROP       tcp  --  anywhere             anywhere            tcp dpt:ddi-tcp-1
DROP       tcp  --  anywhere             anywhere            tcp spt:ddi-tcp-1
DROP       tcp  --  anywhere             anywhere            tcp dpt:ddi-tcp-1
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ncube-lm
DROP       tcp  --  anywhere             anywhere            tcp dpt:personal-agent
DROP       tcp  --  anywhere             anywhere            tcp dpt:ddi-tcp-1
DROP       tcp  --  anywhere             anywhere            tcp dpt:ddi-tcp-1

Chain FORWARD (policy DROP)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:rockwell-csp2

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
DROP       tcp  --  anywhere             anywhere            tcp dpt:ddi-tcp-1

好像没看到
一路征程一路笑 该用户已被删除
19 [报告]
发表于 2010-07-07 15:09 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
一路征程一路笑 该用户已被删除
20 [报告]
发表于 2010-07-07 15:17 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP