Skip to main content

Protect your server with the UserGate VE firewall

Last update:
  1. Link the firewall server and the protected server.
  2. Check interfaces.
  3. Configure the local interface on the firewall.
  4. Configure the NAT rule.
  5. Configure filtering rules.

The organization of connectivity to the protected infrastructure depends on where the firewall is deployed — on a cloud server or on a virtual machine in a VMware-based public or private cloud.

  1. If you need to protect a cloud server, a Managed Kubernetes cluster, or a Managed Database cluster in the same project as the firewall, add the firewall server to the project's private network. For different projects in the same pool, configure access to the private network in different projects.

  2. If you need to protect a cloud server, a Managed Kubernetes cluster, a Managed Database cluster that is in a different pool, or a dedicated server, a hosted server, or a VMware-based virtual machine in the cloud — use the Selectel Global Router.

2. Check interfaces

UserGate network interfaces are organized into zones for which security policies are configured. By default, the Internet port is assigned to the Management zone. It is used for Internet access and connections from external networks.

After adding the local network interface, check that the Internet port is in the correct zone and reassign it if necessary.

  1. Open the CLI.

  2. Perform a software restart of the server.

  3. At system boot, select the Support Menu.

  4. Select Refresh NIC names and click OK.

  5. Wait for the restart to complete.

  6. Authorize using the default data:

    • login — Admin;
    • password — utm.
  7. Print the list of interfaces:

    iface list
  8. Ensure that the Internet port in the zone line has the value Management.

  9. If the value does not match, change the zone for the Internet port:

    iface config -name <eth_name> -zone Management

    Specify <eth_name> as the name of the Internet port.

3. Configure the local interface on the firewall

  1. Connect to the firewall.
  2. Go to SettingsNetworkInterfaces.
  3. For the added port1, click Enable.
  4. Click Edit.
  5. Open the General tab.
  6. In the Zone field, select Trusted.
  7. Open the Network tab.
  8. In the Mode field, select Static.
  9. Click Add.
  10. Enter the IP address of the interface.
  11. Optional: change the mask.
  12. Click Save.

4. Configure the NAT rule

  1. Connect to the firewall.
  2. Go to SettingsNetwork PoliciesNAT and Routing.
  3. Click Add.
  4. Open the General tab.
  5. Enter the name of the rule.
  6. Optional: enter a description for the rule.
  7. Select the type — NAT.
  8. In the SNAT IP field, enter the IP address of the firewall's Internet port to which the source address will be replaced. If the firewall is deployed on a cloud server with a single public address, specify the address from the private network to which the public address is bound.
  9. Open the Source tab.
  10. In the Source Zone block, check the Trusted checkbox.
  11. Optional: add a specific IP address or subnet that can be the source of traffic. In the Source Address block, click Create and add a new objectAdd, enter the addresses, and save the object. If you do not add addresses, the rule will apply to traffic from all private networks behind the firewall.
  12. Open the Destination tab.
  13. In the Destination Zone block, check the Management checkbox.
  14. Optional: add a specific IP address or subnet to which traffic can be sent. In the Destination Address block, click Create and add a new objectAdd, enter the addresses, and save the object. If you do not add addresses, traffic can be sent to any external network.
  15. Optional: to limit the list of ports for outgoing traffic, add them on the Service tab.
  16. Click Save.

5. Configure filtering rules

  1. Connect to the firewall.
  2. Go to SettingsNetwork PoliciesFirewall section.
  3. Click Add.
  4. Open the General tab.
  5. Enter the name of the policy.
  6. Optional: enter a description for the policy.
  7. Select the action — Allow.
  8. Open the Source tab.
  9. Check the Trusted checkbox.
  10. Optional: add a specific IP address or subnet that can be the source of traffic. In the Source Address block, click Create and add a new objectAdd, enter the addresses, and save the object. If you do not add addresses, the rule will apply to traffic from all private networks behind the firewall.
  11. Open the Destination tab.
  12. In the Destination Zone block, check the Management checkbox.
  13. Optional: add a specific IP address or subnet to which traffic can be sent. In the Destination Address block, click Create and add a new objectAdd, enter the addresses, and save the object. If you do not add addresses, traffic can be sent to any external network.
  14. Optional: to limit the list of ports for outgoing traffic, add them on the Service tab.
  15. Click Save.