Translations:Cloud Quick Start/16/fr: Difference between revisions

From Alliance Doc
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Si vous faites cet exercice pour la première fois, votre instance locataire n'a pas encore reçu une adresse IP externe. Pour assigner une adresse IP publique à une instance, cliquez sur l'icône ▼ pour dérouler le menu dans la colonne ''Actions'', puis sélectionnez ''Associer une adresse IP flottante''; ceci fait afficher la fenêtre Gérer les Associations d'IP flottantes. Il n'y a qu'un groupe d'adresses publiques et le groupe approprié sera sélectionné par défaut; cliquez sur le bouton ''Associer''. La fenêtre ''Allouer une IP flottante'' est affichée et montre l'adresse IP et le port de son [https://en.wikipedia.org/wiki/Network_address_translation NAT]; cliquez sur le bouton ''Allocation d'IP''.
#''Assign a Public IP Address''
The ''Manage Floating IP Associations'' screen is displayed again, indicating the IP address and the port (or VM) to which it will be associated (or more specifically [https://en.wikipedia.org/wiki/Network_address_translation NATted]); click on the ''Associate'' button.
#*Ensure you are still viewing the '''Instances''' list where you were redirected as your VM launched. If you need to use the navigation panel on the left hand side and go to '''Compute -> Instances'''.
#*Click the drop down arrow menu on the far right of the row for your VM and select  ''Associate Floating IP'' from the drop-down menu button (indicated by ▼).
#*If this is your first time associating a floating IP, you need to click on the “+” sign in the ''IP Address'' dialog box. If you need to allocate a public IP address for this VM again in the future you can select one from the list by clicking the ▼ in the '''IP Address''' dialogue box.
#*Click on the ''Associate'' button.
#*You should now have two IP address in your IP address column. One will be of the form <code>192.168.X.Y</code>, the other one is your public IP. You can also find a list of your public IP addresses and their associated projects by going to '''Network->Floating IPs. You will need your public IP when you are trying to connect to your VM.'''
#''Configure Firewall''
#*Using the left navigation pane go to '''Network->Security Groups'''.
#*On the group row named '''default''', click the [[File:Manage-Rules-Button.png]] on the far right.
#*On the next screen, click [[File:Add-Rule-Button.png]] near the top right corner.
#*In the ''' Rules''' drop-down menu select '''SSH'''
#* The '''Remote''' Text box should automatically have '''CIDR''' in it, '''Do not change this.'''
#*In the '''CIDR''' dialogue box replace the <code>0.0.0.0/0</code> in the CIDR text box with <code>your-ip/32</code>. Note that this is the IP address of the physical computer you are wanting to use to connect to your VM. If you don't know your current IP address you can see it by going to [http://ipv4.icanhazip.com ipv4.icanhazip.com] in your browser. If you want to access your VM from other IPs you can add more rules with different IP addresses. If you want to specify a range of IP addresses use [https://www.ipaddressguide.com/cidr this tool] to calculate your CIDR rule for a range of IP addresses.
#*Finally, click the ''Add'' button. Now the rule you just created should show up on the list in security groups.
#Important Notes
#*'''Do not remove the default security rules''' as this will affect the ability of your VM to function properly (see [[OpenStack#Security_Groups|security groups]]).
#*'''Security rules cannot be edited''', they can only be deleted and re-added.So if you make a mistake when creating a security group rule you need to delete it using the '''Delete This''' button on the far left of the row for that rule in the security groups screen, and then re-add it correctly from scratch using the '''Add Rule''' button.
#*If you change your network location (and therefore your IP address) then you need to add the security rule described in this section for that new IP address. Remember that when you change your physical location (example working on-campus vs working from home) you are changing your network location.
#*If you do not have a static IP address for the network you are using remember that it can sometimes change, so if you can no longer connect to your VM after a period of time sometimes it's worth checking to see if your IP address has changed. You can do this by putting [http://ipv4.icanhazip.com ipv4.icanhazip.com] in your browser and seeing if it matches what you have in your security rule. If your IP address changes frequently, but the left-most numbers always stay the same, it could make more sense to add a range of IP addresses rather than frequently modifying your security rules. Use [https://www.ipaddressguide.com/cidr this tool] for determining a CIDR IP range from an IP range or learn more about CIDR notation [https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation here].
#*It can be helpful to add a description about what a security rule is for, e.g. home or office. That way you will know which rule is no longer needed if you need to add a new rule while connecting, for example, from home.

Revision as of 15:34, 18 June 2020

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Cloud Quick Start)
#Assign a public IP address
#*Ensure you are still viewing the instances list where you were redirected as your VM launched. If you need to use the navigation panel, select options <i>Compute->Instances</i> on the OpenStack menu.
#*Click on the drop-down arrow menu (indicated by &#x25BC;) on the far right of the row for your VM and select <i>Associate Floating IP</i>, then in the <i>Allocate Floating IP</i> window, click on the <i>Allocate IP</i> button. If this is your first time associating a floating IP, you need to click on the “+” sign in the <i>Manage Floating IP Associations</i> dialog box. If you need to allocate a public IP address for this VM again in the future, you can select one from the list by clicking the &#x25BC; in the <i>IP Address</i> field.
#*Click on the <i>Associate</i> button.
#*You should now have two IP addresses in your IP address column. One will be of the form <code>192.168.X.Y</code>, the other is your public IP. You can also find a list of your public IP addresses and their associated projects by going to <i>Network->Floating IPs</i>. You will need your public IP when you are trying to connect to your VM.
#Configure the firewall
#*On the OpenStack left menu, select <i>Network->Security Groups</i>.
#*On the group row named <i>default</i>, click on the </i>Manage Rules</i> button on the far right.
#*On the next screen, click on the <i>+Add Rule</i> button near the top right corner.
#*In the <i>Rule</i> drop-down menu, select <i>SSH</i>.
#* The <i>Remote</i> text box should automatically have <i>CIDR</i> in it; do not change this.
#*In the <i>CIDR</i> text box, replace <code>0.0.0.0/0</code> with <code>your-ip/32</code>. Note that this is the IP address of the physical computer you are wanting to use to connect to your VM. If you don't know your current IP address, you can see it by going to [http://ipv4.icanhazip.com ipv4.icanhazip.com] in your browser. If you want to access your VM from other IPs, you can add more rules with different IP addresses. If you want to specify a range of IP addresses use [https://www.ipaddressguide.com/cidr this tool] to calculate your CIDR rule for a range of IP addresses.
#*Finally, click on the <i>Add</i> button. Now the rule you just created should show up on the list in security groups.
#Important notes
#*<b>Do not remove the default security rules</b> as this will affect the ability of your VM to function properly (see [[Managing_your_cloud_resources_with_OpenStack#Security_Groups|Security Groups]]).
#*<b>Security rules cannot be edited</b>, they can only be deleted and re-added. If you make a mistake when creating a security group rule, you need to delete it using the <i>Delete Rule</i> button on the far left of the row for that rule in the security groups screen, and then re-add it correctly from scratch using the <i>+Add Rule</i> button.
#*If you change your network location (and therefore your IP address) then you need to add the security rule described in this section for that new IP address. Remember that when you change your physical location (example working on campus vs working from home) you are changing your network location.
#*If you do not have a static IP address for the network you are using, remember that it can sometimes change, so if you can no longer connect to your VM after a period of time sometimes it's worth checking to see if your IP address has changed. You can do this by putting [http://ipv4.icanhazip.com ipv4.icanhazip.com] in your browser and seeing if it matches what you have in your security rule. If your IP address changes frequently, but the left most numbers always stay the same, it could make more sense to add a range of IP addresses rather than frequently modifying your security rules. Use [https://www.ipaddressguide.com/cidr this tool] for determining a CIDR IP range from an IP range or learn more about CIDR notation [https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation here].
#*It can be helpful to add a description about what a security rule is for (e.g. home or office). That way you will know which rule is no longer needed if you want to add a new rule while connecting, for example, from home.
  1. Assign a Public IP Address
    • Ensure you are still viewing the Instances list where you were redirected as your VM launched. If you need to use the navigation panel on the left hand side and go to Compute -> Instances.
    • Click the drop down arrow menu on the far right of the row for your VM and select Associate Floating IP from the drop-down menu button (indicated by ▼).
    • If this is your first time associating a floating IP, you need to click on the “+” sign in the IP Address dialog box. If you need to allocate a public IP address for this VM again in the future you can select one from the list by clicking the ▼ in the IP Address dialogue box.
    • Click on the Associate button.
    • You should now have two IP address in your IP address column. One will be of the form 192.168.X.Y, the other one is your public IP. You can also find a list of your public IP addresses and their associated projects by going to Network->Floating IPs. You will need your public IP when you are trying to connect to your VM.
  2. Configure Firewall
    • Using the left navigation pane go to Network->Security Groups.
    • On the group row named default, click the Manage-Rules-Button.png on the far right.
    • On the next screen, click Add-Rule-Button.png near the top right corner.
    • In the Rules drop-down menu select SSH
    • The Remote Text box should automatically have CIDR in it, Do not change this.
    • In the CIDR dialogue box replace the 0.0.0.0/0 in the CIDR text box with your-ip/32. Note that this is the IP address of the physical computer you are wanting to use to connect to your VM. If you don't know your current IP address you can see it by going to ipv4.icanhazip.com in your browser. If you want to access your VM from other IPs you can add more rules with different IP addresses. If you want to specify a range of IP addresses use this tool to calculate your CIDR rule for a range of IP addresses.
    • Finally, click the Add button. Now the rule you just created should show up on the list in security groups.
  3. Important Notes
    • Do not remove the default security rules as this will affect the ability of your VM to function properly (see security groups).
    • Security rules cannot be edited, they can only be deleted and re-added.So if you make a mistake when creating a security group rule you need to delete it using the Delete This button on the far left of the row for that rule in the security groups screen, and then re-add it correctly from scratch using the Add Rule button.
    • If you change your network location (and therefore your IP address) then you need to add the security rule described in this section for that new IP address. Remember that when you change your physical location (example working on-campus vs working from home) you are changing your network location.
    • If you do not have a static IP address for the network you are using remember that it can sometimes change, so if you can no longer connect to your VM after a period of time sometimes it's worth checking to see if your IP address has changed. You can do this by putting ipv4.icanhazip.com in your browser and seeing if it matches what you have in your security rule. If your IP address changes frequently, but the left-most numbers always stay the same, it could make more sense to add a range of IP addresses rather than frequently modifying your security rules. Use this tool for determining a CIDR IP range from an IP range or learn more about CIDR notation here.
    • It can be helpful to add a description about what a security rule is for, e.g. home or office. That way you will know which rule is no longer needed if you need to add a new rule while connecting, for example, from home.