# Modifying Firewall Rules

1. In the ECS list, locate the required ECS and click Remote Login.
2. Enter the username and password. After the login is successful, run the following command to check the iptables configuration:

       iptables -S

   - The port next to --dport indicates the port that can be accessed.
   - Perform the following operations to ensure that the port can be accessed:
     - Add an iptables rule to allow access to the port.
     - Run the following command to disable the firewall:

           systemctl stop iptables

Parent topic: Reference