請教FreeBSD之TCP_WRAPPERS



贊助商連結


vicky2395
2002-09-18, 10:41 PM
剛剛把TCP_WRAPPERS設定了一下
可是try了半天,不是都deny..要不就all allow
我的設定如下:
# Provide a small amount of protection for ftpd
ftpd : localhost 10.1.1.1 10.1.1.2 .xxx.com : allow
ftpd : .nice.guy.example.com : allow
ftpd : .evil.cracker.example.com : deny
ftpd : ALL : deny

#Telnet
telnetd : ALL except \
.yyy.idv.tw [email protected] 10.1.1.1 10.1.1.2 .xxx.com : \
spawn=(echo `date` - %u@%h[%a] %d | /usr/bin/mail -s "tcp_wrappers" root) & :


能不能請高手幫我看看,我的錯誤在哪?
謝謝.

**還有一個問題:
# Start by allowing everything (this prevents the rest of the file
# from working, so remove it when you need protection).
# The rules here work on a "First match wins" basis.
ALL : ALL : deny--->這個地方我看不太懂.我要的是部分可以allow,其他則deny.那要我要設deny or allow阿