This repository was created to help you with easy Virtual Private Network and Cloud Enterprise Network configuration and troubleshooting.
- Table of Contents
- Troubleshooting
- Hint 1 - check your IDC VPN capabilities
- Hint 2 - check your configuration
- Hint 3 - create a network topology diagram
- Hint 4 - triple check local and remote networks from both IDC and Alibaba Cloud perspective
- Hint 5 - add correct networks to route table
- Hint 6 - create a Read Only User for troubleshooting
- Hint 7 - Check your MTU and MSS settings
- Troubleshooting
One of the most important things to consider is the IKE version your local devices support.
It is important because IKEv1 has many limitation in comparison to IKEv2.
The most critical one is the ability to add/insert more than one local and remote network. I've seen many customers having the necessity to include more than one local network and it wasn't possible due to the local IDC hardware limitation.
Before troubleshooting and configuration it is recommended to fill in the https://github.com/wojciehm/Alibaba-Cloud-VPN-Configuration-and-Troubleshooting/blob/master/environment-details.md file.
Once you have the environment details it could be used for configuration and troubleshooting.
The second step which helps many customers I worked with is to use the draw.io diagram I created and fill it in with all possible data. This step is crucial to confirm that everything is configured.
Link to the file https://github.com/wojciehm/Alibaba-Cloud-VPN-Configuration-and-Troubleshooting/blob/master/files/VPN-Diagram.xml
Use the environment details as a checkup for any mistakes in local and remote networks.
Many customers make errors in those. Try to understand what is local network from your IDC perspective and Alibaba Cloud VPN Gateway perspective.
Routing, especially when combined with VPN Gateways in IDC-to-IDC configuration might be tricky.
When configuring or to be precise advertising networks in CEN it is important to include all necessary networks.
Local network segment: 10.0.10.0/24
Local network segment: 172.16.10.0/24
Local network segment: 172.16.20.0/24
Local network segment: 10.0.20.0/24
In addition to already created routes we should publish in CEN:
- Alibaba Cloud Location 1 VPC advertise network from customer IDC 1:
10.0.10.0/24 with destination Alibaba Cloud Location 2 VPC - Any other IDC 1 network if IKEv2 is used
- Alibaba Cloud Location 2 VPC advertise network from customer IDC 2:
10.0.20.0/24 with destination Alibaba Cloud Location 1 VPC - Any other IDC 2 network if IKEv2 is used
In case you need to troubleshoot the VPN&CEN configuration you can create an additional Resource Access Management (RAM) user with Read Only Policy.
- Login to Alibaba Cloud console.
- Click on Home to see all Alibaba Cloud Services.
- Under Services, select Resource Access Management (RAM).
- If you never used the RAM service, you will be asked to activate it.
- Once activated you are now on the Dashboard page. ![Resource Access Management Dashboard](images/2- AM.png)
- Copy the RAM Login Link.
- Navigate to Users.
- Click Create User.
- At Logon Name and Display Name enter Alibaba_Support_Read-Only (or any username as you wish), uncheck the box Programmatic Access and check Console Password Logon.
You can automatically generate password or force user to change the password when logging next time and enable or disable Multi Facto Authentication (MFA). - User was created.
- Select user and click Add Permissions.
- Search for the System Policy with name ReadOnlyAccess and click ok.
- User can now login.
The maximum transmission unit (MTU) of a network connection is the size, in bytes, of the largest permissible packet that can be passed over the connection. The larger the MTU of a connection, the more data that can be passed in a single packet. Ethernet packets consist of the frame, or the actual data you are sending, and the network overhead information that surrounds it. The VPC of Alibaba Cloud supports 1500 bytes at max which is also the largest Ethernet packet size supported over most of the Internet. So make sure to adjust your local MTU settings accordingly.
The Maximum Segment Size (MSS) is the largest amount of data that a host can receive in a single TCP segment. In the context of an IPSec connection plus CEN, the MTU is typically the MSS plus IPv4 header size (20 bytes) plus TCP header size (20 bytes) + IPSec header size (tunnel mode: 20 bytes) + VXLan header size (50 bytes).
So make sure to adjust your MSS size accordingly that MTU + MSS <= 1500 bytes. Otherwise packet fragmentation and or packet drops will occur resulting in degraded performance.