Disabling Source and Destination Check (HA Load Balancing Cluster Scenario)
Required Tools
Postman or JMeter
Involved APIs
The following APIs are invoked:
No. |
Method |
URI |
Description |
---|---|---|---|
1 |
POST |
/v3/auth/tokens |
Obtain a token. |
2 |
PUT |
/v2.0/ports/{port_id} |
Disable the source/destination check function for the ECS NIC. |
Procedure
- Obtain a token.
Method
POST
URL
IAM address: Port number/v3/auth/tokens
Body (Example)
{
"auth":{
"identity":{
"methods": ["password"],
"password":{
"user":{
"name": "user_name",
"domain":{
"name":"domain_name"
},
"password":"user_password"
}
}
},
"scope":{
"project":{
"name":"project_name"
}
}
}
}
- Change the allowed-address-pairs of the ECS NIC to 1.1.1.1/0 to disable the source/destination check.
Method
PUT
URL
VPC address: Port number/v2.0/ports/{port_id}
Body
{
"port": {
"allowed_address_pairs": [
{"ip_address":"1.1.1.1/0"}
]
}
}
Description
In the URL, {port_id} is the ID of the ECS NIC bound with the virtual IP address.
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.
Chatbot