Solve the problem of Oneinstack script limiting PING timeout

888u

Last update at :2024-06-18,Edit by888u

Judging from the current panel-less one-click package scripts in the Linux Web environment, LNMP and Oneinstack are most commonly used. The former has been familiar to everyone for many years, and has been updated annually on Children's Day for many years. Oneinstack is a rising star. It has gained a lot of users in just a few years with its relatively fast updates, various functions and combinations, and its software upgrades and updates are timely.

No matter which script or panel we use, as long as it is suitable for our own functions and projects, each has its own advantages. Friends who have used it in depth have also discovered the details of each. For example, I have met many netizens who may have obsessive-compulsive disorder because Oneinstack When the script turns on iptables by default, it will install some restrictions. For example, after turning on iptables, there will be a timeout problem when testing our normal PING third-party tool. This is not a server problem, but the script limits the frequency of PING.

Some friends feel uncomfortable and hope to remove this function, but also keep iptables turned on, because some need to add some port settings themselves.

First, close iptables

service iptables stop

Let's close it first.

Second, modify the rules

This is not a snail. In order to see the default rules of iptables after installing the latest oneinstack version, I quickly found a test machine to install it. I saw a line marked with a limited time PING packet per second (I also specifically consulted its author yeho classmate). Just increase the number, such as 100/sec, we can figure it out ourselves.

Third, save and restart

service iptables start

After saving the script, start iptables, and then go to PING test to see that it is normal and there is no timeout problem.

Summary and suggestions, in fact, simple restrictions are also possible. If we are not friends with severe obsessive-compulsive disorder, it is better to add them by default. If you really don't want to do this, then remove it, but we need to back up the rules before so that we can restore them if we make a mistake.

Recommended site searches: registration number query, cloud host rental, ip reverse domain name query, overseas host rental, Korean server recommendation, website registration domain name query, Hong Kong vps host, 1g US virtual host, Korean cn2 server, ip purchase, < /p>

Solve the problem of Oneinstack script limiting PING timeout

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码