---
title: "Rename a FortiGate firewall"
sidebar_label: "Rename firewall"
sidebar_position: 11
description: "How to rename a firewall"
---

import Formbricks from '@theme/MDXComponents/Formbricks';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import { TabItemLabel } from '@selectel/docux/components';

# Rename a FortiGate firewall

The settings in this guide are current for FortiOS 6.x and 7.x versions. If you are using a different FortiOS version, you can find the documentation for it in the FortiGate control panel in the top right corner or on the [official FortiGate website](https://docs.fortinet.com).

<Tabs queryString="change-fortigate-name">
  <TabItem value="graphic" default>
    <TabItemLabel>
      Graphical interface
    </TabItemLabel>

    1. [Connect to the firewall](firewalls/fortigate/connect-to-firewall.mdx).
    2. Go to **System** → **Settings**.
    3. In the **Host name** field, enter a new firewall name.
    4. Click **Apply**.
  </TabItem>

  <TabItem value="cli">
    <TabItemLabel>
      CLI
    </TabItemLabel>

    1. [Connect to the firewall](firewalls/fortigate/connect-to-firewall.mdx).
    2. Open the CLI.
    3. Change the firewall name:

    ```bash
    config system global
        set hostname <hostname>
    end
    ```

    Specify `<hostname>`, the new firewall name.
  </TabItem>
</Tabs>
