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

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.

主站蜘蛛池模板: 定西市| 襄汾县| 雅安市| 宝山区| 松滋市| 长沙县| 綦江县| 古蔺县| 南澳县| 松溪县| 长丰县| 黔南| 岗巴县| 郸城县| 新巴尔虎左旗| 宁海县| 福安市| 台北县| 昭觉县| 嵊州市| 禄劝| 建德市| 马龙县| 阿城市| 南漳县| 贡觉县| 包头市| 金溪县| 宝鸡市| 烟台市| 青河县| 沂水县| 武夷山市| 吉安市| 嘉峪关市| 诏安县| 新郑市| 乳山市| 兴文县| 潞西市| 苍梧县|