Oracle® Solaris 11 安全性準則

結束列印檢視

更新日期: 2014 年 9 月
 
 

如何使用 TCP 包裝程式

下列步驟顯示 TCP 包裝程式可在 Oracle Solaris 中使用的三種使用方式。

開始之前

您必須是 root 角色才能修改程式,以使用 TCP 包裝程式。

  1. 您不需要使用 TCP 包裝程式來保護 sendmail 應用程式。

    此應用程式預設使用 TCP 包裝程式保護,如Managing sendmail Services in Oracle Solaris 11.2 中的Support for TCP Wrappers From Version 8.12 of sendmail所述。

  2. 若要針對所有 inetd 服務啟用 TCP 包裝程式,請參閱Administering TCP/IP Networks, IPMP, and IP Tunnels in Oracle Solaris 11.2 中的How to Use TCP Wrappers to Control Access to TCP Services
  3. 使用 TCP 包裝程式保護 FTP 網路。
    1. 依照 /usr/share/doc/proftpd/modules/mod_wrap.html 模組中的說明。

      因為這個模組是動態的,所以您必須將它載入才能將 TCP 包裝程式與 FTP 搭配使用。

    2. 將下列指令加到 proftpd.conf 檔案中以載入模組:
      # pfedit /etc/proftpd.conf
      <IfModule mod_dso.c>
          LoadModule mod_wrap.c
      </IfModule>
    3. 重新啟動 FTP 服務。
      # svcadm restart svc:/network/ftp