Disclaimer: This article may contain information about third-party products. Such information is for reference only. Alibaba Cloud does not make any guarantee, express or implied, with respect to the performance and reliability of third-party products, as well as potential impacts of operations on the products.
Problem description
You cannot connect to a Linux instance through SSH, and the HTTP service on this instance is also abnormal. A network test using the telent Command found that the requested connection was reset.
Cause
Local networks surf the Internet through NAT sharing, and Linux kernel parameter related configuration exceptions.
Solution
Modify the system kernel parameter to solve the problem.
- Log on to the system through the management terminal.
- Run the following commands successively to check the current kernel configuration and confirm that the value of this parameter is 1:
cat /proc/sys/net/ipv4/tcp_tw_recycle
cat /proc/sys/net/ipv4/tcp_timestamps - Add the following content to the
/etc/sysctl.conf
configuration file.net.ipv4.tcp_tw_recycle=0
net.ipv4.tcp_timestamps=0 - Run the following command to make the configurations take effect:
sysctl -p
- Confirm that you can access the instance.
Application scope
- ECS
If your problem is still not solved, please submit a ticket to contact Alibaba Cloud technical support.