FAQ

Last change on 2021-03-11 • Created on 2020-03-08

What are Hetzner Cloud Firewalls?

Hetzner Cloud Firewalls allow you to easily secure your servers by specifying the network traffic that's allowed to reach your server and what traffic your server is allowed to send out.

Are Cloud Firewalls stateful?

Yes, our Cloud Firewalls are stateful and track individual network connections and their states to and from your server. If your server sends out a request to the internet, the response traffic to that request is automatically allowed through the firewall, and you don't need a separate inbound rule. For protocols like SIP, the firewall will also track "related" connections.

How do the Firewalls work?

The Cloud Firewalls allow you the define a set of rules for incoming and outgoing network traffic of your Cloud server. For the inbound direction (network traffic to your server): Your rules define all traffic that is allowed to reach the server. The inbound direction has an implicit "deny" at the end. All traffic that doesn't match any of your rules will be dropped and will not reach your server. If you don't define any rules here, all inbound traffic will be dropped.

For the outbound direction (network traffic from your server to the internet): If you define no rules for the outbound direction, all traffic is allowed. If you define one or more outbound rules, the outbound direction also changes to implicit "deny", and all traffic that doesn't match your rules is dropped.

What are the limitations of Firewalls?

  • Assign up to 5 active firewalls per server
  • Create up to 50 firewalls total across your projects
  • Have up to 500 (effective) rules per firewall
  • Have to 80000 active, concurrent connections per server (10000 new connections per second)

Is there traffic that's always allowed?

Yes, our firewall will always allow traffic from certain Hetzner services to reach your server. This currently includes DNS resolver traffic, traffic from the Hetzner Rescue system, and the Cloud metadata server.

What is an effective rule?

The number of your firewall's effective rules depends on how many different sources or destinations you have specified for each rule. An inbound rule that allows traffic to port 80 for 8 different sources counts as 8 effective rules.

Can I specify traffic that should get dropped?

No, you only define what traffic is allowed to and from your server. All other traffic will be dropped.

Does the order of my rules matter?

No, the order of your firewall rules does not matter, since our firewalls define what traffic is allowed.

What protocols do Firewalls support?

You can filter TCP, UDP and ICMP traffic. All other protocols (like GRE or IPIP) will be dropped if you attach a firewall.

Can Firewalls be applied to my Hetzner Cloud Load Balancers?

Not yet, but we plan to offer this functionality in the future.

Can Firewalls secure traffic to my private Hetzner Cloud Networks?

Not yet, because we consider the private Networks to be "secure". We might later add the ability to secure private Cloud Networks.

Will you add more features in the future?

Yes, we plan to extend Hetzner Cloud Firewalls with more features and options in the future.

Table of Contents