GB | BIG5
|
| 首頁 > 系統管理 > Linux > 正文 |
 |
| Linux 網管 123 --- 第7章. 自訂的組態及管理內容 -3.使用 TACACS |
| by Steve Frampton, (2001-07-02 13:04:00) |
使用 TACACS 進行 Internet 用戶認
在我工作的地方,為了撥接的 Internet 用戶TACACS 認 (連接到我們的數據機埠,輪流接到幾部 Cisco 25
0x 存取伺服器),我們使用 Vikas 版的 “xtacacsd”。
在編譯及安裝好 Vikas 套件後 (最新的版本在 ftp://ftp.navya.com/pub/vikas; 我不相信該套件有
RPM 格式),您應該加入下面幾行到``/etc/inetd.conf'' 這個檔案,如此一來無論何時收到該TACACS請求
時該 daemon 會由 inetd daemon 載入。
# TACACS is a user authentication protocol used for Cisco Router products.
tacacs dgram udp wait root /etc/xtacacsd xtacacsd -c /etc/xtacacsd-conf
下一步您應該編輯 ``/etc/xtacacsd-conf'' 檔並依您的系統需要訂它 (然而您可以使用原來預設的設定).
注意: 如果您使用 shadow password (查看 Linux 密碼及 Shadow 檔案格式 有關細節), 您用這套件
會有問題。不幸地,Red Hat用來作用戶認的 PAM (Pluggable Authentication Module)並不支援這個
套件。我用來解決這問題的方法是在 ``/usr/local/xtacacs/etc/'' 下保留一個另外的``passwd''檔,
它和位於 /etc/ 下的相符合但並未 shadow。 這麼做有一點麻煩,而且如果您選擇這麼做,必須確定其
他的密碼檔已經設定成只有 root 才能讀取 :
chmod a-wr,u+r /usr/local/xtacacs/etc/passwd
如果您真的需要 shadow, 幾乎可以確定您必需編輯 ``/etc/xtacacsd-conf'' 檔,並且要指定未 shadow
密碼檔的位置 (假設您使用上面我提的方法的話).
下一步是組態您的存取伺服器,以認由 TACACS 登入的設備 (像是撥接數據機)。這裡是如何完成的示:
mail:/tftpboot# telnet xyzrouter
Escape character is '^]'.
User Access Verification
Password: ****
xyzrouter> enable
Password: ****
xyzrouter# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
xyzrouter(config)# tacacs-server attempts 3
xyzrouter(config)# tacacs-server authenticate connections
xyzrouter(config)# tacacs-server extended
xyzrouter(config)# tacacs-server host 123.12.41.41
xyzrouter(config)# tacacs-server notify connections
xyzrouter(config)# tacacs-server notify enable
xyzrouter(config)# tacacs-server notify logouts
xyzrouter(config)# tacacs-server notify slip
xyzrouter(config)# line 2 10
xyzrouter(config-line)# login tacacs
xyzrouter(config-line)# exit
xyzrouter(config)# exit
xyzrouter# write
Building configuration...
[OK]
xyzrouter# exit
Connection closed by foreign host.
所有 TACACS 運作的 log 訊息將會記錄在 ``/var/log/messages'' 檔中。
(http://www.fanqiang.com)
進入【UNIX論壇】
|
|
| 相關文章 |
Linux 網管 123 --- 第13章. 其他的問題 3.附帶文件的指示 (2001-07-04 07:00:00) Linux 網管 123 --- 第13章. 其他的問題 2.哪裡可以找到幫助 (2001-07-03 22:08:00) Linux 網管 123 --- 第13章. 其他的問題 1.系統損毀 (2001-07-03 21:04:00) Linux 網管 123 --- 第12章. 保持伺服器安全的策略 (2001-07-03 20:10:01) Linux 網管 123 --- 第11章. 在企業裡的電腦使用 Linux -2.伺服器的遷移及延展性 (2001-07-03 19:00:01) Linux 網管 123 --- 第11章. 在企業裡的電腦使用 Linux -1.使用 RAID (2001-07-03 18:08:00) Linux 網管 123 --- 第10章. 升級 Linux 及其他應用軟體 -9.Sendmail (2001-07-03 17:04:01) Linux 網管 123 --- 第10章. 升級 Linux 及其他應用軟體 -8.Apache.Squid (2001-07-03 16:10:00) Linux 網管 123 --- 第10章. 升級 Linux 及其他應用軟體 -7.升級到 2.2.x 版的核心 (2001-07-03 15:00:01) Linux 網管 123 --- 第10章. 升級 Linux 及其他應用軟體 -6.作一個訂的核心 (2001-07-03 14:08:00)
|
===更多相關=== |
|
|
 |
★ 樊強制作 歡迎分享 ★ |