aliyun ecs iptables nat Internet

Using public IP bindings Ali cloud ECS doing gateway to other non-public IP ECS to provide Internet services.
Iptables rule on the ECS do have public IP

-L -n -t NAT iptables
SNAT All - 10.0.0.0/24 0.0.0.0/0 to: 10.0.0.56 # here to have a public IP network address of the ECS

aliyun ecs iptables nat Internet

Ali cloud console, configure and modify the default route to specify 0.0.0.0 as the next hop with a public IP ECS

aliyun ecs iptables nat Internet

Guess you like

Origin blog.51cto.com/phospherus/2415977