激情五月天婷婷,亚洲愉拍一区二区三区,日韩视频一区,a√天堂中文官网8

<ul id="buwfs"><strike id="buwfs"><strong id="buwfs"></strong></strike></ul>
    <output id="buwfs"></output>
  • <dfn id="buwfs"><source id="buwfs"></source></dfn>
      <dfn id="buwfs"><td id="buwfs"></td></dfn>
      <div id="buwfs"><small id="buwfs"></small></div>
      <dfn id="buwfs"><source id="buwfs"></source></dfn>
      1. <dfn id="buwfs"><td id="buwfs"></td></dfn>
        始創(chuàng)于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業(yè)
        • 60秒人工響應
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補償
        全部產(chǎn)品
        您的位置: 網(wǎng)站首頁 > 幫助中心>文章內(nèi)容

        Linux安全配置步驟大全 (2)

        發(fā)布時間:  2012/8/10 18:06:55

        放入
           
            “ALL: ALL”到/etc/hosts.deny中禁止所有的請求,然后放那些明確允許的請求到
           
            /etc/hosts.allow中,如:
           
            sshd: 192.168.1.10/255.255.255.0 gate.openarch.com
           
            對IP地址192.168.1.10和主機名gate.openarch.com,允許通過ssh連接。
           
            配置完了之后,用tcpdchk檢查
           
            [root@deep]# tcpdchk
           
            tcpchk是TCP_Wrapper配置檢查工具,
           
            它檢查你的tcp wrapper配置并報告所有發(fā)現(xiàn)的潛在/存在的問題。
           
            8. 別名文件aliases
           
            編輯別名文件/etc/aliases(也可能是/etc/mail/aliases),移走/注釋掉下面的行。
           
            # Basic system aliases -- these MUST be present.
            MAILER-DAEMON: postmaster
            postmaster: root
            # General redirections for pseudo accounts.
            bin: root
            daemon: root
            #games: root ?remove or comment out.
            #ingres: root ?remove or comment out.
            nobody: root
            #system: root ?remove or comment out.
            #toor: root ?remove or comment out.
            #uucp: root ?remove or comment out.
            # Well-known aliases.
            #manager: root ?remove or comment out.
            #dumper: root ?remove or comment out.
            #operator: root ?remove or comment out.
            # trap decode to catch security attacks
            #decode: root
            # Person who should get roots mail
            #root: marc
           
            最后更新后不要忘記運行/usr/bin/newaliases,使改變生效。
           
            9.阻止你的系統(tǒng)響應任何從外部/內(nèi)部來的ping請求。
           
            既然沒有人能ping通你的機器并收到響應,你可以大大增強你的站點的安全性。你可以加下面的一行命令到/etc/rc.d/rc.local,以使每次啟動后自動運行。
           
            echo 1 >; /proc/sys/net/ipv4/icmp_echo_ignore_all
           
            10. 不要顯示出操作系統(tǒng)和版本信息。
           
            如果你希望某個人遠程登錄到你的服務器時不要顯示操作系統(tǒng)和版本信息,你能改變
           
            /etc/inetd.conf中的一行象下面這樣:
           
            telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd -h
           
            加-h標志在最后使得telnet后臺不要顯示系統(tǒng)信息,而僅僅顯示login:
           
            11.The /etc/host.conf file
           
            編輯host.conf文件(vi /etc/host.conf)且加下面的行:
           
            # Lookup names via DNS first then fall back to /etc/hosts.
            order bind,hosts
            # We dont have machines with multiple IP addresses on the same card
            (like virtual server,IP Aliasing).
            multi off
            # Check for IP address spoofing.
            nospoof on
            IP Spoofing: IP-Spoofing is a security exploit that works by tricking
            computers in a trust relationship that you are someone that you really arent.
           
            -------------------------------------------------------------------------------------------
           
            12. The /etc/securetty file
           
            該文件指定了允許root登錄的tty設備,/etc/securetty被/bin/login程序讀取,它的
           
            格式是一行一個被允許的名字列表,如你可以編輯/etc/securetty且注釋出下面的行。
           
            tty1 #tty2 #tty3 #tty4 #tty5 #tty6 #tty7 #tty8
           
            意味著root僅僅被允許在tty1終端登錄。
            13. 特別的帳號
           
            禁止所有默認的被操作系統(tǒng)本身啟動的且不需要的帳號,當你第一次裝上系統(tǒng)時就應該做此檢查,Linux提供了各種帳號,你可能不需要,如果你不需要這個帳號,就移走它,你有的帳號越多,就越容易受到攻擊。
           
            為刪除你系統(tǒng)上的用戶,用下面的命令:
           
            [root@deep]# userdel username 為刪除你系統(tǒng)上的組用戶帳號,用下面的命令: [root@deep]# groupdel username 在終端上打入下面的命令刪掉下面的用戶。 [root@deep]# userdel adm [root@deep]# userdel lp [root@deep]# userdel sync [root@deep]# userdel shutdown [root@deep]# userdel halt [root@deep]# userdel mail 如果你不用sendmail服務器,procmail.mailx,就刪除這個帳號。 [root@deep]# userdel news [root@deep]# userdel uucp [root@deep]# userdel operator [root@deep]# userdel games 如果你不用X windows 服務器,就刪掉這個帳號。 [root@deep]# userdel gopher [root@deep]# userdel ftp 如果你不允許匿名FTP,就刪掉這個用戶帳號。打入下面的命令刪除組帳號 [root@deep]# groupdel adm [root@deep]# groupdel lp [root@deep]# groupdel mail 如不用Sendmail服務器,刪除這個組帳號 [root@deep]# groupdel news [root@deep]# groupdel uucp [root@deep]# groupdel games 如你不用X Windows,刪除這個組帳號 [root@deep]# groupdel dip [root@deep]# groupdel pppusers [root@deep]# groupdel popusers 如果你不用POP服務器,刪除這個組帳號 [root@deep]# groupdel slipusers 用下面的命令加需要的用戶帳號 [root@deep]# useradd username 用下面的命令改變用戶口令 [root@deep]# passwd username 用chattr命令給下面的文件加上不可更改屬性。 [root@deep]# chattr +i /etc/passwd [root@deep]# chattr +i /etc/shadow [root@deep]# chattr +i /etc/

        億恩科技地址(ADD):鄭州市黃河路129號天一大廈608室 郵編(ZIP):450008 傳真(FAX):0371-60123888
           聯(lián)系:億恩小凡
           QQ:89317007
           電話:0371-63322206


        本文出自:億恩科技【mszdt.com】

        服務器租用/服務器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

      2. 您可能在找
      3. 億恩北京公司:
      4. 經(jīng)營性ICP/ISP證:京B2-20150015
      5. 億恩鄭州公司:
      6. 經(jīng)營性ICP/ISP/IDC證:豫B1.B2-20060070
      7. 億恩南昌公司:
      8. 經(jīng)營性ICP/ISP證:贛B2-20080012
      9. 服務器/云主機 24小時售后服務電話:0371-60135900
      10. 虛擬主機/智能建站 24小時售后服務電話:0371-60135900
      11. 專注服務器托管17年
        掃掃關(guān)注-微信公眾號
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號總部企業(yè)基地億恩大廈  法律顧問:河南亞太人律師事務所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號
          0
         
         
         
         

        0371-60135900
        7*24小時客服服務熱線