Cov txheej txheem:
Video: Yuav ua li cas koj thiaj paub tias lub subnet yog pej xeem lossis ntiag tug?
2024 Tus sau: Lynn Donovan | [email protected]. Kawg hloov kho: 2023-12-15 23:47
' tus kheej '. Public subnets muaj ib txoj hauv kev mus rau Internet Gateway; private subnets tsis txhob. Yog li ntawd, rau txiav txim yog tias ib muab subnet yog pej xeem lossis ntiag tug , koj yuav tsum tau piav qhia txog cov kab lus uas yog txuam nrog tias subnet . Qhov ntawd yuav qhia koj txoj kev thiab koj tuaj yeem sim rau 0.0.
Yog li ntawd, dab tsi ua rau subnet pej xeem?
A pej xeem subnet yog a subnet uas yog txuam nrog ib txoj kab lus uas muaj ib txoj kev mus rau lub rooj vag hauv Internet. Ib tug private subnet nrog qhov loj / 24 IPv4 CIDR thaiv (piv txwv: 10.0. 1.0/24). Qhov no muab 256 tus IPv4 chaw nyob.
Qhov thib ob, yog dab tsi yog ib tug private subnet AWS? A tus kheej subnet muaj NAT Gateway txuas thiab qhov no yog siv los ntawm EC 2 piv txwv kom nkag tau hauv internet. EC 2 piv txwv hauv a tus kheej subnet tsis muaj ib tug elastic IP txuas. Tsis muaj subnet configuration uas yuav muab pej xeem thiab private subnets hauv ib subnet.
Tsis tas li ntawd, kuv yuav ua li cas thiaj li ua rau kuv lub subnet ntiag tug?
Tsim VPC nrog Public thiab Private subnets
- Tsim VPC. Nkag mus rau AWS tswj console thiab mus rau VPC console.
- Tsim Public Subnet. Nco ntsoov xaiv "MyVPC" hauv qab "VPC" cov ntawv qhia zaub mov thiab nkag mus 10.0.
- Tsim Private Subnet. Tam sim no tsim Private subnet nrog CIDR 10.0.2.0/24.
- Tsim thiab Txuas "Internet Gateway"
- Ntxiv ib txoj hauv kev rau Public Subnet.
Kuv yuav ua li cas thiaj ua tau AWS private subnet?
Tsim ib tug Private Subnet
- Nyob rau hauv lub pane navigation, xaiv Subnets. Tom qab ntawd xaiv Tsim Subnet.
- Hauv Tsim Subnet dialog box, ua cov hauv qab no: Rau Lub Npe lossis, ntaus lub npe uas txheeb xyuas tau xws li CloudHSM ntiag tug subnet.
- Rov ua cov kauj ruam 2 thiab 3 los tsim subnets rau txhua qhov seem Muaj nyob hauv cheeb tsam.
Pom zoo:
Kuv yuav ua li cas thiaj paub tias tus IP chaw nyob yog tus kheej lossis pej xeem?
Tus IP ntiag tug tuaj yeem paub los ntawm kev nkag mus rau "ipconfig" ntawm kev hais kom ua. Pej xeem IP tuaj yeem paub los ntawm kev tshawb nrhiav "dab tsi yog kuv tus IP" ongoogle. Ntau: Dhau li ntawm tus IP chaw nyob, so yog pej xeem
Kuv yuav ua li cas thiaj ua tau AWS pej xeem thiab ntiag tug subnet?
Tsim VPC nrog Public thiab Private subnets Tsim VPC. Nkag mus rau AWS tswj console thiab mus rau VPC console. Tsim Public Subnet. Nco ntsoov xaiv "MyVPC" hauv qab "VPC" cov ntawv qhia zaub mov thiab nkag mus 10.0. Tsim Private Subnet. Tam sim no tsim Private subnet nrog CIDR 10.0.2.0/24. Tsim thiab Txuas "Internet Gateway" Ntxiv ib txoj hauv kev rau Public Subnet
Kuv yuav ua li cas thiaj tsim tau tus yuam sij ntiag tug thiab pej xeem hauv OpenSSL?
Tsim Public thiab Private Keys nrog openssl.exe Hauv Windows: Qhib Command Prompt (Start> Programs> Accessories> Command Prompt). Nias ENTER. Tus yuam sij ntiag tug yog tsim thiab khaws cia rau hauv cov ntaub ntawv npe 'rsa. Tsim tus yuam sij ntiag tug - Linux. Qhib lub Terminal. Nkag mus rau hauv daim nplaub tshev nrog ListManager directory. Nias ENTER. Qhib lub Terminal
Koj tus IP chaw nyob puas yog pej xeem lossis ntiag tug?
Yeej muaj 2 hom IP chaw nyob.Public IP chaw nyob yog tus IP chaw nyob uas tau sau npe ua ntej siv. IANA yog lub luag haujlwm rau sau npe IPaddresses rau cov koom haum. Private IPaddress yog tus IP chaw nyob uas tau tshwj tseg los ntawm IANA thiab lawv tsis tuaj yeem siv hauv internet
Yuav ua li cas koj tsim ib tug pej xeem thiab ntiag tug key khub?
Yuav Ua Li Cas Tsim Ib Tug Pej Xeem/Private Key Pair Pib cov txheej txheem tseem ceeb. myLocalHost% ssh-keygen Tsim pej xeem / ntiag tug rsa tus yuam sij. Nkag mus rau txoj kev mus rau cov ntaub ntawv uas yuav tuav tus yuam sij. Sau tus password rau kev siv koj tus yuam sij. Rov sau tus password kom paub meej tias nws. Tshawb xyuas cov txiaj ntsig. Luam tus yuam sij pej xeem thiab ntxiv tus yuam sij rau $HOME