官术网_书友最值得收藏!

Getting ready

We need an AWS account and user with proper permissions for creating a NAT instance on EC2. Create an EC2 in the same way as the previous recipe. The only difference is, you don't put any Advanced Details in the Choose Network page. In the security group page, create NATSG security group and attach the same with instance with the following rules. We are allowing all traffic for simplicity. However, you should only put the required CIDR ranges. 

NATSG: Rules

Inbound

Type

Protocol

Port range

Source

HTTP

TCP

80

0.0.0.0/0 and ::/0

HTTPS

TCP

443

0.0.0.0/0 and ::/0

SSL

TCP

22

0.0.0.0/0 and ::/0

Outbound

Destination

Protocol

Port range

Comments

All traffic

TCP

ALL

0.0.0.0/0 and ::/0

 

You can use the same key pair created before for this instance as well. In the Add tag page, put Nat Instance in value for Name and Key. We also need to create an Elastic IP for attaching it to a NAT instance. This we shall show in the recipe.

主站蜘蛛池模板: 阿合奇县| 漳平市| 屯门区| 西安市| 威宁| 阿鲁科尔沁旗| 开原市| 和林格尔县| 宜州市| 太湖县| 贵南县| 绵竹市| 南部县| 满洲里市| 石嘴山市| 延吉市| 外汇| 红桥区| 永定县| 鞍山市| 烟台市| 汉寿县| 潮安县| 巧家县| 陵水| 苏尼特右旗| 合阳县| 通化县| 明溪县| 芜湖县| 玉环县| 遂溪县| 银川市| 乾安县| 大方县| 合江县| 长汀县| 老河口市| 黔江区| 广东省| 长海县|