關於/etc/hosts.allow 及 /etc/hosts.deny這二個檔? - Linux

By Rosalind
at 2010-11-15T19:17
at 2010-11-15T19:17
Table of Contents
各位好:
如果我在這二個檔案內都有寫入資料的話,那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到底能不能連,前面說可以,後面又說全擋...
先謝謝各位了
--
如果我在這二個檔案內都有寫入資料的話,那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到底能不能連,前面說可以,後面又說全擋...
先謝謝各位了
--
Tags:
Linux
All Comments

By Doris
at 2010-11-18T15:18
at 2010-11-18T15:18

By Cara
at 2010-11-19T09:01
at 2010-11-19T09:01

By Annie
at 2010-11-22T12:23
at 2010-11-22T12:23

By Catherine
at 2010-11-22T18:31
at 2010-11-22T18:31
Related Posts
顯卡用什麼驅動程式哪裡看?

By Quintina
at 2010-11-15T15:30
at 2010-11-15T15:30
在Ubuntu 10.04下執行WOW不能輸入中文

By Ida
at 2010-11-15T14:06
at 2010-11-15T14:06
shell command 的問題

By Ethan
at 2010-11-15T13:20
at 2010-11-15T13:20
想砍init?

By Damian
at 2010-11-15T02:54
at 2010-11-15T02:54
想砍init?

By Rachel
at 2010-11-15T02:32
at 2010-11-15T02:32