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 > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Antecedents:
The system scanned two vulnerabilities. 1: database oracle vulnerability. 2:openssh vulnerability.
Linux operating system redhat4.7 Enterprise Edition, oracle11g
The solution is as follows:
1 oracle patches are generally charged, and vulnerabilities do not have much impact on the database, so patches are not recommended.
2 upgrade openssh, but the operating system version is too old. Customers are required to upgrade ssh to the latest version 8.3, not to mention whether the operating system of 4.7 supports ssh of 8.3, even if it does, upgrading ssh depends on zlib, ssl, perl, gcc and so on.
Later, I installed redhat4.8 on my virtual machine, and eventually the ssh8.3 upgrade was successful, as described in another article.
Solution:
Allow specified ip access to 1521 and 22 by adding a whitelist to avoid scanning
Edit vi / etc/sysconfig/iptables# New report list
-N whitelist
# two ip allow access to 1521
-An INPUT-p tcp-s 73.XX.XX.137-- dport 1521-j ACCEPT
-An INPUT-p tcp-s 137.XX.XX.0/24-- dport 1521-j ACCEPT # because Internet access is aggregated into a network gate, which is a network segment of 0-24
# An ip allows access to 22
-An INPUT-p tcp-s 73.XX.XX7.137-- dport 22-j ACCEPT
-An INPUT-p tcp-j whitelist
-An INPUT-p udp-j whitelist
-An INPUT-m state-- state RELATED,ESTABLISHED-j ACCEPT
-An INPUT-p icmp-j ACCEPT
-An INPUT-I lo-j ACCEPT
-An INPUT-j REJECT-- reject-with icmp-host-prohibited
-A FORWARD-j REJECT-- reject-with icmp-host-prohibited
COMMIT
# Completed on Fri Aug 7 08:51:17 2020
Restart after saving
Service iptables restart
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.