[問題] 關於/etc/hosts.allow 及 /etc/hosts.deny這二個檔?
各位好:
如果我在這二個檔案內都有寫入資料的話,那deny那份也會讀取到嗎?
參考鳥哥的範例如下:
[root@linux ~]# vi /etc/hosts.allow
sshd: 192.168.0.1, 192.168.0.2, 192.168.0.3, 192.168.0.4, 192.168.0.5: allow
[root@linux ~]# vi /etc/hosts.deny
sshd : ALL : spawn (/bin/echo Security notice from host `/bin/hostname`; \
/bin/echo; /usr/sbin/safe_finger @%h ) | \
/bin/mail -s "%d -%h security" root@localhost & \
: twist ( /bin/echo -e "\n\nWARNING connectin not allowed.". )
這樣子192.168.2.1-5到底能不能連,前面說可以,後面又說全擋...
先謝謝各位了
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.69.230.190
→
11/15 20:18, , 1F
11/15 20:18, 1F
→
11/16 00:45, , 2F
11/16 00:45, 2F
→
11/16 19:24, , 3F
11/16 19:24, 3F
推
11/16 19:43, , 4F
11/16 19:43, 4F