tencent cloud

Feedback

Configuring Public Network Address

Last updated: 2023-03-14 15:48:49
    This document describes how to enable/disable the public network address in the TencentDB for Redis console. You can use the system-assigned domain name and port to Accessing Database over Public Network, making it easier for you to test, manage, use, and develop the database on a daily basis.
    Notes
    The instance service downtime caused by public network errors won't be counted into the "Single Instance Service Downtime" in TencentDB for Redis Service Level Agreement (SLA).
    Public network access may expose your instances to security threats, and service availability is not guaranteed by SLA. Therefore, we recommend that you access Redis over the public network only when testing, managing, or assisting in managing databases. In the production environment, access Redis over the private network.

    Notes

    When it is enabled, you can use the system-assigned domain name and port to access TencentDB for Redis via public network. It takes about 5 minutes to take effect.
    After the public network access is enabled, it will be controlled by the security group policy. You should configure the database access source in the security group's inbound rules and open the protocol ports (both the private network port (6379 by default) and public network port) as instructed in Configuring Security Group.

    Use Limits

    Only instances in VPCs can enable the public network address. If an instance is in the classic network, switch it to VPC first before enabling public network access.
    Currently, the public network address can be enabled for the instances in Chengdu, Beijing, Shanghai, and Guangzhou regions. To use it in other regions, you can access the TencentDB for Redis instance through iptables-based forwarding. For more information, see iptables Forwarding.

    Prerequisites

    To enable public network access, you need to disable password-free access.

    Enabling the Public Network Address

    1. Log in to the TencentDB for Redis console, click an instance ID in the instance list, and enter the instance details page.
    2. Click Enable next to Public Network Address in the Network Info section.
    Notes
    After the public network access is enabled, it will be controlled by the security group policy. You should configure the database access source in the security group's inbound rules and open the protocol ports (both the private network port (6379 by default) and public network port) as instructed in Configuring Security Group.
    
    3. In the pop-up window, confirm that everything is correct and click OK.
    
    4. Return to the instance details page, where you can see the instance in the Enabling public network status. If the status stays the same for a long time, refresh the page.
    5. If Public Network Address shows an address comprising a domain name and port, the address is enabled successfully. Now you can use it to access Redis over the public network.

    Disabling the Public Network Address

    1. Log in to the TencentDB for Redis console, click an instance ID in the instance list, and enter the instance details page.
    2. Click Disable next to Public Network Address in the Network Info section.
    3. In the pop-up window, confirm that everything is correct and click OK.
    4. Return to the instance details page, where you can see the instance in the Disabling public network status and Public Network Address display nothing.

    Related APIs

    API
    Description
    Enables public network access
    Disables public network access
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support