debian开启与关闭IPV6

       查看你当前系统运行的程序.看看他们的端口号.在下面这个你可以看到有一个tcp6这个就是IPV6开启的.在默认下是打开着.但是现在在我们国家或是基他国家还很少有用到IPV6.所以没有用到我们就可以把它关闭.这样也多一份安全.以下是基于debian5.02操作.

ptubuntu:/home/ptubuntu# netstat -antl
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN
tcp6       0      0 :::80                   :::*                    LISTEN

要修改相关的配置文档.

ptubuntu:/home/ptubuntu# vi /etc/modprobe.d/aliases
默认是有开启.那我们现在就要把它关闭了.还需要重启机器才会生效.
# alias net-pf-9  x25
# alias net-pf-10 ipv6
alias net-pf-10 off
alias ipv6 off

# alias net-pf-11 rose
# alias net-pf-12 decnet

 

 

原创文章,转载请注明: 转载自PT Ubuntu Blog

本文链接地址: http://www.ptubuntu.com/2009/08/3042.html

Share

{ 发表评论? }

  1. magehao

    最近看这些东西都快要看吐了···苍天··忙死了··

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Verify Code   If you cannot see the CheckCode image,please refresh the page again!