In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The / etc/hosts.allow and / etc/hosts.deny files control remote access settings, allowing or denying access to a linux service from a computer in an ip or ip segment. For example, for SSH services, we are usually only open to administrators, so we can disable unnecessary IP and open only IP segments that may be used by administrators.
# vim / etc/hosts.allow
# allowed to use the local INET services, as decided# by the'/ usr/sbin/tcpd' server.#sshd:210.13.218.*,222.77.15.*all:218.24.129.110
The above words mean that two ip segments 210and 222are allowed to connect to the sshd service and accept all requests for the ip of 110s!
Don't forget to edit the deny file and reject all sshd connections to ip
# vim / etc/hosts.deny
Sshd:all
After modification, it will take effect in real time.
When hosts.allow and host.deny conflict, the hosts.allow setting shall prevail.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.