NAT

This article explains network settings when using Hetzner servers
(For Subnetted IPs)

The following fields in the Create IP Pool form have to be filled as below:

  • Gateway : This will be first Ip of the range assigned to you.
  • Netmask : Use 255.255.255.0
  • NAT: Please check on Enable NAT option .
  • Adding ip : Please add ip range to the pool .

If NAT bridge is not started and its giving these errors on panel while starting vps :

The VPS failed to start
error: Failed to create domain from /etc/libvirt/qemu/v1001.xml
error: Requested operation is not valid: network ‘natbr1‘ is not active

Then you can try starting the bridge :

virsh net-start natbr1

Once its started you can set it to auto start :

virsh net-autostart natbr1

If net-start command fails with this error :

virsh net-start natbr1
setlocale: No such file or directory
error: Failed to start network natbr1
error: The name org.fedoraproject.FirewallD1 was not provided by any .service files

Then you will need to start firewalld service as well :

service firewalld start

And also add our ports to avoid issues :

firewall-cmd –zone=public –add-port=4081-4085/tcp
firewall-cmd –zone=public –add-port=5901-6000/tcp (vnc ports which can be of higher range than 6000 as well )

After starting firewalld, you can try to start NAT bridge again.

Note : Single IPs cannot be added to Nat IP pool. Only a range of IPs can be added while creating the Pool.
The list of usable IPs are provided by Hetzner.
NAT Pool is not supported for Proxmox.

Was this helpful to you?