tencent cloud

Feedback

Manage instance firewall

Last updated: 2023-12-06 11:38:46

    Overview

    A firewall is an important method to protect the Lighthouse instance's network security. Its security protection features are equivalent to security groups in CVM. You can configure firewall rules to allow or reject access to Lighthouse instances over the private or public network.
    Note:
    The firewall can control only the traffic flowing to the instance. All traffic going out from the instance is allowed by default.

    Concepts

    Outbound traffic: Traffic generated when data is transmitted from within the instance to outside the instance through the public or private network.
    Inbound traffic: Traffic generated when data is transmitted from outside the instance to within the instance through the public or private network.

    Firewall Rule

    Quota limits

    Up to 100 firewall rules can be created for each Lighthouse instance.

    Parameters

    A Lighthouse instance firewall can have multiple firewall rules, each of which contains the following parameters:
    Parameter
    Description
    Type
    Custom: Specify the protocol and port as needed.
    Common templates, such as Windows login (3389) and Linux login (22), are provided. If you choose a template, the corresponding protocol and port are entered automatically and cannot be modified.
    Source
    Specified IPv4 address or range.
    Protocol
    Protocol type. You can select TCP, UDP, or ICMP.
    Port
    Port number. You can specify one or multiple ports.
    Policy
    Allow: Allow traffic to this port
    Reject: Discard all data packets going to this port without any response.
    Notes
    A short description of the rule

    Rule priorities

    Firewall rules have priorities. The rule at the top of the list has the highest priority and will take effect first, while the rule at the bottom has the lowest priority and will take effect last.
    If there is a rule conflict, the rule with the higher priority will prevail by default.
    When traffic goes into an instance associated with the firewall, the firewall rules are calculated from top to bottom. If a rule is hit and takes effect, the subsequent rules do not take effect.
    You can adjust the priority of existing firewall rules as instructed in Modifying firewall rule priority.

    Directions

    Note:
    You can add or delete firewall rules as follows, and the modification will take effect immediately.

    Adding a firewall rule

    1. Log in to the Lighthouse console, select the target instance and enter the details page.
    2. On the instance details page, select the Firewall tab, and click Add a rule.
    
    
    Note:
    After a Lighthouse instance is created, the ICMP protocol will be allowed and ports 80 (HTTP service), 443 (HTTPS service), 22 (Linux SSH service), and 3389 (Windows RDP service) will be opened by default.
    You can modify the policies of these ports to Reject, or delete the firewall rules as needed on the instance details page. If the firewall rules are deleted, the port will be disabled by default.
    3. In the Create a rule pop-up window, add a rule by referring to the following: This document takes adding a rule of allowing traffic whose source IP is 192.168.1.1, protocol type is TCP, and ports are 3306–20000 as an example. Add rules based on your actual conditions. For more information on rule parameters, see Parameters.
    
    
    Type: To set the protocol type and port, select Custom.
    Specified source: To restrict the source IPs, select Enable. If Enable is not selected, the rule takes effect for all IPv4 source addresses.
    Source IP: The firewall rule only takes effect on the specified source IPs. You can enter IP addresses in the following formats:
    Single IP: Such as 192.168.1.1.
    CIDR block: Such as 192.168.1.0/24.
    All IPv4 addresses: 0.0.0.0/0.
    Protocol: You can select TCP, UDP, or ICMP. This document takes TCP as an example.
    Port: You can select one or multiple ports ranging from 1 to 65535 and use commas to separate them. You can enter ports in the following formats:
    Single port: Such as 80.
    Multiple discrete ports: Such as 80,443.
    Continuous ports: Such as 3306-20000.
    All ports: ALL.
    Policy: Allow or Refuse. Allow is selected by default.
    Allow: Traffic to this port is allowed.
    Reject: Data packets will be discarded without any response.
    Notes: A short description of the rule for easier management.
    4. Click OK.

    Deleting a firewall rule

    1. Log in to the Lighthouse console, select the target instance and enter the details page.
    2. On the instance details page, select the Firewall tab.
    3. On the Firewall tab, select Delete on the right of the target firewall rule.
    
    
    4. In the pop-up prompt box, click OK.

    Modifying a firewall rule

    1. Log in to the Lighthouse console, select the target instance and enter the details page.
    2. On the instance details page, select the Firewall tab.
    3. On the Firewall tab, select Edit on the right of target firewall rule.
    
    
    4. In the pop-up window, modify the configurations with reference to Parameters. Click OK.
    Note:
    If the Type is not Custom, the protocols and ports cannot be modified. If you want to modify them, please change the application type to Custom.
    You do not need to restart the Lighthouse instance after the modification.

    Modifying firewall rule priority

    1. Log in to the Lighthouse console, select the target instance and enter the details page.
    2. On the instance details page, select the Firewall tab, and click Sort.
    3. Select
    
    before the target rule, drag the rule to the desired position, and drop it as shown below:
    
    
    4. Click Save below the list.
    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