iptables -t nat -L -nSNAT all -- 10.0.0.0/24 0.0.0.0/0 to:10.0.0.56 # 此处为拥有公网IP的ECS的内网地址
阿里云控制台,配置并修改默认路由 指定 0.0.0.0 下一跳为 带公网IP的ECS
aliyun ecs iptables nat 上网
原文:https://blog.51cto.com/phospherus/2415977