In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the Ubuntu system ECS after the use of scripts to deal with the database can not connect to the content. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Ubuntu system ECS cannot remotely and cannot connect to the database after using the script "how to restrict external scanning behavior through firewall policies"
Ubuntu system ECS uses the script in "how to restrict external scanning behavior through Firewall Policy" for security protection. The phenomenon that the system cannot be remotely or the database cannot be connected is due to the fact that the script restricts external packet requests. You can repair it according to the actual port conditions you use according to the following actions:
1. Take a look at the current rules, there is no allowed entry direction of port 22.
two。 Add the ssh in the input direction, and then the test can be connected (the same is true of 3306, etc.)
Execute the command:
Ufw allow 22
3. Ping domain name prompts unkonwn host that you need to add rules for domain name resolution.
Execute command: ufw insert 1 allow out 53/udp (why is it different from the above add rules, first of all, there are rules in the out chain, and this allowed rule needs to be added at the top, so using insert 1 means adding before the first one, and the latter means udp protocol that allows port 53 to leave the direction).
Thank you for reading! On the Ubuntu system ECS after the use of scripts to deal with the database connection is not on the way to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
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.