In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.