The following procedure shows you how to add rules to the default security group. 下面的步驟將引導(dǎo)你如何添加規(guī)則到默認(rèn)安全組。To add rules to the default security group 添加規(guī)則到默認(rèn)安全組 Log in to the OpenStack dashboard. 第一步:登錄OpenStack控制面板 If you are a member of multiple projects, select a project from the drop-down list at the top of the Project tab. 第二步:如果你是多個(gè)項(xiàng)目組的成員,請(qǐng)?jiān)陧?xiàng)目tab頁的頂部的下拉菜單列表中選擇一個(gè)項(xiàng)目。 Click the Access & Security category. 第三步:點(diǎn)擊“訪問與安全”欄目。 The dashboard shows the security groups that are available for this project. OpenStack控制面板上將顯示這個(gè)項(xiàng)目的所有可用的安全組。
Select the default security group and click Edit Rules. 第四步:選擇默認(rèn)安全組,點(diǎn)擊“編輯規(guī)則”鏈接。 The Security Group Rules page appears:控制面
Add a TCP rule 第五步:添加一個(gè)TCP規(guī)則 Click Add Rule. 點(diǎn)擊“添加規(guī)則” The Add Rule window appears. 添加規(guī)則的窗口顯示如下: In the IP Protocol list, select TCP . (在IP協(xié)議列表中,選擇TCP。) In the Open list, select Port .(在“開放”列表中,選擇Port) In the Port box, enter 22 . (在端口輸入框,輸入22) In the Source list, select CIDR . (在Source列表中,選擇CIDR) In the CIDR box, enter 0.0.0.0/0 .(在“無類域內(nèi)路由”輸入框中,輸入0.0.0.0/0) Click Add. (點(diǎn)擊“添加”) Port 22 is now open for requests from any IP address. 現(xiàn)在,端口22就為所有IP地址的請(qǐng)求開放了。 If you want to accept requests from a particular range of IP addresses, specify the IP address block in theCIDR box. 如果你想只接愛指定范圍的IP地址的請(qǐng)求,則需要在CIDR輸入框中指定IP地址。
Add an ICMP rule 第六步:添加ICMP規(guī)則 Click Add Rule. 點(diǎn)擊“添加規(guī)則” The Add Rule window appears. 添加規(guī)則的窗口顯示如下: In the IP Protocol list, select ICMP . (在IP協(xié)議列表中,選擇ICMP) In the Type box, enter -1 . (在“類型”輸入框中,輸入-1) In the Code box, enter -1 . (在“代碼”輸入框中,輸入-1) In the Source list, select CIDR . (在“Source”列表中,選擇CIDR) In the CIDR box, enter 0.0.0.0/0 . (在CIDR輸入框中,輸入0.0.0.0/0) Click Add. (點(diǎn)擊“添加”)
|