Why Can My Server Be Accessed from the Internet But Cannot Access the Internet?
Symptom
The server can be accessed from, but cannot access the Internet.
Troubleshooting
Check the following possible causes.
Possible Cause |
Solution |
---|---|
Network configurations |
Check firewall and NIC configurations. See Network Configurations. |
EIP connection |
See Why Does Internet Access Fail Even If My ECS Is Bound with an EIP? |
Security group rules |
|
Network ACL rules |
Network Configurations
- Firewall
Disable firewall rules for the ECS and check if Internet connectivity is restored:
- Linux ECS: Checking the Firewall Configuration.
- Windows ECS: Checking the Firewall Configuration.
- NIC
Check the NIC and DNS configurations.
- Linux ECS: Checking the NIC Configuration.
- Windows ECS: Checking the NIC Configuration.
Security Group Rules
Check if there is a security group rule for the server denying the outbound traffic.
By default, a security group allows all outbound traffic. If the outbound traffic is denied, you can configure security group rules or click Allow Common Ports.
Network ACL Rules
Check whether the network ACL of the subnet that the server belongs to denies the outbound traffic.
By default, a network ACL denies all outbound traffic. You need to add an outbound rule with Action set to Allow to the network ACL associated with the server.
Submitting a Service Ticket
If the problem persists, submit a service ticket.
Connectivity FAQs
- Does a VPN Allow Communication Between Two VPCs?
- Why Are Internet or Internal Domain Names in the Cloud Inaccessible Through Domain Names When My ECS Has Multiple NICs?
- What Are the Priorities of the Custom Route and EIP If Both Are Configured for an ECS to Enable the ECS to Access the Internet?
- Why Are There Intermittent Interruptions When a Local Host Accesses a Website Built on an ECS?
- Why Do ECSs Using Private IP Addresses in the Same Subnet Only Support One-Way Communication?
- Why Does Communication Fail Between Two ECSs in the Same VPC or Packet Loss Occur When They Communicate?
- Why Can't My ECS Use Cloud-init?
- Why Can't My ECS Access the Internet Even After an EIP Is Bound?
- Why Is My ECS Unable to Communicate at a Layer 2 or Layer 3 Network?
- How Do I Handle a BMS Network Failure?
- Why Does My ECS Fail to Obtain an IP Address?
- How Do I Handle a VPN or Direct Connect Connection Network Failure?
- Why Can My Server Be Accessed from the Internet But Cannot Access the Internet?
- Why Can't I Access Websites Using IPv6 Addresses After IPv4/IPv6 Dual Stack Is Configured?
- Why Does My ECS Fail to Communicate with Other After It Has Firewall Installed?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore