Solaris 上安裝 tcp Wrapper 7.6

作者:Andrew Choi (蔡健發)

Since : 22 Apr 2004

Last Update : 5 Jun 2006


聲明:任何形式的摘抄必須保留上述作者和http地址

備注:新版本文章 "Solaris 10 OS 啟動 tcp Wrapper 功能" 已經編寫好,請到 http://solaris.tophk.net/basicsetting/10_tcp_wrappers/index.htm

在Linux 上,TCP Wrapper 是一個用來管理 IP Daemon 使用權的程式。但在Solaris上,需要自行安裝。
它可以用來限制遠端使用者使用 Telnet Daemon 或 Ftp Daemon 權限。需然功能簡單,但勝在實用。

ftp site 下載 tcp_wrappers_7.6.tar.gz

把檔案放在 /usr/local/

把 gz 檔解開

gzip -d tcp_wrappers_7.6.tar.gz

把 tar 檔解開

tar -vxf tcp_wrappers_7.6.tar

安裝

% cd /usr/local/tcp_wrappers_7.6
% make REAL_DAEMON_DIR=/usr/sbin CC=gcc sunos5
%
cp tcpd /usr/sbin/
% cp safe_finger /usr/sbin/
% cp try-from /usr/sbin/
% cp tcpdchk /usr/local/bin/
% cp tcpdmatch /usr/local/bin/

設定

/etc/inet/inetd.conf

/etc/hosts.allow ( Example )
/etc/hosts.deny ( Example )
/etc/hosts ( 加入受權使用的 ip Address 和主機名稱 )

重新啟動 inetd Daemon

# /etc/init.d/inetsvc stop
# /etc/init.d/inetsvc start

 


E-mail : andrew@tophk.net