Protect your server with the UserGate VE firewall
- Link the firewall server and the protected server.
- Check the interfaces.
- Configure the local interface on the firewall.
- Configure the NAT rule.
- Configure filtering rules.
1. Link the firewall server and the protected server
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.
Cloud server
Cloud powered by VMware
-
If you need to protect a cloud server, a Managed Kubernetes cluster, or a Managed Databases 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 across projects.
-
If you need to protect a cloud server, a Managed Kubernetes cluster, or a Managed Databases cluster located in a different pool, or a dedicated server, colocation server, or virtual machine in VMware-based Cloud, use the Selectel global router.
2. Check interfaces
UserGate network interfaces are combined 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.
UGOS 6
UGOS 7
UGOS 7.1 and higher
-
Open the CLI.
-
Perform a software restart of the server.
-
When the system boots, select Support Menu.
-
Select Refresh NIC names and click OK.
-
Wait for the restart to complete.
-
Authorize using the default data:
- login — Admin;
- password — utm.
-
Print the list of interfaces:
iface list -
Make sure that for the internet port, the
zoneline is set toManagement. -
If the value does not match, change the zone for the Internet port:
iface config -name <eth_name> -zone ManagementSpecify
<eth_name>— the name of the internet port.
3. Configure the local interface on the firewall
- Connect to the firewall.
- Go to Settings → Network → Interfaces.
- For the added port port1, click Enable.
- Click Edit.
- Open the General tab.
- In the Zone field, select Trusted.
- Open the Network tab.
- In the Mode field, select Static.
- Click Add.
- Enter the IP address of the interface.
- Optional: change the mask.
- Click Save.
4. Configure the NAT rule
- Connect to the firewall.
- Go to Settings → Network policies → NAT and routing.
- Click Add.
- Open the General tab.
- Enter the name of the rule.
- Optional: enter a description for the rule.
- Select the type — NAT.
- In the SNAT IP field, enter the IP address of the firewall's internet port that the source address will be replaced with. 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 associated.
- Open the Source tab.
- In the Source zone block, select the Trusted checkbox.
- Optional: add a specific IP address or subnet that can be a traffic source. In the Source address block, click Create and add a new object → Add, 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.
- Open the Destination tab.
- In the Destination zone block, select the Management checkbox.
- Optional: add a specific IP address or subnet where traffic can be sent. In the Destination address block, click Create and add a new object → Add, enter the addresses, and save the object. If you do not add addresses, traffic can be sent to any external networks.
- Optional: to restrict the list of ports for outbound traffic, add them on the Service tab.
- Click Save.
5. Configure filtering rules
- Connect to the firewall.
- Go to Settings → Network policies → Firewall.
- Click Add.
- Open the General tab.
- Enter the name of the policy.
- Optional: enter a description for the policy.
- Select the action — Allow.
- Open the Source tab.
- Select the Trusted checkbox.
- Optional: add a specific IP address or subnet that can be a traffic source. In the Source address block, click Create and add a new object → Add, 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.
- Open the Destination tab.
- In the Destination zone block, select the Management checkbox.
- Optional: add a specific IP address or subnet where traffic can be sent. In the Destination address block, click Create and add a new object → Add, enter the addresses, and save the object. If you do not add addresses, traffic can be sent to any external networks.
- Optional: to restrict the list of ports for outbound traffic, add them on the Service tab.
- Click Save.