top of page

Basic Configuration Guide for Huawei Firewalls

Introduction

Huawei firewalls are powerful security devices used to control and secure network traffic. They are known for their robustness and flexibility in different enterprise network environments. This post will cover the initial setup and basic configuration required to get your Huawei firewall up and running.


Step 1: Initial Device Setup:

Before configuring the firewall, it is essential to connect and access the device:

  1. Connect to the Console Port: Use a console cable to connect your PC to the console port of the firewall.

  2. Launch a Terminal Emulator: Open a terminal emulator like PuTTY or SecureCRT, set the baud rate to 9600 and establish a connection.

  3. Login to the Firewall: Use the default username and password to login. For a new device, the default username is usually admin, and the password might be Admin@123 or left empty.


Step 2: Configure Basic Settings:

After accessing the firewall, you need to configure some essential settings, such as hostname, time zone, and interface IP addresses.

  1. Set the Device Hostname:

    shell

    system-view sysname MyHuaweiFirewall

    This command will set the device name to MyHuaweiFirewall, making it easier to identify in your network.


  2. Configure the Time Zone:

    shell

    clock timezone GMT add 0 0

    Set the appropriate time zone for accurate timestamping of logs and alerts.


  3. Assign IP Address to the Interface:

    Choose the interface you want to configure, and assign an IP address:

    shell

    interface GigabitEthernet0/0/1 ip address 192.168.1.1 255.255.255.0

    Replace GigabitEthernet0/0/1 with the desired interface and update the IP address and subnet mask accordingly.


Step 3: Configuring Management Access:

Enable management access to the firewall using HTTPS, SSH, or Telnet.

  1. Enable HTTP/HTTPS Access:

    shell

    http server enable https server enable

    This will allow the firewall to be managed via a web browser.


  2. Enable SSH for Secure CLI Access:

    shell

    ssh user admin service-type ssh ssh user admin authentication-mode password

    This configuration allows secure CLI management of the firewall.


Step 4: Configuring Security Zones:

Creating security zones helps segment network traffic and apply appropriate policies:

  1. Create Security Zones:

    shell

    security-zone name Trust security-zone name Untrust

    Here, we create two zones: Trust for internal traffic and Untrust for external traffic.


  2. Assign Interfaces to Security Zones:

    shell

    interface GigabitEthernet0/0/1 zone Trust interface GigabitEthernet0/0/2 zone Untrust

    The GigabitEthernet0/0/1 interface is assigned to the Trust zone, while GigabitEthernet0/0/2 is assigned to the Untrust zone.


Step 5: Configuring NAT (Network Address Translation):

If you need to enable communication between different network segments, configuring NAT is essential.

  1. Create a Source NAT Rule:

    shell

    nat-policy rule name NAT-RULE-1 source-zone Trust destination-zone Untrust action source-nat

    This NAT rule enables internal clients from the Trust zone to access external resources through the Untrust zone.


Step 6: Configuring Security Policies:

Define security policies to control traffic between different zones:

  1. Create a Security Policy:

    shell

    security-policy rule name Allow_HTTP source-zone Trust destination-zone Untrust source-ip 192.168.1.0 255.255.255.0 destination-ip any service http action permit

    This rule allows HTTP traffic from the Trust zone to the Untrust zone.


Step 7: Saving the Configuration:

After completing the configuration, save the settings to ensure they persist after a reboot.

  1. Save Configuration:

    shell

    save

    Confirm the save operation by pressing Y when prompted.


Conclusion:

This post provides a basic walkthrough to get your Huawei firewall configured and operational. Depending on your network needs, you can add more advanced settings like VPN, routing, and deep packet inspection. For more detailed configurations, refer to Huawei's official documentation or reach out with specific queries in the comments below.




Recent Posts

See All
Huawei | Local Port Mirroring

What Is Port Mirroring? Port mirroring is used on a network switch or a router to send a copy of network packets seen on the specified...

 
 
 
SNMPv3 on Huawei

Simple Network Management Protocol is an Internet Standard protocol for collecting and organizing information about managed devices on IP...

 
 
 
Programming and IT solutions guide on STENGE.info blog
Cybersecurity and Networking tutorials on STENGE.info
IT infrastructure solutions and technology tutorials
STENGE.info logo - Tech Blog for IT Solutions and Tutorials
bottom of page