No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionInsight HD 6.5.0 Administrator Guide 02

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring a Trusted IP Address to Access LDAP

Configuring a Trusted IP Address to Access LDAP

Scenario

By default, the LDAP service deployed in the OMS and cluster can be accessed by any IP address. To enable the LDAP service to be accessed by only trusted IP addresses, you can configure the INPUT policy in the iptables filtering list.

Impact on the System

After the configuration, the LDAP service cannot be accessed by IP addresses that are not configured. Before the expansion, the added IP addresses need to be configured as trusted IP addresses.

Prerequisites

  • You have collected the management plane IP addresses and service plane IP addresses of all nodes in the cluster and all floating IP addresses.
  • You have obtained the root user account and password of all nodes in the cluster.

Procedure

Configure trusted IP addresses for the LDAP service on the OMS.

  1. Confirm the management node IP address. For details, see Logging In to the Management Node.
  2. Log in to FusionInsight Manager. For details, see Logging In to FusionInsight Manager.
  3. Choose System > OMS, and choose oldap > Modify Configuration, and view the OMS LDAP port number (which is the value of LDAP Listening Port). The default port number is 21750.
  4. Use PuTTY to log in to the active management node using the active management IP address as user root.
  5. Run the following command to view the INPUT policy in the iptables filtering list:

    iptables -L

    For example, when no rule is configured, the INPUT policy is displayed as follows:

    Chain INPUT (policy ACCEPT) 
    target     prot opt source               destination              

  6. Run the following command to configure all IP addresses used by the cluster as trusted IP addresses. Each IP address needs to be added independently.

    iptables -A INPUT -s Trusted IP address -p tcp --dport Port number -j ACCEPT

    For example, to configure 10.0.0.1 as a trusted IP address and enable it to access port 21750, you need to run the following command:

    iptables -A INPUT -s 10.0.0.1 -p tcp --dport 21750 -j ACCEPT

  7. Run the following command to configure all IP addresses as untrusted IP addresses. The trusted IP addresses will not be affected by this rule.

    iptables -A INPUT -p tcp --dport Port number -j DROP

    For example, to disable all IP addresses to access port 21750, you need to run the following command:

    iptables -A INPUT -p tcp --dport 21750 -j DROP

  8. Run the following command to view the modified INPUT policy in the iptables filtering list:

    iptables -L

    For example, after a trusted IP address is configured, the INPUT policy is displayed as follows:

    Chain INPUT (policy ACCEPT) 
    target     prot opt source               destination          
    ACCEPT     tcp  --  10.0.0.1             anywhere            tcp dpt:21750 
    DROP       tcp  --  anywhere             anywhere            tcp dpt:21750     

  9. Run the following command to view the rules and rule numbers in the iptables filtering list:

    iptables -L -n --line-number

    Chain INPUT (policy ACCEPT) 
    num target     prot opt source               destination          
    1 DROP       tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:21750     

  10. Run the following command to delete the desired rule from the iptables filtering list based on site requirement:

    iptables -D INPUT number of the rule to be deleted

    For example, to delete rule 1, run the following command:

    iptables -D INPUT 1

  11. Use PuTTY to log in to the standby management node using the standby management IP address as user root, and repeat Step 5 to Step 10.

Configure trusted IP addresses for the LDAP service in the cluster.

  1. Log in to FusionInsight Manager.
  2. Choose Cluster > Service > LdapServer > Instance, and view the nodes where the LDAP services locate.
  3. Go to the Configuration page, and view the cluster LDAP port number (which is the value of LDAP_SERVER_PORT). The default port number is 21780.
  4. Use PuTTY to log in to the LDAP node using the LDAP service IP address as user root.
  5. Run the following command to view the INPUT policy in the iptables filtering list:

    iptables -L

    For example, when no rule is configured, the INPUT policy is displayed as follows:

    Chain INPUT (policy ACCEPT) 
    target     prot opt source               destination              

  6. Run the following command to configure all IP addresses used by the cluster as trusted IP addresses. Each IP address needs to be added independently.

    iptables -A INPUT -s Trusted IP address -p tcp --dport Port number -j ACCEPT

    For example, to configure 10.0.0.1 as a trusted IP address and enable it to access port 21780, you need to run the following command:

    iptables -A INPUT -s 10.0.0.1 -p tcp --dport 21780 -j ACCEPT

  7. Run the following command to configure all IP addresses as untrusted IP addresses. The trusted IP addresses will not be affected by this rule.

    iptables -A INPUT -p tcp --dport Port number -j DROP

    For example, to disable all IP addresses to access port 21780, you need to run the following command:

    iptables -A INPUT -p tcp --dport 21780 -j DROP

  8. Run the following command to view the modified INPUT policy in the iptables filtering list:

    iptables -L

    For example, after a trusted IP address is configured, the INPUT policy is displayed as follows:

    Chain INPUT (policy ACCEPT) 
    target     prot opt source               destination          
    ACCEPT     tcp  --  10.0.0.1             anywhere            tcp dpt:21780 
    DROP       tcp  --  anywhere             anywhere            tcp dpt:21780     

  9. Run the following command to view the rules and rule numbers in the iptables filtering list:

    iptables -L -n --line-number

    Chain INPUT (policy ACCEPT) 
    num target     prot opt source               destination          
    1 DROP       tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:21750     

  10. Run the following command to delete the desired rule from the iptables filtering list based on site requirement:

    iptables -D INPUT number of the rule to be deleted

    For example, to delete rule 1, run the following command:

    iptables -D INPUT 1

  11. Use PuTTY to log in to the LDAP node using the IP address of another LDAP service IP address as user root, and repeat Step 16 to Step 21.
Download
Updated: 2019-05-17

Document ID: EDOC1100074522

Views: 6257

Downloads: 12

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next