Netcup Firewall Setup – Guide for VPS and Root Servers
Your server just went online and its IP address is publicly reachable. Most operators know what follows: port scans, login attempts, attacks. If you run a VPS or Root Server, you don't want to filter that traffic only on the machine itself – ideally, you filter it in front of it.
netcup provides an upstream firewall in the Server Control Panel (SCP): free, policy-based and configured right in the browser. This guide shows you step by step how to set it up, which concepts stand behind it, and what to watch out for – including the pitfalls that cause outages in practice.
The Paradigm Shift
Before diving into configuration, it's crucial to understand why this feature is so powerful. A classic firewall runs on the server itself. This means a malicious packet has to travel through the data center's network infrastructure before the software firewall can say, "You shall not pass."
It operates on Netcup's infrastructure level, stopping traffic before it ever touches your server. Unwanted data is filtered out before it can impact your system's load.
Feature Overview
Centralized Management
Configure everything directly within your browser via the SCP.
Policy-Based
Rules are grouped into "Policies" and can be assigned to multiple servers at once.
Default Policies
Pre-configured rules, including the automatic switch to DROP once you add your own rules.
Granular Rules
Filter by protocol (TCP, UDP, ICMP), source IPs, ports, and destination ports.
New vs. Existing Servers
- New Servers: The firewall is pre-configured and initially allows all traffic – only outgoing mail (SMTP) is blocked.
- Existing Servers: The firewall has to be activated once in the SCP; afterwards the policies you assign take effect.
Configuration in Detail
Management runs in the SCP via the Firewall menu in the top bar of the respective server; the rule collections themselves are managed under Firewall Policies. Before opening your first port, it is worth knowing how the firewall behaves.
0. How the firewall behaves (read this before adding rules)
- Stateful: The firewall tracks outgoing TCP connections and allows the return traffic automatically. For UDP you have to define the response traffic explicitly as INGRESS and EGRESS rules (e.g. DNS).
- Implicit rules: As long as you have no own rule, INGRESS and EGRESS are set to "allow everything". Once you save the first own INGRESS rule, the default action for INGRESS flips to DROP – the same applies to EGRESS. Adding your own rules therefore switches on a default-deny behaviour.
- Actions: Only
ACCEPTandDROPexist –REJECTis not supported. - Priority: Rules are processed from top to bottom (first match). The order of the policies on a server can be changed via drag & drop.
- Effect: Changes become active immediately after saving. Because of the stateful behaviour, already established connections remain active.
1. The Policy Concept
Instead of tediously typing rules for every single server, netcup uses Policies. A Policy is essentially a container for a collection of rules. Policies are defined server-wide in the SCP and then assigned to individual servers. Each server and public network interface supports up to 500 active rules.
2. Defining Rules
The heart of the firewall is the individual rules. When you edit or create a policy, the dialog to add rules opens.
Firewalls process lists from top to bottom ("First Match").
3. Firewall Overview & Defaults
In the overview you see the default policies pre-configured by netcup:
- netcup Mail block: Blocks outgoing SMTP (ports 25, 465, 587). Important: If you want to send mail yourself (e.g. with a mail server like Mailcow), you have to delete this policy – otherwise nothing leaves your server.
- netcup Ping allow: Allows ICMP traffic for monitoring.
- netcup DNS: DNS traffic to the netcup servers always stays allowed (cannot be changed).
A point that is often missed in practice: EGRESS. As soon as even a single EGRESS rule exists, the default action for outgoing traffic flips to DROP – then only the explicitly allowed exits survive. netcup therefore recommends creating INGRESS rules only in the normal case.
Strategies for Better Security
The most stable configuration that is hard to forget: create one policy with exactly the ports that have to be publicly reachable – and assign it to your servers. As soon as an INGRESS rule exists, everything else is dropped automatically. This is exactly how this homelab is secured: default-deny for its servers since September 2026, only the ports from the allowlist are publicly reachable. Internal networks (VPN, VLAN, localhost) are unaffected, because the firewall only applies to the public interface.
- SSH: Create a rule for Port 22 (TCP) for your IP only.
- Web: Allow Port 80/443 for Source:
*(Everyone).
- Web Access: Keep ports 80/443 closed.
- DB Access: Allow Port 3306 only for the IP of your web server.
Should you disable the local firewall? No! Always keep multiple layers of security. The SCP firewall is a free baseline protection in front of the server infrastructure – it does not replace a local firewall, but complements it perfectly (for example as a safeguard against misconfigurations of locally open services).
Conclusion
The introduction of the SCP Firewall is a significant step. Take an hour next weekend, log into the SCP, and start building your policies.
Editorial review: November 19, 2026 – steps verified against the current Server Control Panel.
Tested environment: netcup VPS/Root Server, SCP firewall; in production in this homelab since September 2026 (default-deny, INGRESS allowlist).
Primary source: netcup Helpcenter – Firewall (as of November 19, 2026).