forked from docs/doc-exports
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com> Co-authored-by: chenjunjie <chenjunjie@huawei.com> Co-committed-by: chenjunjie <chenjunjie@huawei.com>
16 lines
2.5 KiB
HTML
16 lines
2.5 KiB
HTML
<a name="functiongraph_03_0834"></a><a name="functiongraph_03_0834"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Configure External Network Access?</h1>
|
|
<div id="body0000001255854471"><p id="functiongraph_03_0834__p1632819818264">By default, functions deployed in a VPC are isolated from the Internet. If a function needs to access both internal and external networks, add a NAT gateway for the VPC.</p>
|
|
<p id="functiongraph_03_0834__p5783210183917"><strong id="functiongraph_03_0834__b1091562415504">Prerequisites</strong></p>
|
|
<ol id="functiongraph_03_0834__ol12952935194314"><li id="functiongraph_03_0834__li1595243511433">You have created a VPC and subnet according to <a href="https://docs.otc.t-systems.com/virtual-private-cloud/umn/vpc_and_subnet/vpc/creating_a_vpc.html#" target="_blank" rel="noopener noreferrer">Creating a VPC</a>.</li><li id="functiongraph_03_0834__li14365104114439">You have obtained an elastic IP address according to <a href="https://docs.otc.t-systems.com/elastic-ip/umn/elastic_ip/assigning_an_eip_and_binding_it_to_an_ecs.html#" target="_blank" rel="noopener noreferrer">Assigning an EIP</a>.</li></ol>
|
|
<p id="functiongraph_03_0834__p15945191314420"><strong id="functiongraph_03_0834__b18764173335010">Procedure of Creating a NAT Gateway</strong></p>
|
|
<ol id="functiongraph_03_0834__ol1596711528257"><li id="functiongraph_03_0834__li1896775210258"><span>Log in to the NAT Gateway console, and click <strong id="functiongraph_03_0834__b918525511268">Create NAT Gateway</strong>.</span></li><li id="functiongraph_03_0834__li7228328192611"><span>On the displayed page, enter gateway information, select a VPC and subnet (for example, <strong id="functiongraph_03_0834__b144591537175011">vpc-01</strong>), and confirm and submit the settings to create a NAT gateway. For details, see <a href="https://docs.otc.t-systems.com/nat-gateway/umn/managing_nat_gateways/creating_a_public_nat_gateway.html" target="_blank" rel="noopener noreferrer">Creating a NAT Gateway</a>.</span></li><li id="functiongraph_03_0834__li152314107614"><span>Click the NAT gateway name. On the details page that is displayed, click <a href="https://docs.otc.t-systems.com/nat-gateway/umn/managing_snat_rules/adding_an_snat_rule.html#en-us-topic-0127489529" target="_blank" rel="noopener noreferrer">Add an SNAT Rule</a> and click <strong id="functiongraph_03_0834__b76086772411">OK</strong>.</span></li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_03_0355.html">External Resource Access FAQs</a></div>
|
|
</div>
|
|
</div>
|
|
|