> Source: https://docs.cyberelements.io/bastion/4.7/sv/Installation/Dependencies/PostgreSQLCluster/Operation/PsqlFirewallUpdates/

# Configuring the appliance firewall

The virtual appliance uses the [`nftables`](https://www.nftables.org/projects/nftables/index.html) firewall.

> **Information**
>
> Once the appliance is installed, there are no direct dependencies on `nftables` use. Therefore, you can replace this firewall with one of your choice.

If changes to the PostgreSQL node's firewall configuration are necessary, you will need to modify the `/etc/nftables.conf` configuration file.
The configuration format is documented on [the `nftables` wiki](https://wiki.nftables.org/wiki-nftables/index.php/Main_Page).

After modifying the configuration, reload the new configuration with the following command:

```
1
```

> **Information**
>
> The reload starts by emptying the rules (`flush ruleset`): the connections between the nodes are reset and `etcd` elects its leader again, which takes a few seconds.

> **Recommendation**
>
> The security hardening guide details the local firewall rules recommended for the CyberElements Bastion servers: see [Local firewall](https://docs.cyberelements.io/bastion/4.7/sv/Security/LocalFirewall/).
