This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_tcpwrap [2012/06/28 18:45] val |
сервис_tcpwrap [2017/05/31 09:05] val [Конфигурация в режиме все запрещено, кроме] |
||
---|---|---|---|
Line 8: | Line 8: | ||
===== Конфигурация в режиме "все запрещено, кроме" ===== | ===== Конфигурация в режиме "все запрещено, кроме" ===== | ||
- | [[http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/]] | + | * [[http://ubuntu-tutorials.com/2007/09/02/network-security-with-tcpwrappers-hostsallow-and-hostsdeny/|Network Security with tcpwrappers (hosts.allow and hosts.deny)]] |
<code> | <code> | ||
Line 15: | Line 15: | ||
ALL: 127.0. | ALL: 127.0. | ||
sshd: 192.168.X.10 | sshd: 192.168.X.10 | ||
+ | # sshd: 192.168.X. 192.168.100+X. | ||
</code><code> | </code><code> | ||
gate# cat /etc/hosts.deny | gate# cat /etc/hosts.deny | ||
</code><code> | </code><code> | ||
ALL:ALL | ALL:ALL | ||
+ | </code><code> | ||
+ | # tail -f /var/log/auth.log | ||
</code> | </code> | ||
- | + | ===== Конфигурация в режиме "все разрешено, кроме" ===== | |
- | ===== Конфигурация в режиме "все разрещено, кроме" ===== | + | |
<code> | <code> | ||
# :> /etc/hosts.allow | # :> /etc/hosts.allow |